u-boot/arch/sandbox
Simon Glass d8289e7dfe sandbox: fdt: Avoid overwriting an existing fdt
Since the removal of OF_HOSTFILE logic in board_fdt_blob_setup(), the
logic for obtaining the DT is handled in the OF_BOARD option. If a
devicetree comes from a bloblist it is immediately overwritten by this
function.

Fix this by skipping the function if a devicetree is already present.

This is sort-of a fix for e7fb7896 ("sandbox: Remove OF_HOSTFILE") but
it has only come to light since bloblist was added, so I have not added
a Fixes tag.

Unfortunately it is not possible to report the correct FDT source with
the current code. It might be best to use an error-return code for
board_fdt_blob_setup() so that an error can be reported if the board
does not provide the DT.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-08-09 16:03:19 -06:00
..
cpu sandbox: fdt: Avoid overwriting an existing fdt 2024-08-09 16:03:19 -06:00
dts bootstd: Add test for bootmeth_android 2024-07-18 13:51:30 -06:00
include/asm test: Move some SPL-loading test-code into sandbox common 2024-08-09 16:03:19 -06:00
lib sandbox: cleanup linker scripts and sections 2024-07-03 07:36:33 +01:00
config.mk efi_loader: move HOST_ARCH to version_autogenerated.h 2024-04-08 13:04:48 +02:00
Kconfig sandbox: improve description of CONFIG_SANDBOX_CRASH_RESET 2024-04-12 08:53:31 -06:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00