diff options
-rw-r--r-- | conf/machine/include/rpi-base.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index 517d5ba..4a0ea2a 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -61,16 +61,17 @@ def make_dtb_boot_files(d): | |||
61 | 61 | ||
62 | def transform(dtb): | 62 | def transform(dtb): |
63 | if dtb.endswith('dtb'): | 63 | if dtb.endswith('dtb'): |
64 | # eg: bcm2708-rpi-b.dtb has: | 64 | # eg: whatever/bcm2708-rpi-b.dtb has: |
65 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb | 65 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb |
66 | # destination: bcm2708-rpi-b.dtb | 66 | # destination: bcm2708-rpi-b.dtb |
67 | src = '{}-{}'.format(imgtyp, dtb) | 67 | base = os.path.basename(dtb) |
68 | dst = dtb | 68 | src = '{}-{}'.format(imgtyp, base) |
69 | dst = base | ||
69 | return '{};{}'.format(src, dst) | 70 | return '{};{}'.format(src, dst) |
70 | elif dtb.endswith('dtbo'): | 71 | elif dtb.endswith('dtbo'): |
71 | # overlay dtb: | 72 | # overlay dtb: |
72 | # eg: overlays/hifiberry-amp.dtbo has: | 73 | # eg: overlays/hifiberry-amp.dtbo has: |
73 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbp | 74 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo |
74 | # destination: overlays/hifiberry-amp.dtbo | 75 | # destination: overlays/hifiberry-amp.dtbo |
75 | base = os.path.basename(dtb) | 76 | base = os.path.basename(dtb) |
76 | src = '{}-{}'.format(imgtyp, base) | 77 | src = '{}-{}'.format(imgtyp, base) |