apps/nshlib: correct commands with alphabet order in kconfig
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
This commit is contained in:
parent
3d53b7e0e0
commit
732450d42a
@ -245,10 +245,6 @@ config NSH_DISABLE_CMP
|
||||
bool "Disable cmp"
|
||||
default DEFAULT_SMALL
|
||||
|
||||
config NSH_DISABLE_TIMEDATECTL
|
||||
bool "Disable TIMEDATECTL"
|
||||
default DEFAULT_SMALL || !LIBC_LOCALTIME || !RTC
|
||||
|
||||
config NSH_DISABLE_DATE
|
||||
bool "Disable date"
|
||||
default DEFAULT_SMALL || !RTC
|
||||
@ -494,6 +490,10 @@ config NSH_DISABLE_TIME
|
||||
bool "Disable time"
|
||||
default DEFAULT_SMALL
|
||||
|
||||
config NSH_DISABLE_TIMEDATECTL
|
||||
bool "Disable timedatectl"
|
||||
default DEFAULT_SMALL || !LIBC_LOCALTIME || !RTC
|
||||
|
||||
config NSH_DISABLE_TEST
|
||||
bool "Disable test"
|
||||
default DEFAULT_SMALL
|
||||
|
@ -154,11 +154,6 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
{ "dirname", cmd_dirname, 2, 2, "<path>" },
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_TIMEDATECTL
|
||||
{ "timedatectl", cmd_timedatectl, 1, 3, "[set-timezone TZ]"
|
||||
},
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_DATE
|
||||
{ "date", cmd_date, 1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u]" },
|
||||
#endif
|
||||
@ -537,6 +532,10 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
{ "time", cmd_time, 2, 2, "\"<command>\"" },
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_TIMEDATECTL
|
||||
{ "timedatectl", cmd_timedatectl, 1, 3, "[set-timezone TZ]" },
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLESCRIPT
|
||||
{ "true", cmd_true, 1, 1, NULL },
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user