meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0"

Message ID 20251211035156.6941-1-srinuvasan.a@siemens.com
State Under Review
Headers show
Series meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0" | expand

Commit Message

srinuvasan.a Dec. 11, 2025, 3:51 a.m. UTC
From: srinuvasan <srinuvasan.a@siemens.com>

Removing the forced ISAR_CROSS_COMPILE = "0" improves kselftest build performance.
When cross-compilation is disabled, kselftests are executed under
QEMU emulated environment for foreign architectures, which significantly increases build time.
By dropping this override, ISAR can correctly enable or disable cross-compilation
based on the target architecture, resulting in much faster builds for non-native architectures.

Note: The memfd test case passes under both native and cross builds.
If you observe inconsistencies in other test cases,
they should be investigated and addressed in the upstream kselftest framework.

Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
---
 meta/classes-recipe/linux-kselftest.bbclass | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

Patch

diff --git a/meta/classes-recipe/linux-kselftest.bbclass b/meta/classes-recipe/linux-kselftest.bbclass
index ec2d267e..67165683 100644
--- a/meta/classes-recipe/linux-kselftest.bbclass
+++ b/meta/classes-recipe/linux-kselftest.bbclass
@@ -8,11 +8,6 @@ 
 
 inherit dpkg
 
-# Some test-cases like memfd compilation failed in cross-compilation.
-# Force native compilation for now to have consistent output across
-# ISAR native/cross compilation setups.
-ISAR_CROSS_COMPILE = "0"
-
 DESCRIPTION ?= "Kernel selftests from Linux kernel ${PV}"
 
 DEBIAN_BUILD_DEPENDS ?= " \
@@ -20,13 +15,13 @@  DEBIAN_BUILD_DEPENDS ?= " \
     flex,  \
     bison, \
     ${@ 'fuse' if d.getVar('BASE_DISTRO_CODENAME') in ['bullseye', 'buster'] else 'fuse3'}, \
-    libelf-dev:native, \
-    libcap-ng-dev:native, \
-    libpopt-dev:native, \
-    libcap-dev:native, \
-    libmount-dev:native, \
-    libfuse-dev:native, \
-    libmnl-dev:native, \
+    libelf-dev, \
+    libcap-ng-dev, \
+    libpopt-dev, \
+    libcap-dev, \
+    libmount-dev, \
+    libfuse-dev, \
+    libmnl-dev, \
     pkg-config, \
     clang:native, \
     llvm:native, \