sandbox: Support obtaining the next phase from an image
authorSimon Glass <sjg@chromium.org>
Fri, 21 Oct 2022 00:23:08 +0000 (18:23 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 15:03:18 +0000 (11:03 -0400)
commitf1459c365795a72fff94e249b0eb5cb61ead340e
tree5f375e56f815ea70a09786183b049399dbae97d7
parent5a61bf17d893c269b9cec383ebdd7c1d5348a853
sandbox: Support obtaining the next phase from an image

At present sandbox runs the next phase from discrete executables, so for
example u-boot-tpl runs u-boot-vpl to get to the next phase.

In some cases the phases are all built into a single firmware image, as is
done for real boards. Add support for this to sandbox.

Make it higher priority so that it takes precedence over the existing
method.

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