]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
bootm: Add support for passing arguments to elf app
author牛 志宏 <Zone.Niuzh@hotmail.com>
Mon, 24 Mar 2025 03:05:56 +0000 (03:05 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 11 Apr 2025 02:55:52 +0000 (20:55 -0600)
This extends the bootm command to allow passing arguments to standalone
ELF applications.

Signed-off-by: Niu Zhihong <zone.niuzh@hotmail.com>
boot/bootm_os.c

index e9522cd3299cd709281c12402b203389e098aa00..7e41e1f6141f49b8955a2446866ca6e7b940380f 100644 (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;
 }