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): def transform(dtb): if dtb.endswith('dtb'): - # eg: bcm2708-rpi-b.dtb has: + # eg: whatever/bcm2708-rpi-b.dtb has: # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb # destination: bcm2708-rpi-b.dtb - src = '{}-{}'.format(imgtyp, dtb) - dst = dtb + base = os.path.basename(dtb) + src = '{}-{}'.format(imgtyp, base) + dst = base return '{};{}'.format(src, dst) elif dtb.endswith('dtbo'): # overlay dtb: # eg: overlays/hifiberry-amp.dtbo has: - # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbp + # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo # destination: overlays/hifiberry-amp.dtbo base = os.path.basename(dtb) src = '{}-{}'.format(imgtyp, base)