Commit b225219a authored by tanze's avatar tanze Committed by Will Deacon
Browse files

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: default avatartanze <tanze@kylinos.cn>
Link: https://lore.kernel.org/r/20250515051839.3409658-1-tanze@kylinos.cn


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 864f3ddc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ CFLAGS += $(KHDR_INCLUDES)

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

OUTPUT ?= $(CURDIR)

export CFLAGS
export top_srcdir