Re: [PATCH 1/2] kbuild: factor out genksyms command from cmd_gensymtypes_{c,S}

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

 



On Tue, Apr 5, 2022 at 10:55 AM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> On Wed, Mar 30, 2022 at 3:18 AM Nick Desaulniers
> <ndesaulniers@xxxxxxxxxx> wrote:
> >
> > On Mon, Mar 28, 2022 at 7:15 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
> > >
> > > The genksyms command part in cmd_gensymtypes_{c,S} is duplicated.
> > > Factor it out into the 'genksyms' macro.
> > >
> > > For the readability, I slightly refactor the arguments to genksyms.
> >
> > Looks nicer, thanks for the patch!
> > Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
> >
> > >
>
> Applied to linux-kbuild.

No, this patch is wrong.
I will send v2 later.

>
>
> > > Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> > > ---
> > >
> > >  scripts/Makefile.build | 19 ++++++++-----------
> > >  1 file changed, 8 insertions(+), 11 deletions(-)
> > >
> > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build
> > > index 9717e6f6fb31..3f2985df4d60 100644
> > > --- a/scripts/Makefile.build
> > > +++ b/scripts/Makefile.build
> > > @@ -125,13 +125,14 @@ cmd_cpp_i_c       = $(CPP) $(c_flags) -o $@ $<
> > >  $(obj)/%.i: $(src)/%.c FORCE
> > >         $(call if_changed_dep,cpp_i_c)
> > >
> > > +genksyms = scripts/genksyms/genksyms           \
> > > +       $(if $(1), -T $(2))                     \
> > > +       $(if $(CONFIG_MODULE_REL_CRCS), -R)     \
> > > +       $(if $(KBUILD_PRESERVE), -p)            \
> > > +       -r $(or $(wildcard $(2:.symtypes=.symref), /dev/null))

The position of the closing parenthesis was wrong.

    -r $(or $(wildcard $(2:.symtypes=.symref)), /dev/null)







-- 
Best Regards
Masahiro Yamada



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux