[Buildroot] [PATCH] package/canfestival: don't build in parallel
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Aug 25 13:12:31 UTC 2015
Yann,
On Tue, 25 Aug 2015 13:55:50 +0200, Yann E. MORIN wrote:
> > Do you actually understand why make is displaying those warning
> > messages in the first place?
>
> Yes, and it's a bit tricky.
>
> canfestival indeed uses $(MAKE) everywhere. However, it is using it in a
> variable, like so:
>
> define build_cmds
> $(MAKE) foo
> $(MAKE) bar
> endef
>
> all:
> $(build_cmds)
>
> Since $(MAKE) is not directly in the rule body, it looses its magic
> behaviour. This is explicited said so in the make manual:
>
> This special feature is only enabled if the MAKE variable appears
> directly in the recipe: it does not apply if the MAKE variable is
> referenced through expansion of another variable.
>
> Ergo.
I have to say I really like working on Buildroot with smart people,
because I learn things every day. Thanks for pointing me to this part
of the documentation I overlooked! I will apply your patch.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list