[Buildroot] pkg-golang: host package not supported
Mirza Krak
mirza.krak at northern.tech
Tue Aug 14 22:43:13 UTC 2018
On Wed, Aug 15, 2018 at 12:37 AM, Arnout Vandecappelle <arnout at mind.be> wrote:
>
>
> On 15-08-18 00:05, Mirza Krak wrote:
>> I did have one problem with $(2)_SRC_SUBDIR, it turns out to be empty
>> when building host target. Workaround was to explicitly set this in
>> the .mk file with the HOST_ prefix. Any hints on why? Need some ifeq
>> ($(4),target) ... else ... endif magic? :)
>
> I guess you expect _SRC_SUBDIR to be inherited from the target package, so you
> need something like this in the golang infra:
For this specific package I am not defining a "target" package, host
only. Do not know if that affects the outcome.
>
> ifndef $(2)_SRC_SUBDIR
> ifdef $(3)_SRC_SUBDIR
> $(2)_SRC_SUBDIR = $$($(3)_SRC_SUBDIR)
> else
> $(2)_SRC_SUBDIR ?=
> $$($(2)_SRC_DOMAIN)/$$($(2)_SRC_VENDOR)/$$($(2)_SRC_SOFTWARE) endif
> endif
>
> And similar for SRC_DOMAIN, SRC_VENDOR, SRC_SOFTWARE...
To fresh on Buildroot to comment on above :).
--
Mirza Krak | Embedded Solutions Architect | https://mender.io
Northern.tech AS | @northerntechHQ
More information about the buildroot
mailing list