bootm: Add support for passing arguments to elf app
This extends the bootm command to allow passing arguments to standalone ELF applications. Signed-off-by: Niu Zhihong <zone.niuzh@hotmail.com>
This commit is contained in:
@@ -402,7 +402,7 @@ static int do_bootm_elf(int flag, struct bootm_info *bmi)
|
||||
if (flag != BOOTM_STATE_OS_GO)
|
||||
return 0;
|
||||
|
||||
bootelf(bmi->images->ep, flags, 0, NULL);
|
||||
bootelf(bmi->images->ep, flags, bmi->argc, bmi->argv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user