From: Simon Glass Date: Mon, 28 Feb 2022 19:08:24 +0000 (-0700) Subject: fdt: sandbox: Avoid looking for an appended device tree X-Git-Tag: v2022.07~118^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=423cf0acdacd2260e362f1caec8a3aa6d2f59788;p=platform%2Fkernel%2Fu-boot.git 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 --- 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))