cmd: Kconfig: migrate CONFIG_SYS_PROMPT_HUSH_PS2
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 26 Oct 2020 08:31:42 +0000 (09:31 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 1 Dec 2020 19:12:28 +0000 (14:12 -0500)
Move CONFIG_SYS_PROMPT_HUSH_PS2 in Kconfig, depending
on CONFIG_HUSH_PARSER, and remove the default value defined
in cli_hush.c under __U_BOOT__.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
README
cmd/Kconfig
common/cli_hush.c
scripts/config_whitelist.txt

diff --git a/README b/README
index 7b73a1c97321d58fd075b32e3313af956c9beec9..5ca11f25ee5c121fb5eec40d60e7de7ec68efdd0 100644 (file)
--- a/README
+++ b/README
@@ -1925,13 +1925,6 @@ The following options need to be configured:
                try longer timeout such as
                #define CONFIG_NFS_TIMEOUT 10000UL
 
-- Command Interpreter:
-               CONFIG_SYS_PROMPT_HUSH_PS2
-
-               This defines the secondary prompt string, which is
-               printed when the command interpreter needs more input
-               to complete a command. Usually "> ".
-
        Note:
 
                In the current implementation, the local variables
index 1595de999b53101b41fe4567d1cbcd25628b82e7..98cf543ead00c3a2f6d05464b9881a854d138b7c 100644 (file)
@@ -55,6 +55,15 @@ config SYS_PROMPT
          This string is displayed in the command line to the left of the
          cursor.
 
+config SYS_PROMPT_HUSH_PS2
+       string "Hush shell secondary prompt"
+       depends on HUSH_PARSER
+       default "> "
+       help
+         This defines the secondary prompt string, which is
+         printed when the command interpreter needs more input
+         to complete a command. Usually "> ".
+
 config SYS_XTRACE
        string "Command execution tracer"
        depends on CMDLINE
index 66995c255b5617aac1900a1a180f9649b05d0b4a..b7f0f0ff4184a94ca8c31e761b6cf4ecd2c9cf4f 100644 (file)
@@ -84,9 +84,6 @@
 #include <cli.h>
 #include <cli_hush.h>
 #include <command.h>        /* find_cmd */
-#ifndef CONFIG_SYS_PROMPT_HUSH_PS2
-#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
-#endif
 #endif
 #ifndef __U_BOOT__
 #include <ctype.h>     /* isalpha, isdigit */
index 8b4fcba395a34a7d648d2d241221413cf6f8e721..31acc36d4c7cee93c3d1a635b1a4a6b6427ac528 100644 (file)
@@ -3508,7 +3508,6 @@ CONFIG_SYS_POST_WATCHDOG
 CONFIG_SYS_POST_WORD_ADDR
 CONFIG_SYS_PPC_DDR_WIMGE
 CONFIG_SYS_PQSPAR
-CONFIG_SYS_PROMPT_HUSH_PS2
 CONFIG_SYS_PSDPAR
 CONFIG_SYS_PSSR_VAL
 CONFIG_SYS_PTCPAR