This is an automated email from the ASF dual-hosted git repository.

lupyuen pushed a commit to branch releases/13.0
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/13.0 by this push:
     new c3cc466a9e3 boards/sim/sim/sim/nsh: enable CONFIG_RTC so date command 
shows host time
c3cc466a9e3 is described below

commit c3cc466a9e3abd36a3abfba5e38a0a2f096295b1
Author: hanzj <[email protected]>
AuthorDate: Fri Jun 5 21:59:48 2026 +0800

    boards/sim/sim/sim/nsh: enable CONFIG_RTC so date command shows host time
    
    The default sim:nsh config has no RTC, causing NSH_DISABLE_DATE to be
    auto-enabled (default: DEFAULT_SMALL || !RTC). This means the date
    command is not compiled in, and the system time defaults to a hardcoded
    value instead of syncing with the host.
    
    Enable CONFIG_RTC, CONFIG_RTC_DRIVER, and CONFIG_RTC_ARCH in the
    sim:nsh defconfig so the date command is available and shows the
    correct host time out of the box.
    
    Signed-off-by: hanzj <[email protected]>
---
 boards/sim/sim/sim/configs/nsh/defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/boards/sim/sim/sim/configs/nsh/defconfig 
b/boards/sim/sim/sim/configs/nsh/defconfig
index c44d9f32031..74e659cff02 100644
--- a/boards/sim/sim/sim/configs/nsh/defconfig
+++ b/boards/sim/sim/sim/configs/nsh/defconfig
@@ -60,6 +60,9 @@ CONFIG_PSEUDOFS_ATTRIBUTES=y
 CONFIG_PSEUDOFS_FILE=y
 CONFIG_PSEUDOFS_SOFTLINKS=y
 CONFIG_READLINE_TABCOMPLETION=y
+CONFIG_RTC=y
+CONFIG_RTC_ARCH=y
+CONFIG_RTC_DRIVER=y
 CONFIG_SCHED_BACKTRACE=y
 CONFIG_SCHED_EVENTS=y
 CONFIG_SCHED_HAVE_PARENT=y

Reply via email to