From: Shuah Khan <skhan@linuxfoundation.org>
To: yamada.masahiro@socionext.com, michal.lkml@markovi.net
Cc: Shuah Khan <skhan@linuxfoundation.org>,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Makefile: add kselftest-build target
Date: Fri, 19 Apr 2019 17:24:04 -0600 [thread overview]
Message-ID: <20190419232404.9746-1-skhan@linuxfoundation.org> (raw)
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
reply other threads:[~2019-04-19 23:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190419232404.9746-1-skhan@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®