public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0"
@ 2025-12-11  3:51 srinuvasan.a via isar-users
  2025-12-16  7:29 ` Anton Mikanovich
  0 siblings, 1 reply; 3+ messages in thread
From: srinuvasan.a via isar-users @ 2025-12-11  3:51 UTC (permalink / raw)
  To: isar-users; +Cc: srinuvasan

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(-)

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, \
-- 
2.39.5

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251211035156.6941-1-srinuvasan.a%40siemens.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-16  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-11  3:51 [PATCH] meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0" srinuvasan.a via isar-users
2025-12-16  7:29 ` Anton Mikanovich
2025-12-16  8:26   ` 'MOESSBAUER, Felix' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox