summaryrefslogtreecommitdiffstats
path: root/meta/classes/goarch.bbclass
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2017-07-26 15:14:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 22:36:52 +0100
commit25717652b6d600bed1b938c4a034b0d5f7fb661c (patch)
tree0f97955e68af0e0c6c0e96a4ef30d8d337921d1e /meta/classes/goarch.bbclass
parent111c426a33a16148d109bfcdfbeaaeac68ae3bcf (diff)
downloadpoky-25717652b6d600bed1b938c4a034b0d5f7fb661c.tar.gz
go: centralize definition of COMPATIBLE_HOST
Put it in goarch.bbclass which all go related recipes inherit. (From OE-Core rev: 9e899bbc081cb932c1492f6d6802b908d70ef42f) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r--meta/classes/goarch.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 4a5b2ec787..57537fbc09 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -11,6 +11,12 @@ TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH', True), d.getVar('TUNE_FEAT
11TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" 11TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
12GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE',True) == d.getVar('HOST_GOTUPLE',True)]}" 12GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE',True) == d.getVar('HOST_GOTUPLE',True)]}"
13 13
14# define here because everybody inherits this class
15#
16COMPATIBLE_HOST_linux-gnux32 = "null"
17COMPATIBLE_HOST_powerpc = "null"
18COMPATIBLE_HOST_powerpc64 = "null"
19
14def go_map_arch(a, d): 20def go_map_arch(a, d):
15 import re 21 import re
16 if re.match('i.86', a): 22 if re.match('i.86', a):