This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 80f133504a8 boards/sim/sim/sim/nsh: enable CONFIG_RTC so date command
shows host time
80f133504a8 is described below
commit 80f133504a81af4ffedd17e638472b85e3ea08a8
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