diff options
author | Andrea Galbusera <gizero@gmail.com> | 2017-04-21 10:37:52 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2017-04-21 18:01:08 +0100 |
commit | 8527a396d38aec7776182caca8b9a237e03c3965 (patch) | |
tree | 997a05479f23a1ec8953be91c6fb471b48a128f6 | |
parent | decdacf30c2337193e99e4aac0ad2892120fe778 (diff) | |
download | meta-raspberrypi-8527a396d38aec7776182caca8b9a237e03c3965.tar.gz |
rpi-base: fix make_dtb_boot_files() for raspberrypi3-64
Building the stock wic image for raspberrypi3-64 failed to find dtbs listed in
IMAGE_BOOT_FILES. This patch updates the make_dtb_boot_files() function to
account for dtbs listed in KERNEL_DEVICETREE that do include a path prefix:
this is the case for things like broadcom/bcm2710-rpi-3-b.dtb (the dts dir
layout in the kernel sources is different for arm64). Use the same approach
already used for overlays/ dir. While at it also fix a typo in dtb overlay
code path comments.
Signed-off-by: Andrea Galbusera <gizero@gmail.com>
-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) |