From: Nicolas Schier <nicolas@fjasle.eu>
To: Guillaume Tucker <guillaume.tucker@collabora.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>,
Michal Marek <michal.lkml@markovi.net>,
Nick Desaulniers <ndesaulniers@google.com>,
Shuah Khan <shuah@kernel.org>, Kees Cook <keescook@chromium.org>,
Anders Roxell <anders.roxell@linaro.org>,
Tim.Bird@sony.com, kernel@collabora.com,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v2 4/4] Makefile: add headers to kselftest targets
Date: Wed, 13 Jul 2022 11:09:06 +0200 [thread overview]
Message-ID: <Ys6LsqvQC+h3eM46@bergen.fjasle.eu> (raw)
In-Reply-To: <745d1921a4d048ea25d262e33b40aad5ee470614.1657614127.git.guillaume.tucker@collabora.com>
On Tue, 12 Jul 2022 09:29 +0100 Guillaume Tucker wrote:
> Add headers as a dependency to kselftest targets so that they can be
> run directly from the top of the tree. The kselftest Makefile used to
> try to call headers_install "backwards" but failed due to the relative
> path not being consistent.
>
> Now we can either run this directly:
>
> $ make O=build kselftest-all
>
> or this:
>
> $ make O=build headers
> $ make O=build -C tools/testing/selftests all
>
> The same commands work as well when building directly in the source
> tree (no O=) or any arbitrary path (relative or absolute).
>
> Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
> ---
You might want to add the 'Reported-by: as you did in
https://lore.kernel.org/linux-kbuild/a7af58feaa6ae6d3b0c8c55972a470cec62341e5.1657693952.git.guillaume.tucker@collabora.com/
?
Tested-by: Nicolas Schier <nicolas@fjasle.eu>
>
> Notes:
> v2: replace headers_install with headers
>
> Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 1a6678d817bd..02502cc4ced5 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1347,10 +1347,10 @@ tools/%: FORCE
> # Kernel selftest
>
> PHONY += kselftest
> -kselftest:
> +kselftest: headers
> $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
>
> -kselftest-%: FORCE
> +kselftest-%: headers FORCE
> $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
>
> PHONY += kselftest-merge
> --
> 2.30.2
--
epost|xmpp: nicolas@fjasle.eu irc://oftc.net/nsc
↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f
-- frykten for herren er opphav til kunnskap --
next prev parent reply other threads:[~2022-07-13 9:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-12 8:29 [PATCH v2 0/4] Fix kselftest build with sub-directory Guillaume Tucker
2022-07-12 8:29 ` [PATCH v2 1/4] selftests: drop khdr make target Guillaume Tucker
2022-07-12 8:29 ` [PATCH v2 2/4] selftests: stop using KSFT_KHDR_INSTALL Guillaume Tucker
2022-07-12 8:29 ` [PATCH v2 3/4] selftests: drop KSFT_KHDR_INSTALL make target Guillaume Tucker
2022-07-12 9:59 ` Anders Roxell
2022-07-12 14:57 ` Guillaume Tucker
2022-07-12 8:29 ` [PATCH v2 4/4] Makefile: add headers to kselftest targets Guillaume Tucker
2022-07-13 9:09 ` Nicolas Schier [this message]
2022-07-13 13:04 ` Guillaume Tucker
2022-07-13 2:27 ` [PATCH v2 0/4] Fix kselftest build with sub-directory Shuah Khan
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=Ys6LsqvQC+h3eM46@bergen.fjasle.eu \
--to=nicolas@fjasle.eu \
--cc=Tim.Bird@sony.com \
--cc=anders.roxell@linaro.org \
--cc=guillaume.tucker@collabora.com \
--cc=keescook@chromium.org \
--cc=kernel@collabora.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=michal.lkml@markovi.net \
--cc=ndesaulniers@google.com \
--cc=shuah@kernel.org \
/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®