aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-30 18:07:14 -0400
committerTom Rini <trini@konsulko.com>2022-04-08 09:05:19 -0400
commitdafcd96d8ad698693188cab47c21bc399a4cc316 (patch)
treecb6df1b1a852ec2df452e605db28b3d93b17e450
parentbd3ef27886dcb1c496a4583eb8b894296edf045d (diff)
downloadu-boot-dafcd96d8ad698693188cab47c21bc399a4cc316.zip
u-boot-dafcd96d8ad698693188cab47c21bc399a4cc316.tar.gz
u-boot-dafcd96d8ad698693188cab47c21bc399a4cc316.tar.bz2
Convert CONFIG_CMDLINE_PS_SUPPORT to Kconfig
This converts the following to Kconfig: CONFIG_CMDLINE_PS_SUPPORT Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--README8
-rw-r--r--cmd/Kconfig7
-rw-r--r--configs/socfpga_vining_fpga_defconfig1
-rw-r--r--include/configs/socfpga_vining_fpga.h3
4 files changed, 8 insertions, 11 deletions
diff --git a/README b/README
index 04e3fad..6273a7f 100644
--- 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
diff --git a/cmd/Kconfig b/cmd/Kconfig
index c5eb71c..d3abe3a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -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
diff --git a/configs/socfpga_vining_fpga_defconfig b/configs/socfpga_vining_fpga_defconfig
index 52084b8..331975a 100644
--- a/configs/socfpga_vining_fpga_defconfig
+++ b/configs/socfpga_vining_fpga_defconfig
@@ -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
diff --git a/include/configs/socfpga_vining_fpga.h b/include/configs/socfpga_vining_fpga.h
index 8469b15..9455e4c 100644
--- a/include/configs/socfpga_vining_fpga.h
+++ b/include/configs/socfpga_vining_fpga.h
@@ -186,9 +186,6 @@
"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>