diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-02-25 15:54:36 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-02-25 12:47:13 +0100 |
commit | 49d81fdfb8c1fc07e54c8f01fe5c5b1125f884cb (patch) | |
tree | 8d124ccf33cef115a949601d0c57a4255cdf6447 /include/command.h | |
parent | ccecc3456a6c538626b34be40249bcf88279efcf (diff) | |
download | u-boot-49d81fdfb8c1fc07e54c8f01fe5c5b1125f884cb.tar.gz u-boot-49d81fdfb8c1fc07e54c8f01fe5c5b1125f884cb.tar.bz2 u-boot-49d81fdfb8c1fc07e54c8f01fe5c5b1125f884cb.zip |
cmd: env: add "-e" option for handling UEFI variables
"env [print|set] -e" allows for handling uefi variables without
knowing details about mapping to corresponding u-boot variables.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/command.h')
-rw-r--r-- | include/command.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h index 461b17447c..2e24e8ad3e 100644 --- a/include/command.h +++ b/include/command.h @@ -139,6 +139,14 @@ extern int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] extern unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc, char * const argv[]); + +#if defined(CONFIG_CMD_NVEDIT_EFI) +extern int do_env_print_efi(cmd_tbl_t *cmdtp, int flag, int argc, + char * const argv[]); +extern int do_env_set_efi(cmd_tbl_t *cmdtp, int flag, int argc, + char * const argv[]); +#endif + /* * Error codes that commands return to cmd_process(). We use the standard 0 * and 1 for success and failure, but add one more case - failure with a |