]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: nvedit: Add sub-command 'env info'
authorLeo Ruan <tingquan.ruan@cn.bosch.com>
Fri, 24 May 2019 15:20:19 +0000 (17:20 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 13 Jul 2019 15:11:09 +0000 (11:11 -0400)
commit42a8930200adc4bb370ff18a919f23faeb8093ce
tree3d615deacd9b6ea7b2f04548b70505b58876f667
parente3444b11c2400a1a16da06638a4930724be73e69
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>
cmd/Kconfig
cmd/nvedit.c