[PATCH 07/22] sandbox: Support executables for more phases

Simon Glass sjg at chromium.org
Sat Jul 17 22:39:23 CEST 2021


The SPL header has a function for obtaining the phase in capital letters,
e.g. 'SPL'. Add one for lower-case also, as used by sandbox.

Use this to generalise the sandbox logic for determining the filename of
the next sandbox executable. This can provide support for VPL.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/sandbox/cpu/os.c          | 63 +++++++++++++++-------------------
 arch/sandbox/cpu/spl.c         | 18 ++++++++--
 arch/sandbox/include/asm/spl.h | 13 +++++++
 include/os.h                   |  5 ++-
 include/spl.h                  | 23 +++++++++++++
 test/image/spl_load.c          |  6 +++-
 6 files changed, 89 insertions(+), 39 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list