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:39:04 +0000 |
commit | 13a5c3dac4b5b0ccb4c5dfebf79b468acd8e1983 (patch) | |
tree | 06805ef869a068c7f33cf25108170470cbe4a8c1 /meta/recipes-devtools/go/go-native.inc | |
parent | 1bab5be8133f62cdae251e66db6f472c3c37297c (diff) | |
download | openembedded-core-contrib-13a5c3dac4b5b0ccb4c5dfebf79b468acd8e1983.tar.gz |
go: add native recipes for 1.8
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 @@ inherit native +BOOTSTRAP ?= "" export GOOS = "${BUILD_GOOS}" export GOARCH = "${BUILD_GOARCH}" -export GOROOT_FINAL = "${STAGING_LIBDIR_NATIVE}/go" +export GOROOT_FINAL = "${STAGING_LIBDIR_NATIVE}/go${BOOTSTRAP}" +export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go1.4" export CGO_ENABLED = "1" do_configure[noexec] = "1" @@ -31,18 +33,18 @@ END } do_install() { - install -d ${D}${libdir}/go - cp -a ${B}/pkg ${D}${libdir}/go/ - install -d ${D}${libdir}/go/src + install -d ${D}${libdir}/go${BOOTSTRAP} + cp -a ${B}/pkg ${D}${libdir}/go${BOOTSTRAP}/ + install -d ${D}${libdir}/go${BOOTSTRAP}/src (cd ${S}/src; for d in *; do \ - [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go/src/; \ + [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go${BOOTSTRAP}/src/; \ done) - install -d ${D}${bindir} ${D}${libdir}/go/bin + install -d ${D}${bindir} ${D}${libdir}/go${BOOTSTRAP}/bin for f in ${B}/bin/* do base=`basename $f` - install -m755 $f ${D}${libdir}/go/bin + install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin make_wrapper $base $base done } |