]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kselftest/arm64: Set default OUTPUT path when undefined
authortanze <tanze@kylinos.cn>
Thu, 15 May 2025 05:18:39 +0000 (13:18 +0800)
committerWill Deacon <will@kernel.org>
Fri, 16 May 2025 14:15:13 +0000 (15:15 +0100)
When running 'make' in tools/testing/selftests/arm64/ without explicitly
setting the OUTPUT variable, the build system will creates test
directories (e.g., /bti) in the root filesystem due to OUTPUT defaulting
to an empty string. This causes unintended pollution of the root directory.

This patch adds proper handling for the OUTPUT variable: Sets OUTPUT
to the current directory (.) if not specified

Signed-off-by: tanze <tanze@kylinos.cn>
Link: https://lore.kernel.org/r/20250515051839.3409658-1-tanze@kylinos.cn
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/Makefile

index 22029e60eff39648e5ed69d4d31c5fcc55f0fd30..c4c72ee2ef55bbe27bb7304e247974ba84c693a4 100644 (file)
@@ -21,6 +21,8 @@ CFLAGS += $(KHDR_INCLUDES)
 
 CFLAGS += -I$(top_srcdir)/tools/include
 
+OUTPUT ?= $(CURDIR)
+
 export CFLAGS
 export top_srcdir