summaryrefslogtreecommitdiff
path: root/classes/image_type_tezi.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/image_type_tezi.bbclass')
-rw-r--r--classes/image_type_tezi.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index 9c85bd5..a079c10 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -27,8 +27,10 @@ def rootfs_tezi_emmc(d):
# Calculate size of bootfs...
bootfiles = [ os.path.join(deploydir, kernel) ]
- for dtb in d.getVar('KERNEL_DEVICETREE', True).split():
- bootfiles.append(os.path.join(deploydir, kernel + "-" + dtb))
+ has_devicetree = d.getVar('KERNEL_DEVICETREE', True)
+ if has_devicetree:
+ for dtb in d.getVar('KERNEL_DEVICETREE', True).split():
+ bootfiles.append(os.path.join(deploydir, kernel + "-" + dtb))
args = ['du', '-kLc']
args.extend(bootfiles)