]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_CMDLINE_PS_SUPPORT to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:14 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 13:05:19 +0000 (09:05 -0400)
This converts the following to Kconfig:
   CONFIG_CMDLINE_PS_SUPPORT

Signed-off-by: Tom Rini <trini@konsulko.com>
README
cmd/Kconfig
configs/socfpga_vining_fpga_defconfig
include/configs/socfpga_vining_fpga.h

diff --git a/README b/README
index 04e3fad0b8b64b64937b1c717e03c11ceab6f8d3..6273a7f3673ea52756e7111162c3e0006a0c3b81 100644 (file)
--- a/README
+++ b/README
@@ -1532,14 +1532,6 @@ The following options need to be configured:
                of the backslashes before semicolons and special
                symbols.
 
-- Command Line Editing and History:
-               CONFIG_CMDLINE_PS_SUPPORT
-
-               Enable support for changing the command prompt string
-               at run-time. Only static string is supported so far.
-               The string is obtained from environment variables PS1
-               and PS2.
-
 - Default Environment:
                CONFIG_EXTRA_ENV_SETTINGS
 
index c5eb71cea6cc5add89a741ba8ca09b23d7e596d9..d3abe3a06bffe1f7dd52fc1f24996e430cba3ce9 100644 (file)
@@ -31,6 +31,13 @@ config CMDLINE_EDITING
          Enable editing and History functions for interactive command line
          input operations
 
+config CMDLINE_PS_SUPPORT
+       bool "Enable support for changing the command prompt string at run-time"
+       depends on HUSH_PARSER
+       help
+         Only static string in the prompt is supported so far.  The string is
+         obtained from environment variables PS1 and PS2.
+
 config AUTO_COMPLETE
        bool "Enable auto complete using TAB"
        depends on CMDLINE
index 52084b8f2a5d22cf25e88691238fbe182f5f360b..331975ad30971d4178332290ccec765de26c2612 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_CLOCKS=y
 CONFIG_MISC_INIT_R=y
 CONFIG_SPL_SPI_LOAD=y
 CONFIG_SYS_SPI_U_BOOT_OFFS=0x40000
+CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_ASKENV=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_EEPROM=y
index 8469b1527f0d728d72efb750a824a914898344c7..9455e4cb5609f4a86d63ecb9aef25638befb27a7 100644 (file)
                "fi\0"                                                  \
                "socfpga_legacy_reset_compat=1\0"
 
-/* Support changing the prompt string */
-#define CONFIG_CMDLINE_PS_SUPPORT
-
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>