Commit a55d29d2ac658b33989a7c4c368beff46a98bcde

Authored by Simon Glass
Committed by Tom Rini
1 parent dcab138793

Convert CONFIG_CMD_ENV_CALLBACK to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ENV_CALLBACK

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 7 changed files with 11 additions and 3 deletions Side-by-side Diff

... ... @@ -833,7 +833,6 @@
833 833 CONFIG_CMD_ECHO echo arguments
834 834 CONFIG_CMD_EDITENV edit env variable
835 835 CONFIG_CMD_ELF * bootelf, bootvx
836   - CONFIG_CMD_ENV_CALLBACK * display details about env callbacks
837 836 CONFIG_CMD_ENV_FLAGS * display details about env flags
838 837 CONFIG_CMD_ENV_EXISTS * check existence of env variable
839 838 CONFIG_CMD_EXPORTENV * export the environment
... ... @@ -314,6 +314,14 @@
314 314 Check if a variable is defined in the environment for use in
315 315 shell scripting.
316 316  
  317 +config CMD_ENV_CALLBACK
  318 + bool "env callbacks - print callbacks and their associated variables"
  319 + help
  320 + Some environment variable have callbacks defined by
  321 + U_BOOT_ENV_CALLBACK. These are called when the variable changes.
  322 + For example changing "baudrate" adjust the serial baud rate. This
  323 + command lists the currently defined callbacks.
  324 +
317 325 endmenu
318 326  
319 327 menu "Memory commands"
configs/sandbox_defconfig
... ... @@ -22,6 +22,7 @@
22 22 # CONFIG_CMD_IMLS is not set
23 23 CONFIG_CMD_ASKENV=y
24 24 CONFIG_CMD_GREPENV=y
  25 +CONFIG_CMD_ENV_CALLBACK=y
25 26 CONFIG_CMD_MD5SUM=y
26 27 CONFIG_LOOPW=y
27 28 CONFIG_CMD_MEMTEST=y
configs/sandbox_noblk_defconfig
... ... @@ -22,6 +22,7 @@
22 22 # CONFIG_CMD_IMLS is not set
23 23 CONFIG_CMD_ASKENV=y
24 24 CONFIG_CMD_GREPENV=y
  25 +CONFIG_CMD_ENV_CALLBACK=y
25 26 CONFIG_CMD_MD5SUM=y
26 27 CONFIG_LOOPW=y
27 28 CONFIG_CMD_MEMTEST=y
configs/sandbox_spl_defconfig
... ... @@ -30,6 +30,7 @@
30 30 # CONFIG_CMD_IMLS is not set
31 31 CONFIG_CMD_ASKENV=y
32 32 CONFIG_CMD_GREPENV=y
  33 +CONFIG_CMD_ENV_CALLBACK=y
33 34 CONFIG_CMD_MD5SUM=y
34 35 CONFIG_LOOPW=y
35 36 CONFIG_CMD_MEMTEST=y
include/configs/sandbox.h
... ... @@ -108,7 +108,6 @@
108 108 #define CONFIG_CMD_SANDBOX
109 109  
110 110 #define CONFIG_CMD_ENV_FLAGS
111   -#define CONFIG_CMD_ENV_CALLBACK
112 111  
113 112 #define CONFIG_BOOTARGS ""
114 113  
scripts/config_whitelist.txt
... ... @@ -383,7 +383,6 @@
383 383 CONFIG_CMDLINE_EDITING
384 384 CONFIG_CMDLINE_PS_SUPPORT
385 385 CONFIG_CMDLINE_TAG
386   -CONFIG_CMD_ENV_CALLBACK
387 386 CONFIG_CMD_ENV_FLAGS
388 387 CONFIG_CMD_ERRATA
389 388 CONFIG_CMD_ESBC_VALIDATE