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:
牛 志宏
2025-04-10 20:55:52 -06:00
committed by Tom Rini
parent 7c9f8680c1
commit 2a6d7ad24d
+1 -1
View File
@@ -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;
}