diff options
author | Leo Ruan <tingquan.ruan@cn.bosch.com> | 2019-05-24 17:20:19 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-13 11:11:09 -0400 |
commit | 8e92120b322890f061506d00eb9d93e9be6acbda (patch) | |
tree | 3d615deacd9b6ea7b2f04548b70505b58876f667 /cmd/Kconfig | |
parent | 4213609cc7fb78f84b2ea63f4a5691b60d01c248 (diff) | |
download | u-boot-8e92120b322890f061506d00eb9d93e9be6acbda.tar.gz u-boot-8e92120b322890f061506d00eb9d93e9be6acbda.tar.xz u-boot-8e92120b322890f061506d00eb9d93e9be6acbda.zip |
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/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 3afb760a81..7f6bca81a9 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" |