mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user