From 2a6d7ad24d347a34eb9e62f4afcaf36be28936ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E7=89=9B=20=E5=BF=97=E5=AE=8F?= Date: Mon, 24 Mar 2025 03:05:56 +0000 Subject: [PATCH] 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 --- boot/bootm_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5