Skip to content

Commit

Permalink
selftests: net: move EXTRA_CLEAN of libynl.a into ynl.mk
Browse files Browse the repository at this point in the history
Commit 1fd9e4f ("selftests: make kselftest-clean remove libynl outputs")
added EXTRA_CLEAN of YNL generated files to ynl.mk. We already had
a EXTRA_CLEAN in the file including the snippet. Consolidate them.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20241011230311.2529760-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Oct 15, 2024
1 parent 0cb06dc commit 60b4d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion tools/testing/selftests/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ TEST_PROGS += vlan_hw_filter.sh
TEST_PROGS += bpf_offload.py

# YNL files, must be before "include ..lib.mk"
EXTRA_CLEAN += $(OUTPUT)/libynl.a
YNL_GEN_FILES := ncdevmem
TEST_GEN_FILES += $(YNL_GEN_FILES)

Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/net/ynl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ $(OUTPUT)/libynl.a: $(YNL_SPECS) $(OUTPUT)/.libynl-$(YNL_GENS_HASH).sig
EXTRA_CLEAN += \
$(top_srcdir)/tools/net/ynl/lib/__pycache__ \
$(top_srcdir)/tools/net/ynl/lib/*.[ado] \
$(OUTPUT)/.libynl-*.sig
$(OUTPUT)/.libynl-*.sig \
$(OUTPUT)/libynl.a

0 comments on commit 60b4d49

Please sign in to comment.