linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Makefile: add kselftest-build target
@ 2019-04-19 23:24 Shuah Khan
  0 siblings, 0 replies; only message in thread
From: Shuah Khan @ 2019-04-19 23:24 UTC (permalink / raw)
  To: yamada.masahiro, michal.lkml; +Cc: Shuah Khan, linux-kbuild, linux-kernel

One of the use-cases is building kselftest and then installing.
Adding a target to just build the tests from the main Makefile
will help users and makes it easier.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 15c8251d4d5e..38a2ce3c343f 100644
--- a/Makefile
+++ b/Makefile
@@ -1195,6 +1195,9 @@ endif
 # ---------------------------------------------------------------------------
 # Kernel selftest
 
+PHONY += kselftest-build
+kselftest-build:
+	$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests all
 PHONY += kselftest
 kselftest:
 	$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-19 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19 23:24 [PATCH] Makefile: add kselftest-build target 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).