[yocto] [meta-raspberrypi][PATCH] rpi-base: fix make_dtb_boot_files() for raspberrypi3-64
Andrei Gherzan
andrei at gherzan.ro
Fri Apr 21 09:04:40 PDT 2017
On Fri, Apr 21, 2017 at 10:37:52AM +0200, Andrea Galbusera wrote:
> 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 at gmail.com>
> ---
> conf/machine/include/rpi-base.inc | 9 +++++----
> 1 file 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):
>
> 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
Looks good to me but this seems like a typo.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170421/23de2094/attachment.pgp>
More information about the yocto
mailing list