cmd: env: extend "env [set|print] -e" to manage UEFI variables
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 24 Oct 2019 06:17:13 +0000 (15:17 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 30 Oct 2019 16:49:41 +0000 (17:49 +0100)
commit051aa89f46ca2412e91555df7a60a8bb604c5e29
treeac17c543ee2156a0f27cc6064223265c651e38f4
parentee5041451e467711b9a4b0e679ba9cc18d93400e
cmd: env: extend "env [set|print] -e" to manage UEFI variables

With this patch, when setting UEFI variable with "env set -e" command,
we will be able to
- specify vendor guid with "-guid guid",
- specify variable attributes,  BOOTSERVICE_ACCESS, RUNTIME_ACCESS,
  respectively with "-bs" and "-rt",
- append a value instead of overwriting with "-a",
- use memory as variable's value instead of explicit values given
  at the command line with "-i address,size"

If guid is not explicitly given, default value will be used.

Meanwhile, "env print -e," will be modified so that it will NOT dump
a variable's value if '-n' is specified.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/nvedit.c
cmd/nvedit_efi.c