summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/go.bbclass5
-rw-r--r--meta/classes/goarch.bbclass6
2 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 85f71a2e9a..cedda68c55 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -1,10 +1,5 @@
1inherit goarch 1inherit goarch
2 2
3# x32 ABI is not supported on go compiler so far
4COMPATIBLE_HOST_linux-gnux32 = "null"
5# ppc32 is not supported in go compilers
6COMPATIBLE_HOST_powerpc = "null"
7
8GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" 3GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
9GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" 4GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
10GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin" 5GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin"
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):