diff options
author | Christopher Boyd <xpboyd@gmail.com> | 2020-05-18 09:24:49 -0400 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-05-19 15:45:08 -0300 |
commit | 954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a (patch) | |
tree | 5ed18c595efed431e976a314c95bb60b0d1720c8 /conf | |
parent | 21a7096d13317d0f8e759bc247fe94598b62c2c0 (diff) | |
download | meta-freescale-954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a.tar.gz |
fix: handle if KERNEL_DEVICETREE isn't defined
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/include/utilities.inc | 5 |
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: |