kernel-selftest: Specify the target with -target instead of -arch
PATCH 1/1 kernel-selftest: Specify the target with -target instead of -arch
This ensures that generated code is properly cross compiled
Signed-off-by Khem Raj <[email protected]>
--- meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +1 -1
@@ -45,7 +45,7 @@ EXTRA_OEMAKE = '\ CROSS_COMPILE=${TARGET_PREFIX} \ ARCH=${ARCH} \ CC="${CC}" \ - CLANG="clang -fno-stack-protector -arch ${ARCH} ${TOOLCHAIN_OPTIONS}" \ + CLANG="clang -fno-stack-protector -target ${TARGET_ARCH} ${TOOLCHAIN_OPTIONS}" \ AR="${AR}" \ LD="${LD}" \ DESTDIR="${D}" \
Signature · 1 line
2.26.0