diff options
| author | Pavel Zhukov <pavel@zhukoff.net> | 2023-02-22 22:33:41 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-14 17:47:40 +0000 |
| commit | 16f5acebf3434a91db001fd68f85708860921d64 (patch) | |
| tree | c9f98eb2c7e2c64f19eebd9ac09bee55a220c971 /meta | |
| parent | 44ce72fd4b1650fb3137e4feedab8475ec0edebc (diff) | |
| download | poky-16f5acebf3434a91db001fd68f85708860921d64.tar.gz | |
u-boot: Map arm64 into map for u-boot dts installation
While arm64 is a valid UBOOT_ARCH (according to mkimage -A) u-boot
keeps arm64 specific dts under 'arch/arm' directory.
As the result the recipe tries to install arch/arm64 (if UBOOT_DTB
was specified) and fails with [1]. Remapping "arm64" to "arm" to fix this
issue.
[1]
| install: cannot stat '.../u-boot/1_2023.01-r0/build/arch/arm64/dts/u-boot.dtb': No such file or directory
(From OE-Core rev: 2f4ceab401c4602671ba9e04bd3bcd632308662f)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ca99403d5f320c6d7ae59b107f3b3bf183b4089)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 5705e5835b..4a8d93f70a 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
| @@ -32,7 +32,7 @@ do_savedefconfig() { | |||
| 32 | } | 32 | } |
| 33 | do_savedefconfig[nostamp] = "1" | 33 | do_savedefconfig[nostamp] = "1" |
| 34 | addtask savedefconfig after do_configure | 34 | addtask savedefconfig after do_configure |
| 35 | 35 | UBOOT_ARCH_DIR = "${@'arm' if d.getVar('UBOOT_ARCH').startswith('arm') else d.getVar('UBOOT_ARCH')}" | |
| 36 | do_compile () { | 36 | do_compile () { |
| 37 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then | 37 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then |
| 38 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk | 38 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk |
| @@ -336,7 +336,7 @@ do_deploy () { | |||
| 336 | 336 | ||
| 337 | if [ -n "${UBOOT_DTB}" ] | 337 | if [ -n "${UBOOT_DTB}" ] |
| 338 | then | 338 | then |
| 339 | install -m 644 ${B}/arch/${UBOOT_ARCH}/dts/${UBOOT_DTB_BINARY} ${DEPLOYDIR}/ | 339 | install -m 644 ${B}/arch/${UBOOT_ARCH_DIR}/dts/${UBOOT_DTB_BINARY} ${DEPLOYDIR}/ |
| 340 | fi | 340 | fi |
| 341 | } | 341 | } |
| 342 | 342 | ||
