Skip to content

Commit 1fd9e4f

Browse files
gthelenkuba-moo
authored andcommitted
selftests: make kselftest-clean remove libynl outputs
Starting with 6.12 commit 85585b4 ("selftests: add ncdevmem, netcat for devmem TCP") kselftest-all creates additional outputs that kselftest-clean does not cleanup: $ make defconfig $ make kselftest-all $ make kselftest-clean $ git clean -ndxf | grep tools/net Would remove tools/net/ynl/lib/__pycache__/ Would remove tools/net/ynl/lib/ynl.a Would remove tools/net/ynl/lib/ynl.d Would remove tools/net/ynl/lib/ynl.o Make kselftest-clean remove the newly added net/ynl outputs. Fixes: 85585b4 ("selftests: add ncdevmem, netcat for devmem TCP") Signed-off-by: Greg Thelen <gthelen@google.com> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://patch.msgid.link/20241005215600.852260-1-gthelen@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent c0a3093 commit 1fd9e4f

File tree

1 file changed

+4
-0
lines changed
  • tools/testing/selftests/net

1 file changed

+4
-0
lines changed

tools/testing/selftests/net/ynl.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ $(YNL_OUTPUTS): CFLAGS += \
1919
$(OUTPUT)/libynl.a:
2020
$(Q)$(MAKE) -C $(top_srcdir)/tools/net/ynl GENS="$(YNL_GENS)" libynl.a
2121
$(Q)cp $(top_srcdir)/tools/net/ynl/libynl.a $(OUTPUT)/libynl.a
22+
23+
EXTRA_CLEAN += \
24+
$(top_srcdir)/tools/net/ynl/lib/__pycache__ \
25+
$(top_srcdir)/tools/net/ynl/lib/*.[ado]

0 commit comments

Comments
 (0)