]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
toolchain-scripts: Drop usage of kernel-arch
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Aug 2026 12:43:47 +0000 (13:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Aug 2026 17:04:08 +0000 (18:04 +0100)
We can just access the function directly instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/toolchain-scripts.bbclass

index 8c062ef0e74f5f384fe151ef09d3cd3864f62823..d94dcdee39b3802e3cd70290f0b45473d6cf00fd 100644 (file)
@@ -4,7 +4,7 @@
 # SPDX-License-Identifier: MIT
 #
 
-inherit toolchain-scripts-base siteinfo kernel-arch meson-routines
+inherit toolchain-scripts-base siteinfo meson-routines
 
 # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
 # doesn't always match our expectations... but we default to the stock value
@@ -155,7 +155,7 @@ toolchain_shared_env_script () {
        echo 'export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"' >> $script
        echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
        echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
-       echo 'export ARCH=${ARCH}' >> $script
+       echo 'export ARCH=${@oe.kernel.map_kernel_arch(d)}' >> $script
        echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
        echo 'export OECORE_TUNE_CCARGS="${TUNE_CCARGS}"' >> $script