diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-31 14:52:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:55 +0000 |
commit | e06de80a616ce2c78c6b416149710fcb45f6e986 (patch) | |
tree | b8e53eb502f3b906c6cff2a7201d0e05370757e3 /meta/recipes-devtools/go | |
parent | 09e1916ef6a9f8141e51e7b79e2b4528fce02811 (diff) | |
download | poky-e06de80a616ce2c78c6b416149710fcb45f6e986.tar.gz |
go: Change from TARGET_ARCH to TUNE_PKGARCH
Right now go-cross is changing signatures when you change TUNE for a given
architecture. In particular this breaks layer tests like:
yocto-check-layer ../meta-yocto-bsp/ --machines qemuarm beaglebone-yocto
This changes the PN addtion to something containing the tune rather than
the arch which avoids these kinds of errors. If go-cross can be tune
independent that would be nice but currently that isn't the case.
[YOCTO #12586]
(From OE-Core rev: e3c7e1703499e6a5332d9ab8a941671ec8235c4f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go')
-rw-r--r-- | meta/recipes-devtools/go/go-cross.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-runtime.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc index 44f230b8bc..6d9aa5c2dd 100644 --- a/meta/recipes-devtools/go/go-cross.inc +++ b/meta/recipes-devtools/go/go-cross.inc | |||
@@ -1,9 +1,9 @@ | |||
1 | inherit cross | 1 | inherit cross |
2 | 2 | ||
3 | PROVIDES = "virtual/${TARGET_PREFIX}go" | 3 | PROVIDES = "virtual/${TUNE_PKGARCH}-go" |
4 | DEPENDS = "go-native" | 4 | DEPENDS = "go-native" |
5 | 5 | ||
6 | PN = "go-cross-${TARGET_ARCH}" | 6 | PN = "go-cross-${TUNE_PKGARCH}" |
7 | 7 | ||
8 | export GOHOSTOS = "${BUILD_GOOS}" | 8 | export GOHOSTOS = "${BUILD_GOOS}" |
9 | export GOHOSTARCH = "${BUILD_GOARCH}" | 9 | export GOHOSTARCH = "${BUILD_GOARCH}" |
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc index 0041e8afab..c219aa3789 100644 --- a/meta/recipes-devtools/go/go-runtime.inc +++ b/meta/recipes-devtools/go/go-runtime.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DEPENDS = "virtual/${TARGET_PREFIX}go go-native" | 1 | DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native" |
2 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk" | 2 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk" |
3 | PROVIDES = "virtual/${TARGET_PREFIX}go-runtime" | 3 | PROVIDES = "virtual/${TARGET_PREFIX}go-runtime" |
4 | 4 | ||
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 29a1344675..c229ab2f8d 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DEPENDS = "virtual/${TARGET_PREFIX}go go-native" | 1 | DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native" |
2 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" | 2 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" |
3 | 3 | ||
4 | export GOHOSTOS = "${BUILD_GOOS}" | 4 | export GOHOSTOS = "${BUILD_GOOS}" |