Skip to content

go1.10 update and misc improvements

Matt Madison openembedded-core 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest13 patches 8 repliesIn review
  2. v413 patches 10 repliesSuperseded
  3. v313 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches10 repliesSuperseded
v18 patches1 replySuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13go: update go 1.9 -> go 1.10meta/classes/go.bbclass meta/recipes-devtools/go/go-1.10.inc meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch +27 more+1183 -1040 replies
2/13go: set GOMIPS envrionment variablemeta/classes/goarch.bbclass meta/recipes-devtools/go/go-cross-canadian.inc meta/recipes-devtools/go/go-cross.inc +2 more+16 -00 replies
3/13go.bbclass: rename GO_TMPDIR -> GOTMPDIRmeta/classes/go.bbclass+7 -60 replies
4/13go.bbclass: remove debug-related commandsmeta/classes/go.bbclass+0 -30 replies
5/13go.bbclass: don't stage test data with sourcesmeta/classes/go.bbclass+1 -10 replies
6/13go.bbclass: ptest cleanup and improvementsmeta/classes/go.bbclass+51 -367 replies
7/13goarch.bbclass: disable shared runtime for nativesdk buildsmeta/classes/goarch.bbclass+1 -00 replies
8/13go: move common settings to go-common.incmeta/recipes-devtools/go/go-common.inc meta/recipes-devtools/go/go-cross-canadian.inc meta/recipes-devtools/go/go-cross.inc +4 more+5 -230 replies
9/13go.bbclass, goarch.bbclass: update SECURITY_CFLAGSmeta/classes/go.bbclass meta/classes/goarch.bbclass+2 -30 replies
10/13go: disable PIE CFLAGS for nativesdk and cross-canadian buildsmeta/recipes-devtools/go/go-cross-canadian.inc meta/recipes-devtools/go/go-cross-canadian_1.9.bb meta/recipes-devtools/go/go-target.inc+6 -70 replies
11/13packagegroup-go-sdk-target: add go-runtime-staticdevmeta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb+1 -00 replies
12/13go-runtime: remove unneeded nativesdk override, rename variablemeta/recipes-devtools/go/go-runtime.inc+2 -40 replies
13/13tcmode-default.inc: add settings for gometa/conf/distro/include/tcmode-default.inc+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/13] go1.10 update and misc improvements

New in v5:
* Fixed build problem introduced in v3 when *not* using security flags
* Added in a backported go source patch fixing a an aarch64 issue (via Khem)
* Updated the recipe changes to keep the 1.9 recipes in place
* Added a GOVERSION setting to tcmode-default.inc to allow choosing 1.9 instead of 1.10
* Collapsed the '-v' removal patch, since it was really a fixup for an earlier patch in the series.

New in v4:
* updated the go source patch to protect GOROOT to defer generating an error
until a build action would try to update something in GOROOT
* updated go.bbclass to compile for both static and dynamic linking, similar to go-runtime
* fixed missing sign-off

New in v3:
* reduced one of the go source patches, eliminating an unneeded change (thanks Otavio)
* Added bbclass and recipe patches to
handle SECURITY_CFLAGS settings if
they're enabled
* Added go-runtime-staticdev to target-side SDK, needed for go static builds (fixes test case failure in oe-selftest)
* two more minor cleanups

New in v2:
* Fixed Upstream-Status line in go patches
* Added GOTMPDIR to do_configure[dirs]

Updates to the go recipes and bbclasses for go1.10, which moves the bulk of the toolchain bootstrap and build out of the 'make.bash' script and to the 'dist' tool. This required a rework of the patches to the go source.

go1.10 introduces significant changes to the go build tool as well, requiring some further patches to make it work for OE builds.

See https://golang.org/doc/go1.10 for a complete list of new features and changes.

Following the update are some cleanup/improvement patches.

