Skip to content

Commit b225219

Browse files
tanzewilldeacon
authored andcommitted
kselftest/arm64: Set default OUTPUT path when undefined
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>
1 parent 864f3dd commit b225219

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/arm64/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ CFLAGS += $(KHDR_INCLUDES)
2121

2222
CFLAGS += -I$(top_srcdir)/tools/include
2323

24+
OUTPUT ?= $(CURDIR)
25+
2426
export CFLAGS
2527
export top_srcdir
2628

0 commit comments

Comments
 (0)