summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-28 12:08:24 -0700
committerTom Rini <trini@konsulko.com>2022-04-06 14:01:42 -0400
commit423cf0acdacd2260e362f1caec8a3aa6d2f59788 (patch)
tree7144eefe5cb0b86d8a894f93c1855e22e976b2b2 /lib
parent690af71850149bf242502f688eca80fb302d1f76 (diff)
downloadu-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.tar.gz
u-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.tar.bz2
u-boot-423cf0acdacd2260e362f1caec8a3aa6d2f59788.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 086f0c732a..0c0ec034ec 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))