mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 02:32:11 +02:00
sandbox: Support FDT fixups
Add support for doing device tree fixups in sandbox. This allows us to test that functionality in CI. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -50,8 +50,25 @@ int bootz_setup(ulong image, ulong *start, ulong *end)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Subcommand: PREP */
|
||||||
|
static int boot_prep_linux(struct bootm_headers *images)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
if (CONFIG_IS_ENABLED(LMB)) {
|
||||||
|
ret = image_setup_linux(images);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int do_bootm_linux(int flag, int argc, char *argv[], struct bootm_headers *images)
|
int do_bootm_linux(int flag, int argc, char *argv[], struct bootm_headers *images)
|
||||||
{
|
{
|
||||||
|
if (flag & BOOTM_STATE_OS_PREP)
|
||||||
|
return boot_prep_linux(images);
|
||||||
|
|
||||||
if (flag & (BOOTM_STATE_OS_GO | BOOTM_STATE_OS_FAKE_GO)) {
|
if (flag & (BOOTM_STATE_OS_GO | BOOTM_STATE_OS_FAKE_GO)) {
|
||||||
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
||||||
printf("## Transferring control to Linux (at address %08lx)...\n",
|
printf("## Transferring control to Linux (at address %08lx)...\n",
|
||||||
|
Reference in New Issue
Block a user