Skip to contentSkip to conversation

xen-rpi-u-boot-scr: fix UNPACKDIR

PATCH New Tim Orling 1 participant 2 messages Nov 25 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/2 xen-rpi-u-boot-scr: fix UNPACKDIR

Since oe-core:
f19ea21c8eb "bitbake.conf: set UNPACKDIR to just 'sources' and not 'sources-unpack'" UNPACKDIR defaults to ${WORKDIR}/sources, so we can drop the redundant definition.

Since oe-core:
46480a5e66 "insane/do_qa_unpack: add checks that ensure S is set correctly" S = "${UNPACKDIR}" is needed.

---
 .../recipes-bsp/xen-rpi-u-boot-scr/xen-rpi-u-boot-scr.bb       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
dynamic-layers/raspberrypi/recipes-bsp/xen-rpi-u-boot-scr/xen-rpi-u-boot-scr.bb +1 -2
index 3f83c7f8..e25963ad 100644
@@ -24,8 +24,7 @@ do_compile() {
 
 inherit kernel-arch deploy nopackages
 
-S = "${WORKDIR}/sources"
-UNPACKDIR = "${S}"
+S = "${UNPACKDIR}"
 
 do_deploy() {
     install -d ${DEPLOYDIR}
Signature · 1 line
2.56.1
author
#1 lore raw

PATCH 2/2 xen-rpi-u-boot-scr: replace UBOOT_ARCH

Since oe-core:
bdcd04bbc5 "kernel-arch: Drop UBOOT_ARCH", we should just use the oe.kernel.map_uboot_arch(d) call directly. This was the only reason for inheriting kernel-arch, so we can drop it.

---
 .../recipes-bsp/xen-rpi-u-boot-scr/xen-rpi-u-boot-scr.bb      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
dynamic-layers/raspberrypi/recipes-bsp/xen-rpi-u-boot-scr/xen-rpi-u-boot-scr.bb +2 -2
index e25963ad..7e7b2f6a 100644
@@ -19,10 +19,10 @@ do_compile() {
         -e 's/@@RPI_DEBUG_XEN_ARGS@@/${RPI_DEBUG_XEN_ARGS}/' \
         "${UNPACKDIR}/boot.cmd.xen.in" > "${WORKDIR}/boot.cmd"
 
-    mkimage -A ${UBOOT_ARCH} -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
+    mkimage -A ${@oe.kernel.map_uboot_arch(d)} -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
 }
 
-inherit kernel-arch deploy nopackages
+inherit deploy nopackages
 
 S = "${UNPACKDIR}"
 
Signature · 1 line
2.56.1