From: 牛 志宏 Date: Mon, 24 Mar 2025 03:05:56 +0000 (+0000) Subject: bootm: Add support for passing arguments to elf app X-Git-Tag: v2025.07-rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6d7ad24d347a34eb9e62f4afcaf36be28936ff;p=thirdparty%2Fu-boot.git 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 --- diff --git a/boot/bootm_os.c b/boot/bootm_os.c index e9522cd3299..7e41e1f6141 100644 --- a/boot/bootm_os.c +++ b/boot/bootm_os.c @@ -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; }