Skip to content

Commit 5d9a74e

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 5d9a74e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ CONFIG_SYSTEM_DUMPSTACK=y
7272
CONFIG_SYSTEM_GCOV=y
7373
CONFIG_SYSTEM_NSH=y
7474
CONFIG_TESTING_OSTEST=y
75+
76+
CONFIG_RTC=y
77+
CONFIG_RTC_DRIVER=y
78+
CONFIG_RTC_ARCH=y

0 commit comments

Comments
 (0)