Skip to content

Commit

Permalink
kselftest: add kselftest-clean rule
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Michael Ellerman <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
datawolf authored and Michal Marek committed Oct 8, 2015
1 parent 6ff33f3 commit dcb825a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dcb825a

Please sign in to comment.