Bug 12152 - Add automated test for Go toolchain support
Summary: Add automated test for Go toolchain support
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4.1
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-10-02 18:38 UTC by Otavio Salvador
Modified: 2017-12-01 14:48 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Otavio Salvador 2017-10-02 18:38:06 UTC
The Go toolchain can be tested using following steps:

git clone https://github.com/golang/dep go/src/github.com/golang/dep
. /opt/oel/17.1-snapshot/environment-setup-i586-oel-linux
export GOPATH=$PWD/go
cd go/src/github.com/golang/dep
i586-oel-linux-go build github.com/golang/dep/cmd/dep
Comment 1 Joshua Lock 2017-10-02 20:33:15 UTC
Any hints on how to include a go toolchain in your generated SDK?

Is the following conf snippet sufficient?

TOOLCHAIN_HOST_TASK_append = " packagegroup-go-cross-canadian-${MACHINE}"
Comment 2 Otavio Salvador 2017-10-02 20:52:26 UTC
I added a meta-go-toolchain recipe which has it all.
Comment 3 Joshua Lock 2017-10-04 11:20:09 UTC
As a learning exercise I implemented a selftest for meta-go-toolchain and an SDK test for an SDK built with Go. I'm not sure both are useful, certainly as the default SDK's don't include Go, so will likely only submit a patch for the former.
Comment 4 Joshua Lock 2017-10-04 16:24:35 UTC
Patch submitted:
https://patchwork.openembedded.org/patch/144674/