[Buildroot] [PATCH] package/android-tools: host-android-tools need pkg-conf

Giulio Benetti giulio.benetti at micronovasrl.com
Thu Apr 11 06:46:52 UTC 2019


Hello Thomas,

Il 11/04/2019 08:25, Thomas Petazzoni ha scritto:
> On Thu, 11 Apr 2019 08:22:18 +0200
> Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
> 
>> We don't typically re-use the target dependencies variable for the host
>> dependencies. So I changed this to = host-pkgconf and applied.
> 
> An illustration of why re-using $(ANDROID_TOOLS_DEPENDENCIES) doesn't
> do what you think it does:
> 
> $ cat foo.mk
> FOO_DEPENDENCIES = host-pkgconf
> HOST_FOO_DEPENDENCIES = $(FOO_DEPENDENCIES)
> 
> FOO_DEPENDENCIES += zlib
> HOST_FOO_DEPENDENCIES += host-zlib
> 
> all:
> 	@echo $(FOO_DEPENDENCIES)
> 	@echo $(HOST_FOO_DEPENDENCIES)
> $ make -f foo.mk
> host-pkgconf zlib
> host-pkgconf zlib host-zlib
> 
> See how HOST_FOO_DEPENDENCIES contains "zlib" ?
> 
> = assignments are evaluated at the time of use, not at the time of
> assignment (contrary to := assignments).

Aah, this is why, '=' vs ':='.
Thank you for the explanation.

-- 
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642


More information about the buildroot mailing list