commit | 757a1ff8bc959ad64198a68f20260ae2932c4728 | [log] [tgz] |
---|---|---|
author | 牛 志宏 <Zone.Niuzh@hotmail.com> | Mon Mar 24 03:05:56 2025 +0000 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 10 20:55:52 2025 -0600 |
tree | 7d1b3c1d84dc3c6638543c6b75c0ddba5e251c6d | |
parent | 41edc12f6daffff8882311343b54db6083052f53 [diff] |
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>
diff --git a/boot/bootm_os.c b/boot/bootm_os.c index e9522cd..7e41e1f 100644 --- a/boot/bootm_os.c +++ b/boot/bootm_os.c
@@ -402,7 +402,7 @@ 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; }