Matt Madison (13):
go: update go 1.9 -> go 1.10
go: set GOMIPS envrionment variable
go.bbclass: rename GO_TMPDIR -> GOTMPDIR
go.bbclass: remove debug-related commands
go.bbclass: don't stage test data with sources go.bbclass: ptest cleanup and improvements goarch.bbclass: disable shared runtime for nativesdk builds
go: move common settings to go-common.inc
go.bbclass, goarch.bbclass: update SECURITY_CFLAGS
go: disable PIE CFLAGS for nativesdk and cross-canadian builds packagegroup-go-sdk-target: add go-runtime-staticdev
go-runtime: remove unneeded nativesdk override, rename variable tcmode-default.inc: add settings for go

 meta/classes/go.bbclass                            | 114 +++++----
 meta/classes/goarch.bbclass                        |  14 ++
 meta/conf/distro/include/tcmode-default.inc        |  10 +
 .../packagegroups/packagegroup-go-sdk-target.bb    |   1 +
 meta/recipes-devtools/go/go-1.10.inc               |  22 ++
 ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  33 +++
 ...-content-based-hash-generation-less-pedan.patch | 220 ++++++++++++++++
 ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +++++
 .../0004-ld-add-soname-to-shareable-objects.patch  |  47 ++++
 ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
 ...-cmd-dist-separate-host-and-target-builds.patch | 277 +++++++++++++++++++++
 ...07-cmd-go-make-GOROOT-precious-by-default.patch | 108 ++++++++
 ...l-obj-arm64-fix-branch-too-far-with-TBZ-l.patch |  58 +++++
 ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++++++++++
 meta/recipes-devtools/go/go-common.inc             |   6 +
 meta/recipes-devtools/go/go-cross-canadian.inc     |  26 +-
 meta/recipes-devtools/go/go-cross-canadian_1.10.bb |   2 +
 meta/recipes-devtools/go/go-cross-canadian_1.9.bb  |  10 +
 meta/recipes-devtools/go/go-cross.inc              |  56 ++---
 meta/recipes-devtools/go/go-cross_1.10.bb          |   2 +
 meta/recipes-devtools/go/go-cross_1.9.bb           |   8 +
 meta/recipes-devtools/go/go-crosssdk.inc           |  14 +-
 meta/recipes-devtools/go/go-crosssdk_1.10.bb       |   2 +
 meta/recipes-devtools/go/go-crosssdk_1.9.bb        |   9 +
 meta/recipes-devtools/go/go-native.inc             |  25 +-
 meta/recipes-devtools/go/go-native_1.10.bb         |   2 +
 meta/recipes-devtools/go/go-native_1.9.bb          |   2 +
 meta/recipes-devtools/go/go-runtime.inc            |  56 ++---
 meta/recipes-devtools/go/go-runtime_1.10.bb        |   2 +
 meta/recipes-devtools/go/go-runtime_1.9.bb         |  21 ++
 meta/recipes-devtools/go/go-target.inc             |  24 +-
 meta/recipes-devtools/go/go_1.10.bb                |   2 +
 meta/recipes-devtools/go/go_1.9.bb                 |  15 ++
 33 files changed, 1260 insertions(+), 162 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.10.inc
 create mode 100644 meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0006-cmd-dist-separate-host-and-target-builds.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0008-cmd-internal-obj-arm64-fix-branch-too-far-with-TBZ-l.patch
 create mode 100644 meta/recipes-devtools/go/go-1.10/0009-ld-replace-glibc-dynamic-linker-with-musl.patch
 create mode 100644 meta/recipes-devtools/go/go-cross-canadian_1.10.bb
 create mode 100644 meta/recipes-devtools/go/go-cross_1.10.bb
 create mode 100644 meta/recipes-devtools/go/go-crosssdk_1.10.bb
 create mode 100644 meta/recipes-devtools/go/go-native_1.10.bb
 create mode 100644 meta/recipes-devtools/go/go-runtime_1.10.bb
 create mode 100644 meta/recipes-devtools/go/go_1.10.bb
Signature · 1 line
2.14.1