boot: arm: riscv: sandbox: Add a format for the booti file
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:09 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commit098407e67390ed0c369029bab0777a51e5a7bad2
tree453851b96164f38ceb757278ffaaf83f8a9357a4
parent3c7b13b075488ebcff2923b0a7b46cc11f39285e
boot: arm: riscv: sandbox: Add a format for the booti file

Arm invented a new format for arm64 and something similar is also used
with RISC-V. Add this to the list of supported formats and provide a way
for the format to be detected on both architectures.

Update the genimg_get_format() function to support this.

Fix up switch() statements which don't currently mention this format.
Booti does not support a ramdisk, so this can be ignored.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/image.c
arch/riscv/lib/image.c
arch/sandbox/lib/bootm.c
boot/image-board.c
include/image.h