summaryrefslogtreecommitdiffstats
path: root/meta/classes/devicetree.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/devicetree.bbclass')
-rw-r--r--meta/classes/devicetree.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/devicetree.bbclass b/meta/classes/devicetree.bbclass
index dbc83f2a1d..8fe5a5ed79 100644
--- a/meta/classes/devicetree.bbclass
+++ b/meta/classes/devicetree.bbclass
@@ -55,9 +55,10 @@ DT_RESERVED_MAP ??= "8"
55DT_BOOT_CPU[doc] = "The boot cpu, defaults to 0" 55DT_BOOT_CPU[doc] = "The boot cpu, defaults to 0"
56DT_BOOT_CPU ??= "0" 56DT_BOOT_CPU ??= "0"
57 57
58DTC_FLAGS ?= "-R ${DT_RESERVED_MAP} -p ${DT_PADDING_SIZE} -b ${DT_BOOT_CPU}" 58DTC_FLAGS ?= "-R ${DT_RESERVED_MAP} -b ${DT_BOOT_CPU}"
59DTC_PPFLAGS ?= "-nostdinc -undef -D__DTS__ -x assembler-with-cpp" 59DTC_PPFLAGS ?= "-nostdinc -undef -D__DTS__ -x assembler-with-cpp"
60DTC_OFLAGS ?= "-@ -H epapr" 60DTC_BFLAGS ?= "-p ${DT_PADDING_SIZE}"
61DTC_OFLAGS ?= "-p 0 -@ -H epapr"
61 62
62python () { 63python () {
63 if d.getVar("KERNEL_INCLUDE"): 64 if d.getVar("KERNEL_INCLUDE"):
@@ -106,6 +107,8 @@ def devicetree_compile(dtspath, includes, d):
106 dtcargs = ["dtc"] + (d.getVar("DTC_FLAGS") or "").split() 107 dtcargs = ["dtc"] + (d.getVar("DTC_FLAGS") or "").split()
107 if isoverlay: 108 if isoverlay:
108 dtcargs += (d.getVar("DTC_OFLAGS") or "").split() 109 dtcargs += (d.getVar("DTC_OFLAGS") or "").split()
110 else:
111 dtcargs += (d.getVar("DTC_BFLAGS") or "").split()
109 for i in includes: 112 for i in includes:
110 dtcargs += ["-i", i] 113 dtcargs += ["-i", i]
111 dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")] 114 dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]