[Buildroot] [PATCH 02/16 v5] core/pkg-utils: add macro to hardlink-or-copy

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Mar 20 13:29:32 UTC 2016


Hello,

On Sun, 20 Mar 2016 00:11:43 +0100, Yann E. MORIN wrote:

> > define hardlink-or-copy
> > 	$(call hardlink-or-copy-inner,$(1),$(if $(3),$(2)/$(3),$(2)/$(basename $(1))))
> > endef
> 
> Well, that does not work. That's basically what I did in the previous
> iteration, but in some cases, $(3) could be a shell expansion and it is
> not empty at the time the macro is called, but ends up being empty after
> the shell expansion. See the discussion we had with Luca about this:
>     http://lists.busybox.net/pipermail/buildroot/2016-February/152634.html

Hum, I see. We wouldn't have this problem if we were to know, at the
infra level, the entire list of patches that get applied. But indeed,
if we need to use the file generated by apply-patches, using a pure
make function doesn't seem to work.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list