Message ID | 20250110180331.2537602-1-ross.burton@arm.com |
---|---|
State | Accepted, archived |
Commit | 05322beb290e1db30bef49b4364f8a8e6e9f7408 |
Headers | show |
Series | [v2,1/4] classes/nativesdk: also override TUNE_PKGARCH | expand |
diff --git a/meta/classes-recipe/nativesdk.bbclass b/meta/classes-recipe/nativesdk.bbclass index b0634de5829..4e57349aa08 100644 --- a/meta/classes-recipe/nativesdk.bbclass +++ b/meta/classes-recipe/nativesdk.bbclass @@ -32,6 +32,7 @@ RECIPE_SYSROOT = "${WORKDIR}/recipe-sysroot" # PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}" PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}" +TUNE_PKGARCH = "${SDK_ARCH}" # # We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
The nativesdk class overrides PACKAGE_ARCH and unsets TUNE_FEATURES, but as recipes might want to look at TUNE_PKGARCH too (for example, when setting QEMU_EXTRAOPTIONS) we should also override that variable. Otherwise, a nativesdk recipe will have the TUNE_PKGARCH of the target, which leads to errors (eg passing mips arguments to an arm qemu). Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes-recipe/nativesdk.bbclass | 1 + 1 file changed, 1 insertion(+)