[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNASZwwHsbsEEHhqsLKg44ZUoGDWMqhteazuOrSx23uf1XQ@mail.gmail.com>
Date: Wed, 1 Mar 2023 01:25:53 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Alexander Lobakin <aleksander.lobakin@...el.com>
Cc: David Gow <davidgow@...gle.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Nicolas Schier <nicolas@...sle.eu>,
Jonathan Corbet <corbet@....net>,
Sadiya Kazi <sadiyakazi@...gle.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Brendan Higgins <brendanhiggins@...gle.com>,
linux-kbuild@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Documentation: kbuild: Add note about using (subst m,y)
On Wed, Mar 1, 2023 at 12:16 AM Alexander Lobakin
<aleksander.lobakin@...el.com> wrote:
>
> From: Masahiro Yamada <masahiroy@...nel.org>
> Date: Tue, 28 Feb 2023 17:30:09 +0900
>
> > On Tue, Feb 28, 2023 at 12:13 PM David Gow <davidgow@...gle.com> wrote:
>
> [...]
>
> >> +Example::
> >> +
> >> + #drivers/Makefile
> >> + obj-$(subst m,y,$(CONFIG_HYPERV)) += hv/
> >> +
> >
> >
> > I think many subsystems simply do
> >
> > obj-y += hv/
>
> This creates a ton of empty built-in.a, each of them is listed in the
> Kbuild output. Someone may think that if a directory contains
> built-in.a, then something was built there. Sure it's their problems,
> but I'd prefer to not pollute the log and built-in.a contents when
> possible (empty files are still listed there IIRC).
You can choose whichever you like.
Up to each subsystem maintainer.
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists