diff options
author | Geoff Levand <geoff@infradead.org> | 2016-05-26 18:21:32 +0000 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-05-26 21:04:24 +0200 |
commit | 86b0f0e68553eb5019f23ebfd4ac29c13149c882 (patch) | |
tree | 03f68b227d4fb476bc62562885dc58a5c7befc48 /package/go | |
parent | 60c5c96ae109dcea48e0997b5e6e6645ac9b8629 (diff) | |
download | buildroot-86b0f0e68553eb5019f23ebfd4ac29c13149c882.tar.gz buildroot-86b0f0e68553eb5019f23ebfd4ac29c13149c882.zip |
package/go: Add HOST_GO_TARGET_ENV
For the convenience of package makefiles define the new
make variables HOST_GO_TOOLDIR and HOST_GO_TARGET_ENV.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/go')
-rw-r--r-- | package/go/go.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/go/go.mk b/package/go/go.mk index 7ac2540b91..090c5e4f1c 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -35,6 +35,15 @@ endif HOST_GO_DEPENDENCIES = host-go-bootstrap HOST_GO_ROOT = $(HOST_DIR)/usr/lib/go +# For the convienience of target packages. +HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH) +HOST_GO_TARGET_ENV = \ + GOARCH=$(GO_GOARCH) \ + GOROOT="$(HOST_GO_ROOT)" \ + CC=$(TARGET_CC) \ + CXX=$(TARGET_CXX) \ + GOTOOLDIR="$(HOST_GO_TOOLDIR)" + # The go build system doesn't have the notion of cross compiling, but just the # notion of architecture. When the host and target architectures are different # it expects to be given a target cross compiler in CC_FOR_TARGET. When the |