diff options
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r-- | meta/classes/goarch.bbclass | 54 |
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)}" | |||
6 | HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}" | 6 | HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}" |
7 | HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" | 7 | HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" |
8 | HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" | 8 | HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" |
9 | HOST_GOARM_class-native = "7" | 9 | HOST_GOARM:class-native = "7" |
10 | HOST_GO386_class-native = "sse2" | 10 | HOST_GO386:class-native = "sse2" |
11 | HOST_GOMIPS_class-native = "hardfloat" | 11 | HOST_GOMIPS:class-native = "hardfloat" |
12 | HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}" | 12 | HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}" |
13 | TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}" | 13 | TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}" |
14 | TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}" | 14 | TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}" |
15 | TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}" | 15 | TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}" |
16 | TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" | 16 | TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" |
17 | TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" | 17 | TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" |
18 | TARGET_GOARM_class-native = "7" | 18 | TARGET_GOARM:class-native = "7" |
19 | TARGET_GO386_class-native = "sse2" | 19 | TARGET_GO386:class-native = "sse2" |
20 | TARGET_GOMIPS_class-native = "hardfloat" | 20 | TARGET_GOMIPS:class-native = "hardfloat" |
21 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" | 21 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" |
22 | GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" | 22 | GO_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. |
26 | BASE_GOARM = '' | 26 | BASE_GOARM = '' |
27 | BASE_GOARM_armv7ve = '7' | 27 | BASE_GOARM:armv7ve = '7' |
28 | BASE_GOARM_armv7a = '7' | 28 | BASE_GOARM:armv7a = '7' |
29 | BASE_GOARM_armv6 = '6' | 29 | BASE_GOARM:armv6 = '6' |
30 | BASE_GOARM_armv5 = '5' | 30 | BASE_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 |
34 | GO_DYNLINK = "" | 34 | GO_DYNLINK = "" |
35 | GO_DYNLINK_arm = "1" | 35 | GO_DYNLINK:arm = "1" |
36 | GO_DYNLINK_aarch64 = "1" | 36 | GO_DYNLINK:aarch64 = "1" |
37 | GO_DYNLINK_x86 = "1" | 37 | GO_DYNLINK:x86 = "1" |
38 | GO_DYNLINK_x86-64 = "1" | 38 | GO_DYNLINK:x86-64 = "1" |
39 | GO_DYNLINK_powerpc64 = "1" | 39 | GO_DYNLINK:powerpc64 = "1" |
40 | GO_DYNLINK_powerpc64le = "1" | 40 | GO_DYNLINK:powerpc64le = "1" |
41 | GO_DYNLINK_class-native = "" | 41 | GO_DYNLINK:class-native = "" |
42 | GO_DYNLINK_class-nativesdk = "" | 42 | GO_DYNLINK:class-nativesdk = "" |
43 | 43 | ||
44 | # define here because everybody inherits this class | 44 | # define here because everybody inherits this class |
45 | # | 45 | # |
46 | COMPATIBLE_HOST_linux-gnux32 = "null" | 46 | COMPATIBLE_HOST:linux-gnux32 = "null" |
47 | COMPATIBLE_HOST_linux-muslx32 = "null" | 47 | COMPATIBLE_HOST:linux-muslx32 = "null" |
48 | COMPATIBLE_HOST_powerpc = "null" | 48 | COMPATIBLE_HOST:powerpc = "null" |
49 | COMPATIBLE_HOST_powerpc64 = "null" | 49 | COMPATIBLE_HOST:powerpc64 = "null" |
50 | COMPATIBLE_HOST_mipsarchn32 = "null" | 50 | COMPATIBLE_HOST:mipsarchn32 = "null" |
51 | 51 | ||
52 | ARM_INSTRUCTION_SET_armv4 = "arm" | 52 | ARM_INSTRUCTION_SET:armv4 = "arm" |
53 | ARM_INSTRUCTION_SET_armv5 = "arm" | 53 | ARM_INSTRUCTION_SET:armv5 = "arm" |
54 | ARM_INSTRUCTION_SET_armv6 = "arm" | 54 | ARM_INSTRUCTION_SET:armv6 = "arm" |
55 | 55 | ||
56 | TUNE_CCARGS_remove = "-march=mips32r2" | 56 | TUNE_CCARGS:remove = "-march=mips32r2" |
57 | SECURITY_NOPIE_CFLAGS ??= "" | 57 | SECURITY_NOPIE_CFLAGS ??= "" |
58 | 58 | ||
59 | # go can't be built with ccache: | 59 | # go can't be built with ccache: |