* [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
* Re: [PATCH] meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0"
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
0 siblings, 1 reply; 3+ messages in thread
From: Anton Mikanovich @ 2025-12-16 7:29 UTC (permalink / raw)
To: srinuvasan.a, isar-users
11/12/2025 05:51, srinuvasan.a via isar-users wrote:
> 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>
Applied to next, thanks.
--
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/54b747f1-f8a9-4196-916b-7ec346dd40ba%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta/classes-recipe/linux-kselftest: remove forced ISAR_CROSS_COMPILE = "0"
2025-12-16 7:29 ` Anton Mikanovich
@ 2025-12-16 8:26 ` 'MOESSBAUER, Felix' via isar-users
0 siblings, 0 replies; 3+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2025-12-16 8:26 UTC (permalink / raw)
To: amikan, isar-users, Arjunan, Srinu
On Tue, 2025-12-16 at 09:29 +0200, Anton Mikanovich wrote:
> 11/12/2025 05:51, srinuvasan.a via isar-users wrote:
> > 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>
> Applied to next, thanks.
Thanks for addressing this. This also was one of my findings regarding
inconsistencies in the testsuite (kselftests where part of the cross
test, but they were not cross). That's now consistent again.
Felix
--
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/39c46a7db30b04df0c5acb24f5feff3e8bf0f11c.camel%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