* [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested
@ 2025-04-02 21:38 Thomas Weißschuh
2025-04-02 21:38 ` [PATCH 1/2] selftests/nolibc: drop dependency from sysroot to defconfig Thomas Weißschuh
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2025-04-02 21:38 UTC (permalink / raw)
To: Willy Tarreau, Shuah Khan
Cc: linux-kselftest, linux-kernel, Sebastian Andrzej Siewior,
Thomas Weißschuh
If no explicit XARCH is specified, use the toolchains default.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (2):
selftests/nolibc: drop dependency from sysroot to defconfig
selftests/nolibc: only consider XARCH for CFLAGS when requested
tools/testing/selftests/nolibc/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
base-commit: 9a9b20007ab833c1aa3791efcfdf67e7e3ea8902
change-id: 20250330-nolibc-nolibc-test-native-6d4d84d764eb
Best regards,
--
Thomas Weißschuh <linux@weissschuh.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] selftests/nolibc: drop dependency from sysroot to defconfig
2025-04-02 21:38 [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
@ 2025-04-02 21:38 ` Thomas Weißschuh
2025-04-02 21:39 ` [PATCH 2/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
2025-04-05 20:57 ` [PATCH 0/2] " Willy Tarreau
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2025-04-02 21:38 UTC (permalink / raw)
To: Willy Tarreau, Shuah Khan
Cc: linux-kselftest, linux-kernel, Sebastian Andrzej Siewior,
Thomas Weißschuh
The creation of the sysroot does not require a kernel configuration.
Drop the dependency.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
tools/testing/selftests/nolibc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
index 58bcbbd029bc3ad9ccac968191b703ccf5df0717..34d01e473c013a1400bf6023132017a5f663f75c 100644
--- a/tools/testing/selftests/nolibc/Makefile
+++ b/tools/testing/selftests/nolibc/Makefile
@@ -232,7 +232,7 @@ all: run
sysroot: sysroot/$(ARCH)/include
-sysroot/$(ARCH)/include: | defconfig
+sysroot/$(ARCH)/include:
$(Q)rm -rf sysroot/$(ARCH) sysroot/sysroot
$(QUIET_MKDIR)mkdir -p sysroot
$(Q)$(MAKE) -C $(srctree) outputmakefile
--
2.49.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] selftests/nolibc: only consider XARCH for CFLAGS when requested
2025-04-02 21:38 [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
2025-04-02 21:38 ` [PATCH 1/2] selftests/nolibc: drop dependency from sysroot to defconfig Thomas Weißschuh
@ 2025-04-02 21:39 ` Thomas Weißschuh
2025-04-05 20:57 ` [PATCH 0/2] " Willy Tarreau
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2025-04-02 21:39 UTC (permalink / raw)
To: Willy Tarreau, Shuah Khan
Cc: linux-kselftest, linux-kernel, Sebastian Andrzej Siewior,
Thomas Weißschuh
If no explicit XARCH is specified, use the toolchains default.
Suggested-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Link: https://lore.kernel.org/lkml/20250326205434.bPx_kVUx@breakpoint.cc/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
tools/testing/selftests/nolibc/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
index 34d01e473c013a1400bf6023132017a5f663f75c..89ee265f7467e2e5e32edf3eb51b4ec758e8004f 100644
--- a/tools/testing/selftests/nolibc/Makefile
+++ b/tools/testing/selftests/nolibc/Makefile
@@ -174,10 +174,13 @@ CFLAGS_s390x = -m64
CFLAGS_s390 = -m31
CFLAGS_mips32le = -EL -mabi=32 -fPIC
CFLAGS_mips32be = -EB -mabi=32
+ifeq ($(origin XARCH),command line)
+CFLAGS_XARCH = $(CFLAGS_$(XARCH))
+endif
CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all))
CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -W -Wall -Wextra \
$(call cc-option,-fno-stack-protector) $(call cc-option,-Wmissing-prototypes) \
- $(CFLAGS_$(XARCH)) $(CFLAGS_STACKPROTECTOR) $(CFLAGS_EXTRA)
+ $(CFLAGS_XARCH) $(CFLAGS_STACKPROTECTOR) $(CFLAGS_EXTRA)
LDFLAGS :=
LIBGCC := -lgcc
--
2.49.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested
2025-04-02 21:38 [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
2025-04-02 21:38 ` [PATCH 1/2] selftests/nolibc: drop dependency from sysroot to defconfig Thomas Weißschuh
2025-04-02 21:39 ` [PATCH 2/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
@ 2025-04-05 20:57 ` Willy Tarreau
2 siblings, 0 replies; 4+ messages in thread
From: Willy Tarreau @ 2025-04-05 20:57 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Shuah Khan, linux-kselftest, linux-kernel, Sebastian Andrzej Siewior
On Wed, Apr 02, 2025 at 11:38:58PM +0200, Thomas Weißschuh wrote:
> If no explicit XARCH is specified, use the toolchains default.
The series looks good to me, thank you Thomas. For the whole series:
Acked-by: Willy Tarreau <w@1wt.eu>
Willy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-05 20:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-02 21:38 [PATCH 0/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
2025-04-02 21:38 ` [PATCH 1/2] selftests/nolibc: drop dependency from sysroot to defconfig Thomas Weißschuh
2025-04-02 21:39 ` [PATCH 2/2] selftests/nolibc: only consider XARCH for CFLAGS when requested Thomas Weißschuh
2025-04-05 20:57 ` [PATCH 0/2] " Willy Tarreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®