From 8e92120b322890f061506d00eb9d93e9be6acbda Mon Sep 17 00:00:00 2001 From: Leo Ruan Date: Fri, 24 May 2019 17:20:19 +0200 Subject: 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 Signed-off-by: Mark Jonas Reviewed-by: Simon Glass [trini: Do not enable by default] Signed-off-by: Tom Rini --- cmd/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cmd/Kconfig') 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" -- cgit v1.2.3