summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/go/go-native.inc')
-rw-r--r--meta/recipes-devtools/go/go-native.inc26
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc
index 95db1c2b7c..35561768df 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -4,34 +4,34 @@ nonstaging_libdir := "${libdir}"
4 4
5inherit native 5inherit native
6 6
7SRC_URI_append = " http://golang.org/dl/go1.4.3.src.tar.gz;name=bootstrap;subdir=go1.4" 7SRC_URI_append = " https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4"
8SRC_URI[bootstrap.md5sum] = "dfb604511115dd402a77a553a5923a04" 8SRC_URI[bootstrap.md5sum] = "dbf727a4b0e365bf88d97cbfde590016"
9SRC_URI[bootstrap.sha256sum] = "9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959" 9SRC_URI[bootstrap.sha256sum] = "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52"
10 10
11export GOOS = "${BUILD_GOOS}" 11export GOOS = "${BUILD_GOOS}"
12export GOARCH = "${BUILD_GOARCH}" 12export GOARCH = "${BUILD_GOARCH}"
13export GOTMPDIR ?= "${WORKDIR}/go-tmp"
14GOTMPDIR[vardepvalue] = ""
13CC = "${@d.getVar('BUILD_CC').strip()}" 15CC = "${@d.getVar('BUILD_CC').strip()}"
14 16
15export CGO_ENABLED = "1" 17export CGO_ENABLED = "1"
18GOMAKEARGS ?= "--no-banner"
16 19
17do_configure() { 20do_configure() {
18 cd ${WORKDIR}/go1.4/go/src 21 cd ${WORKDIR}/go1.4/go/src
19 CGO_ENABLED=0 GOROOT=${WORKDIR}/go1.4/go ./make.bash 22 CGO_ENABLED=0 GOROOT=${WORKDIR}/go1.4/go ./make.bash
20} 23}
21 24
22do_compile() { 25do_compile() {
23 export GOBIN="${B}/bin"
24 export GOROOT_FINAL="${nonstaging_libdir}/go" 26 export GOROOT_FINAL="${nonstaging_libdir}/go"
25 export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go" 27 export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go"
26 rm -rf ${GOBIN}
27 mkdir ${GOBIN}
28
29 export TMPDIR=${WORKDIR}/build-tmp
30 mkdir -p ${WORKDIR}/build-tmp
31 28
32 cd src 29 cd src
33 ./make.bash --host-only 30 ./make.bash ${GOMAKEARGS}
31 cd ${B}
34} 32}
33do_compile[dirs] =+ "${GOTMPDIR} ${B}/bin"
34do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin"
35 35
36make_wrapper() { 36make_wrapper() {
37 rm -f ${D}${bindir}/$2$3 37 rm -f ${D}${bindir}/$2$3
@@ -51,7 +51,7 @@ do_install() {
51 (cd ${S}/src; for d in *; do \ 51 (cd ${S}/src; for d in *; do \
52 [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go/src/; \ 52 [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go/src/; \
53 done) 53 done)
54 rm -rf ${D}${libdir}/go/src/runtime/pprof/testdata 54 find ${D}${libdir}/go/src -depth -type d -name testdata -exec rm -rf {} \;
55 install -d ${D}${bindir} ${D}${libdir}/go/bin 55 install -d ${D}${bindir} ${D}${libdir}/go/bin
56 for f in ${B}/bin/* 56 for f in ${B}/bin/*
57 do 57 do