[PATCH v7 11/15] fdt: sandbox: Avoid looking for an appended device tree

Simon Glass sjg at chromium.org
Mon Feb 28 15:16:53 CET 2022


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 at chromium.org>
---

Changes in v7:
- Add new patch to avoid looking for an appended device tree

 lib/fdtdec.c | 3 +++
 1 file changed, 3 insertions(+)

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))
-- 
2.35.1.574.g5d30c73bfb-goog



More information about the U-Boot mailing list