mirror of
https://git.yoctoproject.org/poky
synced 2026-03-31 11:02:21 +02:00
* Patches and recipes reworked for go 1.10's significant changes to its bootstrap and build steps. * Update go1.4 source tarball used for go-native bootstrapping to the version recommended in the current go documentation * Remove test data from installed sources to eliminate some packaging QA warnings * Set GOCACHE to 'off' to disable 1.10's build caching in the go recipes and bbclass * Update go_do_compile to compile both static and dynamic objects dynamic linking is in use, since go1.10's build tool is pickier about this (From OE-Core rev: 4fd749ca6450a4870be1c1e13802f084b6eb0db6) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
24 lines
579 B
BlitzBasic
24 lines
579 B
BlitzBasic
require go-${PV}.inc
|
|
require go-runtime.inc
|
|
|
|
export GO_TARGET_INSTALL = "std"
|
|
export CC_FOR_TARGET = "${CC}"
|
|
export CXX_FOR_TARGET = "${CXX}"
|
|
|
|
do_compile() {
|
|
export GOBIN="${B}/bin"
|
|
export TMPDIR="$GOTMPDIR"
|
|
export CC=$BUILD_CC
|
|
|
|
cd src
|
|
./make.bash --host-only
|
|
cp ${B}/pkg/tool/${BUILD_GOTUPLE}/go_bootstrap ${B}
|
|
rm -rf ${B}/pkg/${TARGET_GOTUPLE}
|
|
./make.bash --target-only
|
|
if [ -n "${GO_DYNLINK}" ]; then
|
|
cp ${B}/go_bootstrap ${B}/pkg/tool/${BUILD_GOTUPLE}
|
|
GO_FLAGS="-buildmode=shared" GO_LDFLAGS="-extldflags \"${LDFLAGS}\"" ./make.bash --target-only
|
|
fi
|
|
cd ${B}
|
|
}
|