[Buildroot] pkg-golang: host package not supported
Arnout Vandecappelle
arnout at mind.be
Tue Aug 14 22:37:35 UTC 2018
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:
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...
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list