Move the ARCH usage into barebox.bbclass and stop using kernel-arch.bbclass
since there are things in there which barebox might not want.

This does mean the variables ARCH and UBOOT_ARCH are no longer in the 
environment
but I hopefully covered the main usages of the variables with alternatives.

Signed-off-by: Richard Purdie <[email protected]>
---
 meta/classes-recipe/barebox.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/barebox.bbclass 
b/meta/classes-recipe/barebox.bbclass
index 2411fb5caa1..d8f56859484 100644
--- a/meta/classes-recipe/barebox.bbclass
+++ b/meta/classes-recipe/barebox.bbclass
@@ -4,7 +4,7 @@
 # SPDX-License-Identifier: MIT
 #
 
-inherit kernel-arch deploy cml1 pkgconfig
+inherit deploy cml1 pkgconfig
 
 LICENSE ?= "GPL-2.0-only"
 
@@ -49,7 +49,7 @@ BAREBOX_FIRMWARE_DIR[doc] = "Overwrite barebox' firmware 
blobs search directory
 BAREBOX_FIRMWARE_DIR ??= "${B}/firmware"
 
 EXTRA_OEMAKE = " \
-    CROSS_COMPILE=${TARGET_PREFIX} -C ${S} O=${B} \
+    ARCH=${@oe.kernel.map_kernel_arch(d)} CROSS_COMPILE=${TARGET_PREFIX} -C 
${S} O=${B} \
     BUILDSYSTEM_VERSION=${BAREBOX_BUILDSYSTEM_VERSION} \
     CONFIG_EXTRA_FIRMWARE_DIR=${BAREBOX_FIRMWARE_DIR} \
     PKG_CONFIG=pkg-config-native \
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#242534): 
https://lists.openembedded.org/g/openembedded-core/message/242534
Mute This Topic: https://lists.openembedded.org/mt/120561025/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to