Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1241934

[PATCH v2] kselftest: add kselftest-clean rule

From Wang Long <long.wanglong@huawei.com>
Newsgroups linux.kernel
Subject [PATCH v2] kselftest: add kselftest-clean rule
Date 2015-10-08 04:50 +0200
Message-ID <qh9rj-7aQ-1@gated-at.bofh.it> (permalink)
References <qf9lM-5Mt-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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" kselftest-clean

can clean all kselftest 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 1d341eb..3edd7b3 100644
--- a/Makefile
+++ b/Makefile
@@ -1075,6 +1075,9 @@ PHONY += kselftest
 kselftest:
 	$(Q)$(MAKE) -C tools/testing/selftests run_tests
 
+kselftest-clean:
+	$(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  '  kselftest-clean - Remove all generated kselftest files'
 	@echo  ''
 	@echo  'Kernel packaging:'
 	@$(MAKE) $(build)=$(package-dir) help
-- 
1.8.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] kselftest: add kselftest-clean rule Wang Long <long.wanglong@huawei.com> - 2015-10-08 04:50 +0200
  Re: [PATCH v2] kselftest: add kselftest-clean rule Michael Ellerman <mpe@ellerman.id.au> - 2015-10-08 06:00 +0200
    Re: [PATCH v2] kselftest: add kselftest-clean rule Michal Marek <mmarek@suse.cz> - 2015-10-08 14:30 +0200
      Re: [PATCH v2] kselftest: add kselftest-clean rule Shuah Khan <shuahkh@osg.samsung.com> - 2015-10-08 15:30 +0200

csiph-web