summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Boyd <xpboyd@gmail.com>2020-05-18 09:24:49 -0400
committerOtavio Salvador <otavio@ossystems.com.br>2020-05-19 15:45:08 -0300
commit954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a (patch)
tree5ed18c595efed431e976a314c95bb60b0d1720c8
parent21a7096d13317d0f8e759bc247fe94598b62c2c0 (diff)
downloadmeta-freescale-954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a.tar.gz
fix: handle if KERNEL_DEVICETREE isn't defined
-rw-r--r--conf/machine/include/utilities.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc
index 164d77f4..e9695bde 100644
--- a/conf/machine/include/utilities.inc
+++ b/conf/machine/include/utilities.inc
@@ -6,6 +6,11 @@ def make_dtb_boot_files(d):
6 # Use only the basename for dtb files: 6 # Use only the basename for dtb files:
7 alldtbs = d.getVar('KERNEL_DEVICETREE') 7 alldtbs = d.getVar('KERNEL_DEVICETREE')
8 8
9
10 # DTBs may be built out of kernel with devicetree.bbclass
11 if not alldtbs:
12 return ''
13
9 def transform(dtb): 14 def transform(dtb):
10 if not (dtb.endswith('dtb') or dtb.endswith('dtbo')): 15 if not (dtb.endswith('dtb') or dtb.endswith('dtbo')):
11 # eg: whatever/bcm2708-rpi-b.dtb has: 16 # eg: whatever/bcm2708-rpi-b.dtb has: