diff options
| -rw-r--r-- | conf/machine/include/utilities.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc index a56fd9636..164d77f42 100644 --- a/conf/machine/include/utilities.inc +++ b/conf/machine/include/utilities.inc | |||
| @@ -7,10 +7,11 @@ def make_dtb_boot_files(d): | |||
| 7 | alldtbs = d.getVar('KERNEL_DEVICETREE') | 7 | alldtbs = d.getVar('KERNEL_DEVICETREE') |
| 8 | 8 | ||
| 9 | def transform(dtb): | 9 | def transform(dtb): |
| 10 | if dtb.endswith('dtb') or dtb.endswith('dtbo'): | 10 | if not (dtb.endswith('dtb') or dtb.endswith('dtbo')): |
| 11 | # eg: whatever/bcm2708-rpi-b.dtb has: | 11 | # eg: whatever/bcm2708-rpi-b.dtb has: |
| 12 | # DEPLOYDIR file: bcm2708-rpi-b.dtb | 12 | # DEPLOYDIR file: bcm2708-rpi-b.dtb |
| 13 | # destination: bcm2708-rpi-b.dtb | 13 | # destination: bcm2708-rpi-b.dtb |
| 14 | return os.path.basename(dtb) | 14 | bb.error("KERNEL_DEVICETREE entry %s is not a .dtb or .dtbo file." % (dtb) ) |
| 15 | return os.path.basename(dtb) | ||
| 15 | 16 | ||
| 16 | return ' '.join([transform(dtb) for dtb in alldtbs.split() if dtb]) | 17 | return ' '.join([transform(dtb) for dtb in alldtbs.split() if dtb]) |
