]> code.ossystems Code Review - openembedded-core.git/commitdiff
devicetree.bbclass: include symbols in base DT
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 12 Feb 2020 10:35:26 +0000 (10:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Feb 2020 13:07:17 +0000 (13:07 +0000)
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 -@

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devicetree.bbclass

index d8779c79437878172621674e3708537ac412123d..c772ab2ab93ed970cb3b0323918bb7bef73a8c04 100644 (file)
@@ -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 () {