summaryrefslogtreecommitdiff
path: root/boot/bootmeth_script.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-06 17:52:28 +0300
committerTom Rini <trini@konsulko.com>2023-01-17 02:26:50 +0300
commit30f3333d8860fd97e131e24ad33a80f4d46e98b1 (patch)
treefe0fa6615416ff347f43605a20e30212bdb8a03a /boot/bootmeth_script.c
parent858fefd5fc3ae9006a0f545d7744e6f95270b14d (diff)
downloadu-boot-30f3333d8860fd97e131e24ad33a80f4d46e98b1.tar.xz
image: Move common image code to image_board and command
We should use the cmd/ directory for commands rather than for common code used elsewhere in U-Boot. Move the common 'source' code into image-board.c to achieve this. The image_source_script() function needs to call run_command_list() so seems to belong better in the command library. Move and rename it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/bootmeth_script.c')
-rw-r--r--boot/bootmeth_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c
index 6c84721d1c..5799c89a46 100644
--- a/boot/bootmeth_script.c
+++ b/boot/bootmeth_script.c
@@ -101,7 +101,7 @@ static int script_boot(struct udevice *dev, struct bootflow *bflow)
log_debug("mmc_bootdev: %s\n", env_get("mmc_bootdev"));
addr = map_to_sysmem(bflow->buf);
- ret = image_source_script(addr, NULL, NULL);
+ ret = cmd_source_script(addr, NULL, NULL);
if (ret)
return log_msg_ret("boot", ret);