]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kselftest: add kselftest-clean rule
authorWang Long <long.wanglong@huawei.com>
Thu, 8 Oct 2015 02:41:18 +0000 (02:41 +0000)
committerMichal Marek <mmarek@suse.com>
Thu, 8 Oct 2015 12:20:38 +0000 (14:20 +0200)
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>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michal Marek <mmarek@suse.com>
Makefile

index 1a132ea43ca52588909bb054624177c8f8f63095..4dd3f5609daba00a48aef4c3ac724426dd382f25 100644 (file)
--- 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