Skip to contentSkip to conversation

devicetree.bbclass: include symbols in base DT

PATCH New Alex Kiernan 1 participant 1 message Feb 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devicetree.bbclass: include symbols in base DT

When processing overlays, the base device tree must be compiled with symbols, otherwise attempting to apply overlays in U-Boot will fail with:

failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
base fdt does did not have a /__symbols__ node
make sure you've compiled with -@

---

 meta/classes/devicetree.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/devicetree.bbclass +1 -1
index d8779c794378..c772ab2ab93e 100644
@@ -59,7 +59,7 @@ DT_BOOT_CPU ??= "0"
 
 DTC_FLAGS ?= "-R ${DT_RESERVED_MAP} -b ${DT_BOOT_CPU}"
 DTC_PPFLAGS ?= "-nostdinc -undef -D__DTS__ -x assembler-with-cpp"
-DTC_BFLAGS ?= "-p ${DT_PADDING_SIZE}"
+DTC_BFLAGS ?= "-p ${DT_PADDING_SIZE} -@"
 DTC_OFLAGS ?= "-p 0 -@ -H epapr"
 
 python () {
Signature · 1 line
2.17.1