summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-1.9
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2017-09-14 16:22:29 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-21 09:05:50 +0100
commit6590c03808c0c6728c6fa914c6bfecf72de1e95a (patch)
tree88a0bb0b63ae0be409fe76eaa7ce3dacdc57788f /meta/recipes-devtools/go/go-1.9
parent975246ffe6e053820c6929454c3d73fb329c54a1 (diff)
downloadpoky-6590c03808c0c6728c6fa914c6bfecf72de1e95a.tar.gz
go: fixes for cross-canadian builds
* Add patch for go's make script to allow for build system != host system * Add dependencies on the appropriate crosssdk recipes, and use the crosssdk C compiler and linker * Remove bashism in the wrapper script * Restrict installation to only the tool binaries to address some packaging errors (From OE-Core rev: e2171f14a2dbf630a926a6792f6e6355f80e18b1) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-1.9')
-rw-r--r--meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch b/meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch
new file mode 100644
index 0000000000..0977c78350
--- /dev/null
+++ b/meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch
@@ -0,0 +1,33 @@
1From 03e6c339d4fb712fbb8c4ca6ef2fc7100dcdb3d7 Mon Sep 17 00:00:00 2001
2From: Matt Madison <matt@madison.systems>
3Date: Thu, 14 Sep 2017 05:38:10 -0700
4Subject: [PATCH 8/8] make.bash: add GOHOSTxx indirection for cross-canadian
5 builds
6
7Add environment variables for specifying the host OS/arch
8that we are building the compiler for, so it can differ from
9the build host OS/arch.
10
11Upstream-Status: Pending
12
13Signed-off-by: Matt Madison <matt@madison.systems>
14---
15 src/make.bash | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/src/make.bash b/src/make.bash
19index 2e6fb05..0bdadc6 100755
20--- a/src/make.bash
21+++ b/src/make.bash
22@@ -173,6 +173,8 @@ if [ "$do_host_build" = "yes" ]; then
23 echo
24
25 GOTOOLDIR_BOOTSTRAP="${GOTOOLDIR_BOOTSTRAP:-$GOTOOLDIR}"
26+ GOHOSTOS="${GOHOSTOS_CROSS:-$GOHOSTOS}"
27+ GOHOSTARCH="${GOHOSTARCH_CROSS:-$GOHOSTARCH}"
28 echo "##### Building packages and commands for host, $GOHOSTOS/$GOHOSTARCH."
29 # CC_FOR_TARGET is recorded as the default compiler for the go tool. When building for the host, however,
30 # use the host compiler, CC, from `cmd/dist/dist env` instead.
31--
322.7.4
33