diff options
| -rw-r--r-- | conf/machine/include/rpi-base.inc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index b01c561..5eed55d 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
| @@ -76,23 +76,18 @@ def make_dtb_boot_files(d): | |||
| 76 | imgtyp = d.getVar('KERNEL_IMAGETYPE') | 76 | imgtyp = d.getVar('KERNEL_IMAGETYPE') |
| 77 | 77 | ||
| 78 | def transform(dtb): | 78 | def transform(dtb): |
| 79 | base = os.path.basename(dtb) | ||
| 79 | if dtb.endswith('dtb'): | 80 | if dtb.endswith('dtb'): |
| 80 | # eg: whatever/bcm2708-rpi-b.dtb has: | 81 | # eg: whatever/bcm2708-rpi-b.dtb has: |
| 81 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb | 82 | # DEPLOYDIR file: bcm2708-rpi-b.dtb |
| 82 | # destination: bcm2708-rpi-b.dtb | 83 | # destination: bcm2708-rpi-b.dtb |
| 83 | base = os.path.basename(dtb) | 84 | return base |
| 84 | src = '{}-{}'.format(imgtyp, base) | ||
| 85 | dst = base | ||
| 86 | return '{};{}'.format(src, dst) | ||
| 87 | elif dtb.endswith('dtbo'): | 85 | elif dtb.endswith('dtbo'): |
| 88 | # overlay dtb: | 86 | # overlay dtb: |
| 89 | # eg: overlays/hifiberry-amp.dtbo has: | 87 | # eg: overlays/hifiberry-amp.dtbo has: |
| 90 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo | 88 | # DEPLOYDIR file: hifiberry-amp.dtbo |
| 91 | # destination: overlays/hifiberry-amp.dtbo | 89 | # destination: overlays/hifiberry-amp.dtbo |
| 92 | base = os.path.basename(dtb) | 90 | return '{};{}'.format(base, dtb) |
| 93 | src = '{}-{}'.format(imgtyp, base) | ||
| 94 | dst = dtb | ||
| 95 | return '{};{}'.format(src, dtb) | ||
| 96 | 91 | ||
| 97 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) | 92 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) |
| 98 | 93 | ||
