]> git.ipfire.org Git - thirdparty/linux.git/commit
kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 16 Sep 2025 16:51:35 +0000 (18:51 +0200)
committerWill Deacon <will@kernel.org>
Wed, 17 Sep 2025 15:32:02 +0000 (16:32 +0100)
commit5b7bdc4402b12bdad747cce305ecbc9737aed7ba
treed9e36bad6a70870c4c7d42467d9682178a02b2fc
parent14a41628c470f4aa069075cdcf6ec0138b6cf1da
kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS

basic-gcs has it's own make rule to handle the special compiler
invocation to build against nolibc. This rule does not respect the
$(CFLAGS) passed by the Makefile from the parent directory.
However these $(CFLAGS) set up the include path to include the UAPI
headers from the current kernel.
Due to this the asm/hwcap.h header is used from the toolchain instead of
the UAPI and the definition of HWCAP_GCS is not found.

Restructure the rule for basic-gcs to respect the $(CFLAGS).
Also drop those options which are already provided by $(CFLAGS).

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Closes: https://lore.kernel.org/lkml/CA+G9fYv77X+kKz2YT6xw7=9UrrotTbQ6fgNac7oohOg8BgGvtw@mail.gmail.com/
Fixes: a985fe638344 ("kselftest/arm64/gcs: Use nolibc's getauxval()")
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/gcs/Makefile