Skip to content

Commit 75a0916

Browse files
author
hanzj
committed
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.
1 parent b8cd043 commit 75a0916

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

boards/sim/sim/sim/configs/nsh/defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ CONFIG_PSEUDOFS_ATTRIBUTES=y
6060
CONFIG_PSEUDOFS_FILE=y
6161
CONFIG_PSEUDOFS_SOFTLINKS=y
6262
CONFIG_READLINE_TABCOMPLETION=y
63+
CONFIG_RTC=y
64+
CONFIG_RTC_ARCH=y
65+
CONFIG_RTC_DRIVER=y
6366
CONFIG_SCHED_BACKTRACE=y
6467
CONFIG_SCHED_EVENTS=y
6568
CONFIG_SCHED_HAVE_PARENT=y

0 commit comments

Comments
 (0)