aboutsummaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorLeo Ruan <tingquan.ruan@cn.bosch.com>2019-05-24 17:20:19 +0200
committerTom Rini <trini@konsulko.com>2019-07-13 11:11:09 -0400
commit8e92120b322890f061506d00eb9d93e9be6acbda (patch)
tree3d615deacd9b6ea7b2f04548b70505b58876f667 /cmd/Kconfig
parent4213609cc7fb78f84b2ea63f4a5691b60d01c248 (diff)
downloadu-boot-8e92120b322890f061506d00eb9d93e9be6acbda.zip
u-boot-8e92120b322890f061506d00eb9d93e9be6acbda.tar.gz
u-boot-8e92120b322890f061506d00eb9d93e9be6acbda.tar.bz2
cmd: nvedit: Add sub-command 'env info'
Add sub-command 'env info' to display environment information: - env_valid : is environment valid - env_ready : is environment imported into hash table - env_use_default : is default environment using This command can be optionally used for evaluation in scripts: [-d] : evaluate whether default environment is used [-p] : evaluate whether environment can be persisted The result of multiple evaluations will be combined with AND. Signed-off-by: Leo Ruan <tingquan.ruan@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Do not enable by default] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 3afb760..7f6bca8 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -441,6 +441,19 @@ config CMD_NVEDIT_EFI
If enabled, we are allowed to set/print UEFI variables using
"env" command with "-e" option without knowing details.
+config CMD_NVEDIT_INFO
+ bool "env info - print or evaluate environment information"
+ help
+ Print environment information:
+ - env_valid : is environment valid
+ - env_ready : is environment imported into hash table
+ - env_use_default : is default environment used
+
+ This command can be optionally used for evaluation in scripts:
+ [-d] : evaluate whether default environment is used
+ [-p] : evaluate whether environment can be persisted
+ The result of multiple evaluations will be combined with AND.
+
endmenu
menu "Memory commands"