lib/fdtdec.c: Disallow overriding the fdt address with mandatory passage

When we have CONFIG_BLOBLIST_PASSAGE_MANDATORY don't allow the device
tree address to be overridden. The device tree we're given is the one
that must be used.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Raymond Mao <raymondmaoca@gmail.com>
This commit is contained in:
Tom Rini
2026-01-06 12:47:10 -06:00
parent 0a46055d96
commit 427d6111d3

View File

@@ -1860,7 +1860,8 @@ int fdtdec_setup(void)
}
/* Allow the board to override the fdt address. */
if (IS_ENABLED(CONFIG_OF_BOARD)) {
if (IS_ENABLED(CONFIG_OF_BOARD) &&
!IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY)) {
void *blob;
blob = (void *)gd->fdt_blob;