summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
author牛 志宏 <[email protected]>2025-03-24 03:05:56 +0000
committerTom Rini <[email protected]>2025-04-10 20:55:52 -0600
commit2a6d7ad24d347a34eb9e62f4afcaf36be28936ff (patch)
tree7d1b3c1d84dc3c6638543c6b75c0ddba5e251c6d /boot
parent7c9f8680c16e7a0e1d2afc6c2542e2555eb6bb3c (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 <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootm_os.c2
1 files changed, 1 insertions, 1 deletions
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;
}