linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kselftest: add cleankselftest rule
@ 2015-09-23  9:33 Wang Long
  2015-09-30 13:36 ` Shuah Khan
  2015-10-01  1:17 ` Michael Ellerman
  0 siblings, 2 replies; 9+ messages in thread
From: Wang Long @ 2015-09-23  9:33 UTC (permalink / raw)
  To: shuahkh, mmarek
  Cc: long.wanglong, linux-kbuild, linux-kernel, wanglong, peifeiyue

We use

    $make TARGETS="size timers" kselftest

to build and run selftests. but there is no rule
for us to clean the kselftest generated files.

This patch add the rules, for example:

	$ make TARGETS="size timers" cleankselftest

can clean all kselftst generated files.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 84f4b31..c25d139 100644
--- a/Makefile
+++ b/Makefile
@@ -1075,6 +1075,9 @@ PHONY += kselftest
 kselftest:
 	$(Q)$(MAKE) -C tools/testing/selftests run_tests
 
+cleankselftest:
+	$(Q)$(MAKE) -C tools/testing/selftests clean
+
 # ---------------------------------------------------------------------------
 # Modules
 
@@ -1282,6 +1285,7 @@ help:
 	@echo  '  kselftest       - Build and run kernel selftest (run as root)'
 	@echo  '                    Build, install, and boot kernel before'
 	@echo  '                    running kselftest on it'
+	@echo  '  cleankselftest  - Remove all generated kselftest files'
 	@echo  ''
 	@echo  'Kernel packaging:'
 	@$(MAKE) $(build)=$(package-dir) help
-- 
1.8.3.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-08 13:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23  9:33 [PATCH] kselftest: add cleankselftest rule Wang Long
2015-09-30 13:36 ` Shuah Khan
2015-10-01  1:17 ` Michael Ellerman
2015-10-02 14:18   ` Shuah Khan
2015-10-08  2:37     ` long.wanglong
2015-10-08  2:41     ` [PATCH v2] kselftest: add kselftest-clean rule Wang Long
2015-10-08  3:52       ` Michael Ellerman
2015-10-08 12:21         ` Michal Marek
2015-10-08 13:26           ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).