sandbox: Update os_find_u_boot() to find the .img file
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:35:13 +0000 (17:35 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:31 +0000 (09:57 -0500)
commit01ad9f75c5ccbf2dbb30f8c630fad7e648026449
tree7b7d512102983a4ba0e16673e76724ae0ad51caa
parent8482356f48c96eb49f1bd9efd53c887d09a1cf64
sandbox: Update os_find_u_boot() to find the .img file

At present this function can only locate the u-boot ELF file. For SPL it
is handy to be able to locate u-boot.img since this is what would normally
be loaded by SPL.

Add another argument to allow this to be selected.

While we are here, update the function to load SPL when running in TPL,
since that is the next stage.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
arch/sandbox/cpu/spl.c
include/os.h