summaryrefslogtreecommitdiffstats
path: root/meta/classes/goarch.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r--meta/classes/goarch.bbclass54
1 files changed, 27 insertions, 27 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index e4e0ca37be..48dc48dabf 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -6,54 +6,54 @@ HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}"
6HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}" 6HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}"
7HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" 7HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
8HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" 8HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
9HOST_GOARM_class-native = "7" 9HOST_GOARM:class-native = "7"
10HOST_GO386_class-native = "sse2" 10HOST_GO386:class-native = "sse2"
11HOST_GOMIPS_class-native = "hardfloat" 11HOST_GOMIPS:class-native = "hardfloat"
12HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}" 12HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
13TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}" 13TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
14TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}" 14TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
15TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}" 15TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}"
16TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" 16TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
17TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" 17TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
18TARGET_GOARM_class-native = "7" 18TARGET_GOARM:class-native = "7"
19TARGET_GO386_class-native = "sse2" 19TARGET_GO386:class-native = "sse2"
20TARGET_GOMIPS_class-native = "hardfloat" 20TARGET_GOMIPS:class-native = "hardfloat"
21TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" 21TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
22GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" 22GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
23 23
24# Use the MACHINEOVERRIDES to map ARM CPU architecture passed to GO via GOARM. 24# Use the MACHINEOVERRIDES to map ARM CPU architecture passed to GO via GOARM.
25# This is combined with *_ARCH to set HOST_GOARM and TARGET_GOARM. 25# This is combined with *_ARCH to set HOST_GOARM and TARGET_GOARM.
26BASE_GOARM = '' 26BASE_GOARM = ''
27BASE_GOARM_armv7ve = '7' 27BASE_GOARM:armv7ve = '7'
28BASE_GOARM_armv7a = '7' 28BASE_GOARM:armv7a = '7'
29BASE_GOARM_armv6 = '6' 29BASE_GOARM:armv6 = '6'
30BASE_GOARM_armv5 = '5' 30BASE_GOARM:armv5 = '5'
31 31
32# Go supports dynamic linking on a limited set of architectures. 32# Go supports dynamic linking on a limited set of architectures.
33# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go 33# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
34GO_DYNLINK = "" 34GO_DYNLINK = ""
35GO_DYNLINK_arm = "1" 35GO_DYNLINK:arm = "1"
36GO_DYNLINK_aarch64 = "1" 36GO_DYNLINK:aarch64 = "1"
37GO_DYNLINK_x86 = "1" 37GO_DYNLINK:x86 = "1"
38GO_DYNLINK_x86-64 = "1" 38GO_DYNLINK:x86-64 = "1"
39GO_DYNLINK_powerpc64 = "1" 39GO_DYNLINK:powerpc64 = "1"
40GO_DYNLINK_powerpc64le = "1" 40GO_DYNLINK:powerpc64le = "1"
41GO_DYNLINK_class-native = "" 41GO_DYNLINK:class-native = ""
42GO_DYNLINK_class-nativesdk = "" 42GO_DYNLINK:class-nativesdk = ""
43 43
44# define here because everybody inherits this class 44# define here because everybody inherits this class
45# 45#
46COMPATIBLE_HOST_linux-gnux32 = "null" 46COMPATIBLE_HOST:linux-gnux32 = "null"
47COMPATIBLE_HOST_linux-muslx32 = "null" 47COMPATIBLE_HOST:linux-muslx32 = "null"
48COMPATIBLE_HOST_powerpc = "null" 48COMPATIBLE_HOST:powerpc = "null"
49COMPATIBLE_HOST_powerpc64 = "null" 49COMPATIBLE_HOST:powerpc64 = "null"
50COMPATIBLE_HOST_mipsarchn32 = "null" 50COMPATIBLE_HOST:mipsarchn32 = "null"
51 51
52ARM_INSTRUCTION_SET_armv4 = "arm" 52ARM_INSTRUCTION_SET:armv4 = "arm"
53ARM_INSTRUCTION_SET_armv5 = "arm" 53ARM_INSTRUCTION_SET:armv5 = "arm"
54ARM_INSTRUCTION_SET_armv6 = "arm" 54ARM_INSTRUCTION_SET:armv6 = "arm"
55 55
56TUNE_CCARGS_remove = "-march=mips32r2" 56TUNE_CCARGS:remove = "-march=mips32r2"
57SECURITY_NOPIE_CFLAGS ??= "" 57SECURITY_NOPIE_CFLAGS ??= ""
58 58
59# go can't be built with ccache: 59# go can't be built with ccache: