mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
sandbox: move sandbox specifics to booti_setup()
Instead of checking a configuration setting in booti_start() adjust the sandbox implementation of booti_setup(). Write a console message when trying to run the booti command on the sandbox indicating that it is not supported. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
233c31d7ba
commit
04fc470cf8
2 changed files with 4 additions and 2 deletions
|
@ -85,5 +85,7 @@ int do_bootm_linux(int flag, struct bootm_info *bmi)
|
|||
int booti_setup(ulong image, ulong *relocated_addr, ulong *size,
|
||||
bool force_reloc)
|
||||
{
|
||||
return 0;
|
||||
log_err("Booting is not supported on the sandbox.\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ static int booti_start(struct bootm_info *bmi)
|
|||
unmap_sysmem((void *)ld);
|
||||
|
||||
ret = booti_setup(ld, &relocated_addr, &image_size, false);
|
||||
if (ret || IS_ENABLED(CONFIG_SANDBOX))
|
||||
if (ret)
|
||||
return 1;
|
||||
|
||||
/* Handle BOOTM_STATE_LOADOS */
|
||||
|
|
Loading…
Add table
Reference in a new issue