selftests/bpf: remove generated verifier/tests.h on 'make clean'
Subsystems (5)
PATCH 1/1 selftests/bpf: remove generated verifier/tests.h on 'make clean'
'make clean' is supposed to remove generated files.
Signed-off-by Stanislav Fomichev <[email protected]>
--- tools/testing/selftests/bpf/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tools/testing/selftests/bpf/Makefile +5 -3
@@ -216,7 +216,8 @@ ifeq ($(DWARF2BTF),y) $(BTF_PAHOLE) -J $@ endif -$(OUTPUT)/test_verifier: $(OUTPUT)/verifier/tests.h +VERIFIER_TESTS_H := $(OUTPUT)/verifier/tests.h +$(OUTPUT)/test_verifier: $(VERIFIER_TESTS_H) $(OUTPUT)/test_verifier: CFLAGS += -I$(OUTPUT) VERIFIER_TEST_FILES := $(wildcard verifier/*.c)
@@ -227,6 +228,7 @@ $(OUTPUT)/verifier/tests.h: $(VERIFIER_TEST_FILES) ls *.c 2> /dev/null | \ sed -e 's@\(.*\)@#include \"\1\"@'; \ echo '#endif' \ - ) > $(OUTPUT)/verifier/tests.h) + ) > $(VERIFIER_TESTS_H)) -EXTRA_CLEAN := $(TEST_CUSTOM_PROGS) $(ALU32_BUILD_DIR) +EXTRA_CLEAN := $(TEST_CUSTOM_PROGS) $(ALU32_BUILD_DIR) \ + $(VERIFIER_TESTS_H)
Signature · 1 line
2.20.1.611.gfbb209baf1-goog
Quoted 3 lines · Stanislav Fomichev
'make clean' is supposed to remove generated files.
Signed-off-by Stanislav Fomichev <[email protected]>
Acked-by Jakub Kicinski <[email protected]>
Ah, thanks!
Alexei Starovoitov
AppliedQuoted 6 lines · Jakub Kicinski
Quoted 3 lines · Stanislav Fomichev
'make clean' is supposed to remove generated files.
Signed-off-by Stanislav Fomichev <[email protected]>Acked-by Jakub Kicinski <[email protected]>
Applied, Thanks
Quoted 4 lines · Stanislav Fomichev
'make clean' is supposed to remove generated files.
Signed-off-by Stanislav Fomichev <[email protected]>
Acked-by Yonghong Song <[email protected]>
Quoted 4 lines
--- tools/testing/selftests/bpf/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)