diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-13 12:57:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:18 +0000 |
commit | 49c4fb941ebe8fca69402675d079149837104640 (patch) | |
tree | 57f63d14c13c6ef9f16a935009a4dc319bbaa48e /meta/recipes-devtools/go/go-native.inc | |
parent | c46c25dcfeb3509ead23cb297e7dc62e025ba8f4 (diff) | |
download | poky-49c4fb941ebe8fca69402675d079149837104640.tar.gz |
go: add native recipes for 1.8
(From OE-Core rev: 13a5c3dac4b5b0ccb4c5dfebf79b468acd8e1983)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-native.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-native.inc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc index 89bc63459d..c1ada5121a 100644 --- a/meta/recipes-devtools/go/go-native.inc +++ b/meta/recipes-devtools/go/go-native.inc | |||
@@ -1,8 +1,10 @@ | |||
1 | inherit native | 1 | inherit native |
2 | 2 | ||
3 | BOOTSTRAP ?= "" | ||
3 | export GOOS = "${BUILD_GOOS}" | 4 | export GOOS = "${BUILD_GOOS}" |
4 | export GOARCH = "${BUILD_GOARCH}" | 5 | export GOARCH = "${BUILD_GOARCH}" |
5 | export GOROOT_FINAL = "${STAGING_LIBDIR_NATIVE}/go" | 6 | export GOROOT_FINAL = "${STAGING_LIBDIR_NATIVE}/go${BOOTSTRAP}" |
7 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go1.4" | ||
6 | export CGO_ENABLED = "1" | 8 | export CGO_ENABLED = "1" |
7 | 9 | ||
8 | do_configure[noexec] = "1" | 10 | do_configure[noexec] = "1" |
@@ -31,18 +33,18 @@ END | |||
31 | } | 33 | } |
32 | 34 | ||
33 | do_install() { | 35 | do_install() { |
34 | install -d ${D}${libdir}/go | 36 | install -d ${D}${libdir}/go${BOOTSTRAP} |
35 | cp -a ${B}/pkg ${D}${libdir}/go/ | 37 | cp -a ${B}/pkg ${D}${libdir}/go${BOOTSTRAP}/ |
36 | install -d ${D}${libdir}/go/src | 38 | install -d ${D}${libdir}/go${BOOTSTRAP}/src |
37 | (cd ${S}/src; for d in *; do \ | 39 | (cd ${S}/src; for d in *; do \ |
38 | [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go/src/; \ | 40 | [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go${BOOTSTRAP}/src/; \ |
39 | done) | 41 | done) |
40 | 42 | ||
41 | install -d ${D}${bindir} ${D}${libdir}/go/bin | 43 | install -d ${D}${bindir} ${D}${libdir}/go${BOOTSTRAP}/bin |
42 | for f in ${B}/bin/* | 44 | for f in ${B}/bin/* |
43 | do | 45 | do |
44 | base=`basename $f` | 46 | base=`basename $f` |
45 | install -m755 $f ${D}${libdir}/go/bin | 47 | install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin |
46 | make_wrapper $base $base | 48 | make_wrapper $base $base |
47 | done | 49 | done |
48 | } | 50 | } |