diff options
author | Matt Madison <matt@madison.systems> | 2017-09-13 14:54:10 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-14 11:35:46 +0100 |
commit | 41c51dc28e881f8a12c62725a4d823db804a5cb1 (patch) | |
tree | 247fcae541237ec3afbf2a323442d34f622f0536 /meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch | |
parent | e6542356b461b510f913eecd3850c075764acc3a (diff) | |
download | poky-41c51dc28e881f8a12c62725a4d823db804a5cb1.tar.gz |
go: update to go 1.9
* Rebased patches
- dropped armhf-elf patch, should no longer be needed
- dropped syslog patch which should not have been imported to begin with
- reworked other patches as needed for the updated code base
* Updated native, cross, cross-canadian .inc files to
remove some testdata directories that contain .a files
that strip chokes on during sysroot staging
(From OE-Core rev: f2ccf56778433ec16f44eecaa10a610a6630df50)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch b/meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch new file mode 100644 index 0000000000..f0f564044b --- /dev/null +++ b/meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From aae74d1045ca03306ba4159206ee3bac72bcdfbb Mon Sep 17 00:00:00 2001 | ||
2 | From: Matt Madison <matt@madison.systems> | ||
3 | Date: Wed, 13 Sep 2017 08:23:23 -0700 | ||
4 | Subject: [PATCH 6/7] make.bash: add GOTOOLDIR_BOOTSTRAP environment variable | ||
5 | |||
6 | For cross-canadian builds, we need to use the native | ||
7 | GOTOOLDIR during the bootstrap phase, so provide a way | ||
8 | to pass that setting into the build script. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Matt Madison <matt@madison.systems> | ||
13 | --- | ||
14 | src/make.bash | 3 ++- | ||
15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/make.bash b/src/make.bash | ||
18 | index 9553623..2e6fb05 100755 | ||
19 | --- a/src/make.bash | ||
20 | +++ b/src/make.bash | ||
21 | @@ -172,10 +172,11 @@ if [ "$do_host_build" = "yes" ]; then | ||
22 | mv cmd/dist/dist "$GOTOOLDIR"/dist | ||
23 | echo | ||
24 | |||
25 | + GOTOOLDIR_BOOTSTRAP="${GOTOOLDIR_BOOTSTRAP:-$GOTOOLDIR}" | ||
26 | echo "##### Building packages and commands for host, $GOHOSTOS/$GOHOSTARCH." | ||
27 | # CC_FOR_TARGET is recorded as the default compiler for the go tool. When building for the host, however, | ||
28 | # use the host compiler, CC, from `cmd/dist/dist env` instead. | ||
29 | - CC=$CC GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \ | ||
30 | + CC=$CC GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH GOTOOLDIR="$GOTOOLDIR_BOOTSTRAP" \ | ||
31 | "$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std cmd | ||
32 | echo | ||
33 | fi | ||
34 | -- | ||
35 | 2.7.4 | ||
36 | |||