rpi-base.inc: handle empty/undefined KERNEL_DEVICETREE
This patch is based on an analog patch from Christopher Boyd committed at meta-freescale.
(see https://github.com/Freescale/meta-freescale/commit/954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a)
@@ -119,6 +119,10 @@ def make_dtb_boot_files(d):
# KERNEL_DEVICETREE.
alldtbs = d.getVar('KERNEL_DEVICETREE')
+ # DTBs may be built out of kernel with devicetree.bbclass
+ if not alldtbs:
+ return ''
+
def transform(dtb):
base = os.path.basename(dtb)
if dtb.endswith('dtbo') or base == 'overlay_map.dtb':
