mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
common: cmd_elf: Add support to disable start of application
Added support to disable the start of application by using a environment variable autostart Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
23b5877c64
commit
44c8fd3aba
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,7 @@ int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
unsigned long addr; /* Address of the ELF image */
|
||||
unsigned long rc; /* Return value from user code */
|
||||
char *sload, *saddr;
|
||||
const char *ep = getenv("autostart");
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
int rcode = 0;
|
||||
|
@ -123,6 +124,9 @@ int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
else
|
||||
addr = load_elf_image_shdr(addr);
|
||||
|
||||
if (ep && !strcmp(ep, "no"))
|
||||
return rcode;
|
||||
|
||||
printf("## Starting application at 0x%08lx ...\n", addr);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue