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 <richard.purdie@linuxfoundation.org>
# SPDX-License-Identifier: MIT
#
-inherit kernel-arch deploy cml1 pkgconfig
+inherit deploy cml1 pkgconfig
LICENSE ?= "GPL-2.0-only"
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 \