Skip to contentSkip to conversation

cmd: nvedit: Add sub-command 'env info'

PATCH New Mark Jonas 3 participants 3 messages May 24, 2019 – Jul 14, 2019

lore
Share & tools
lore

Mark Jonas

author
#0 lore raw

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
index 0d36da2..b249597 100644
@@ -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
#1 lore raw

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 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.

Quoted 6 lines
---
 cmd/Kconfig  |  14 ++++++++
 cmd/nvedit.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 122 insertions(+)
#2 lore raw

PATCH 1/1 cmd: nvedit: Add sub-command 'env info'

In reply to Mark Jonas
Quoted 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.

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>