diff options
author | Simon Glass <sjg@chromium.org> | 2022-02-28 12:08:24 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-06 14:01:42 -0400 |
commit | 423cf0acdacd2260e362f1caec8a3aa6d2f59788 (patch) | |
tree | 7144eefe5cb0b86d8a894f93c1855e22e976b2b2 | |
parent | 690af71850149bf242502f688eca80fb302d1f76 (diff) | |
download | u-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.zip u-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.tar.gz u-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.tar.bz2 |
fdt: sandbox: Avoid looking for an appended device tree
We don't use an appended tree for sandbox and the required symbols are
not present. Add a condition to avoid a build error.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | lib/fdtdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 086f0c7..0c0ec03 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1225,6 +1225,9 @@ static void *fdt_find_separate(void) { void *fdt_blob = NULL; + if (IS_ENABLED(CONFIG_SANDBOX)) + return NULL; + #ifdef CONFIG_SPL_BUILD /* FDT is at end of BSS unless it is in a different memory region */ if (CONFIG_IS_ENABLED(SEPARATE_BSS)) |