diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/go/go-crosssdk.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-devtools/go/go-crosssdk.inc b/meta/recipes-devtools/go/go-crosssdk.inc index e9bc677131..471c75b3d5 100644 --- a/meta/recipes-devtools/go/go-crosssdk.inc +++ b/meta/recipes-devtools/go/go-crosssdk.inc | |||
@@ -11,8 +11,9 @@ export GOARCH = "${TARGET_GOARCH}" | |||
11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
12 | export GOROOT_FINAL = "${libdir}/go" | 12 | export GOROOT_FINAL = "${libdir}/go" |
13 | export CGO_ENABLED = "1" | 13 | export CGO_ENABLED = "1" |
14 | export CC_FOR_TARGET="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}" | 14 | export CC_FOR_TARGET="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" |
15 | export CXX_FOR_TARGET="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}" | 15 | export CXX_FOR_TARGET="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" |
16 | export GO_INSTALL = "cmd" | ||
16 | CC = "${@d.getVar('BUILD_CC', True).strip()}" | 17 | CC = "${@d.getVar('BUILD_CC', True).strip()}" |
17 | 18 | ||
18 | do_configure[noexec] = "1" | 19 | do_configure[noexec] = "1" |
@@ -43,13 +44,11 @@ do_install() { | |||
43 | install -d ${D}${libdir}/go/bin | 44 | install -d ${D}${libdir}/go/bin |
44 | install -d ${D}${libdir}/go/pkg/tool | 45 | install -d ${D}${libdir}/go/pkg/tool |
45 | install -d ${D}${bindir} | 46 | install -d ${D}${bindir} |
46 | cp --preserve=mode,timestamps -R ${S}/pkg/tool/${TARGET_GOTUPLE} ${D}${libdir}/go/pkg/tool/ | 47 | cp --preserve=mode,timestamps -R ${S}/pkg/tool/${BUILD_GOTUPLE} ${D}${libdir}/go/pkg/tool/ |
47 | for f in ${B}/${GO_BUILD_BINDIR}/* | 48 | for f in ${B}/bin/* |
48 | do | 49 | do |
49 | base=`basename $f` | 50 | base=`basename $f` |
50 | install -m755 $f ${D}${libdir}/go/bin | 51 | install -m755 $f ${D}${libdir}/go/bin |
51 | make_wrapper $base ${TARGET_PREFIX}$base | 52 | make_wrapper $base ${TARGET_PREFIX}$base |
52 | done | 53 | done |
53 | } | 54 | } |
54 | |||
55 | FILES_${PN}-staticdev = "${libdir}/go/pkg" | ||