1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Simon Glass
2019-12-28 10:45:04 -07:00
committed by Tom Rini
parent 8e8ccfe1aa
commit 220a3a44a3
4 changed files with 15 additions and 7 deletions

View File

@@ -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;
}