Re: [PATCH] Documentation: kbuild: Add note about using (subst m,y)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 1, 2023 at 12:16 AM Alexander Lobakin
<aleksander.lobakin@xxxxxxxxx> wrote:
>
> From: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> Date: Tue, 28 Feb 2023 17:30:09 +0900
>
> > On Tue, Feb 28, 2023 at 12:13 PM David Gow <davidgow@xxxxxxxxxx> 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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux