summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-devicetree.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel-devicetree.bbclass')
-rw-r--r--meta/classes/kernel-devicetree.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass
index 81dda8003f..d4f8864200 100644
--- a/meta/classes/kernel-devicetree.bbclass
+++ b/meta/classes/kernel-devicetree.bbclass
@@ -9,6 +9,9 @@ FILES_${KERNEL_PACKAGE_NAME}-image-zimage-bundle = "/${KERNEL_IMAGEDEST}/zImage-
9# Generate kernel+devicetree bundle 9# Generate kernel+devicetree bundle
10KERNEL_DEVICETREE_BUNDLE ?= "0" 10KERNEL_DEVICETREE_BUNDLE ?= "0"
11 11
12# dtc flags passed via DTC_FLAGS env variable
13KERNEL_DTC_FLAGS ?= ""
14
12normalize_dtb () { 15normalize_dtb () {
13 dtb="$1" 16 dtb="$1"
14 if echo $dtb | grep -q '/dts/'; then 17 if echo $dtb | grep -q '/dts/'; then
@@ -50,6 +53,10 @@ do_configure_append() {
50} 53}
51 54
52do_compile_append() { 55do_compile_append() {
56 if [ -n "${KERNEL_DTC_FLAGS}" ]; then
57 export DTC_FLAGS="${KERNEL_DTC_FLAGS}"
58 fi
59
53 for dtbf in ${KERNEL_DEVICETREE}; do 60 for dtbf in ${KERNEL_DEVICETREE}; do
54 dtb=`normalize_dtb "$dtbf"` 61 dtb=`normalize_dtb "$dtbf"`
55 oe_runmake $dtb CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} 62 oe_runmake $dtb CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}