summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:04 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 14:02:35 -0500
commit220a3a44a339a32b3dae13122ec85ccaede5d988 (patch)
treed679a24b3030851f27f83c7678a0228582e2b544 /cmd
parent8e8ccfe1aa1a3ea0cb88b4438c7a687fcf8632a1 (diff)
downloadu-boot-220a3a44a339a32b3dae13122ec85ccaede5d988.tar.gz
common: Rename and move source()
This function has a very generic name which does not adequately describe its purpose. Rename it and move it to image.h, since it relates to reading a script from an image. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/source.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/source.c b/cmd/source.c
index be1135014f..92f8f77ee6 100644
--- a/cmd/source.c
+++ b/cmd/source.c
@@ -41,8 +41,7 @@ static const char *get_default_image(const void *fit)
}
#endif
-int
-source (ulong addr, const char *fit_uname)
+int image_source_script(ulong addr, const char *fit_uname)
{
ulong len;
#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
@@ -183,7 +182,7 @@ static int do_source(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
printf ("## Executing script at %08lx\n", addr);
- rcode = source (addr, fit_uname);
+ rcode = image_source_script(addr, fit_uname);
return rcode;
}