mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
selftests/bpf: Avoid rebuilds when running emit_tests
emit_tests is used while installing selftests to generate the kselftest list. Pulling in .d files for this goal can trigger BPF rebuild rules and mix build output into list generation. Skip dependency file inclusion for emit_tests, like clean goals, so list generation stays side-effect free. Also add emit_tests to NON_CHECK_FEAT_TARGETS so that feature detection is skipped; without this, Makefile.feature's $(info) output leaks into stdout and corrupts the test list captured by the top-level selftests Makefile. Signed-off-by: Ricardo B. Marlière <rbm@suse.com> Link: https://lore.kernel.org/r/20260602-selftests-bpf_misconfig-v12-4-27f898b3ba26@suse.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
c476bdf276
commit
a97bfc9aae
|
|
@ -170,7 +170,7 @@ endef
|
|||
|
||||
include ../lib.mk
|
||||
|
||||
NON_CHECK_FEAT_TARGETS := clean docs-clean
|
||||
NON_CHECK_FEAT_TARGETS := clean docs-clean emit_tests
|
||||
CHECK_FEAT := $(filter-out $(NON_CHECK_FEAT_TARGETS),$(or $(MAKECMDGOALS), "none"))
|
||||
ifneq ($(CHECK_FEAT),)
|
||||
FEATURE_USER := .selftests
|
||||
|
|
@ -732,7 +732,7 @@ $(TRUNNER_TEST_OBJS:.o=.d): $(TRUNNER_OUTPUT)/%.test.d: \
|
|||
$(TRUNNER_BPF_SKELS_LINKED) \
|
||||
$$(BPFOBJ) | $(TRUNNER_OUTPUT)
|
||||
|
||||
ifeq ($(filter clean docs-clean,$(MAKECMDGOALS)),)
|
||||
ifeq ($(filter clean docs-clean emit_tests,$(MAKECMDGOALS)),)
|
||||
include $(wildcard $(TRUNNER_TEST_OBJS:.o=.d))
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user