[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aR4mdI3u51z4qhoN@derry.ads.avm.de>
Date: Wed, 19 Nov 2025 21:20:04 +0100
From: Nicolas Schier <nsc@...nel.org>
To: Simon Glass <sjg@...omium.org>
Cc: linux-arm-kernel@...ts.infradead.org,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>,
Masahiro Yamada <masahiroy@...nel.org>,
Tom Rini <trini@...sulko.com>,
Ahmad Fatoum <a.fatoum@...gutronix.de>,
J . Neuschäfer <j.ne@...teo.net>,
Chen-Yu Tsai <wenst@...omium.org>, Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Miguel Ojeda <ojeda@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Tamir Duberstein <tamird@...il.com>, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH v6 5/8] kbuild: Split out module targets into a variable
On Wed, Nov 19, 2025 at 11:13:26AM -0700, Simon Glass wrote:
> Add a modules-targets variable to list the targets which cause modules
> to be built, since we want to add a conditional target.
>
> Signed-off-by: Simon Glass <sjg@...omium.org>
> ---
>
> (no changes since v5)
>
> Changes in v5:
> - Add a new patch to split out module targets into a variable
>
> Makefile | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 638bc09a546a..8cd46222fc48 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -772,7 +772,12 @@ endif
> # in addition to whatever we do anyway.
> # Just "make" or "make all" shall build modules as well
>
> -ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
> +modules-targets := all
> +modules-targets += modules
> +modules-targets += nsdeps
> +modules-targets += compile_commands.json
> +modules-targets += clang-%
> +ifneq ($(filter $(modules-targets),$(MAKECMDGOALS)),)
> KBUILD_MODULES := y
> endif
>
> --
> 2.43.0
>
Reviewed-by: Nicolas Schier <nsc@...nel.org>
Powered by blists - more mailing lists