Permalink
Newer
100755
84 lines (58 sloc)
1.92 KB
7
# SRCURL[0]="https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz"
8
# SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz"
9
10
SRCURL[0]="https://beehive.molgen.mpg.de/dbf727a4b0e365bf88d97cbfde590016/go1.4-bootstrap-20171003.tar.gz"
11
SRCURL[1]="https://beehive.molgen.mpg.de/48183a40d6522f1ea59b7d63377b7072/go1.16.3.src.tar.gz"
13
14
# PATCHURL+=()
15
16
# EXCLUDE+=()
17
18
build_in_sourcedir
19
20
sourcesubdir_append src
21
22
mee_extract() {
23
# extract bootstrap version of go-1.4 to arbitrary location
24
mkdir ${S}/bootstrap
25
bee_extract_do_tar "${1}" ${S}/bootstrap --strip-components 1
29
30
#mee_patch() {
31
# bee_patch "${@}"
32
#}
33
34
#mee_configure() {
35
# bee_configure
41
42
# https://github.com/golang/go/issues/16906 "cannot load DWARF output ..."
43
CGO_ENABLED=0 \
44
CFLAGS='-Wno-implicit-fallthrough -Wno-shift-negative-value' \
48
cd ${S}
49
50
export GOROOT_BOOTSTRAP=${S}/../bootstrap
51
export GOROOT_FINAL=${LIBDIR}/go
57
# The binaries expect /scratch/local/bee-root/go/go-1.10-0/source to be copied or moved to /usr/lib/go
68
cd ${S}
69
for i in *; do
70
if [ -d "${i}" ]; then
71
cp -rv ${i} ${D}${LIBDIR}/go/src
72
fi
76
mkdir -pv ${D}${LIBDIR}/go/pkg
77
cp -rv ${S}/../pkg/tool ${D}${LIBDIR}/go/pkg
78
cp -rv ${S}/../pkg/include ${D}${LIBDIR}/go/pkg
79
cp -rv ${S}/../pkg/linux_amd64 ${D}${LIBDIR}/go/pkg