aboutsummaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorAKASHI Takahiro2019-02-25 15:54:36 +0900
committerHeinrich Schuchardt2019-02-25 12:47:13 +0100
commit49d81fdfb8c1fc07e54c8f01fe5c5b1125f884cb (patch)
tree8d124ccf33cef115a949601d0c57a4255cdf6447 /include/command.h
parentccecc3456a6c538626b34be40249bcf88279efcf (diff)
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 461b17447c0..2e24e8ad3ee 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