diff --git a/nshlib/nsh_parse.c b/nshlib/nsh_parse.c index e93c624fa..fe7423f66 100644 --- a/nshlib/nsh_parse.c +++ b/nshlib/nsh_parse.c @@ -153,7 +153,7 @@ static const struct cmdmap_s g_cmdmap[] = #endif #if CONFIG_NFILE_DESCRIPTORS > 0 -# ifndef CONFIG_NSH_DISABLE_LS +# ifndef CONFIG_NSH_DISABLE_DD { "dd", cmd_dd, 3, 6, "if= of= [bs=] [count=] [skip=]" }, # endif #endif @@ -194,7 +194,7 @@ static const struct cmdmap_s g_cmdmap[] = #endif #ifndef CONFIG_DISABLE_SIGNALS -# ifndef CONFIG_NSH_DISABLE_SLEEP +# ifndef CONFIG_NSH_DISABLE_KILL { "kill", cmd_kill, 3, 3, "- " }, # endif #endif diff --git a/nshlib/nsh_proccmds.c b/nshlib/nsh_proccmds.c index 0ee48a71d..7abd50ec1 100644 --- a/nshlib/nsh_proccmds.c +++ b/nshlib/nsh_proccmds.c @@ -69,6 +69,7 @@ typedef int (*exec_t)(void); * Private Data ****************************************************************************/ +#ifndef CONFIG_NSH_DISABLE_PS static const char *g_statenames[] = { "INVALID ", @@ -85,6 +86,7 @@ static const char *g_statenames[] = "MQNFULL " #endif }; +#endif /**************************************************************************** * Public Data