cmd: nvedit: Add sub-command 'env info'
PATCH 1/1 cmd: nvedit: Add sub-command 'env info'
From: Leo Ruan <[email protected]>
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.
--- cmd/Kconfig | 14 ++++++++ cmd/nvedit.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+)
cmd/Kconfig +14 -0
@@ -441,6 +441,20 @@ 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" + default y + 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"
cmd/nvedit.c +108 -0
126 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 1/1 cmd: nvedit: Add sub-command 'env info'
Quoted 13 lines · Mark Jonas
From: Leo Ruan <[email protected]>
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 usingThis 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.
Quoted 6 lines
Signed-off-by Leo Ruan <[email protected]>Signed-off-by Mark Jonas <[email protected]>--- cmd/Kconfig | 14 ++++++++ cmd/nvedit.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+)
PATCH 1/1 cmd: nvedit: Add sub-command 'env info'
In reply to Mark JonasQuoted 7 lines · Mark Jonas
From: Leo Ruan <[email protected]>
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
Quoted 8 lines
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 <[email protected]>Signed-off-by Mark Jonas <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190714/9275698c/attachment.sig>