diff options
author | Matt Madison <matt@madison.systems> | 2017-09-13 14:54:03 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-14 11:35:45 +0100 |
commit | e3c693eaeaa4d417fefa1cf1f0e4d7ebe780d9d8 (patch) | |
tree | d4e5c121b6384241ffb2d47adc6c95a465f46d06 /meta/classes | |
parent | b75fef21d10c1460b863aea984667f7ba22bb99e (diff) | |
download | poky-e3c693eaeaa4d417fefa1cf1f0e4d7ebe780d9d8.tar.gz |
goarch.bbclass: identify archs with Go dynamic linking support
Go only supports shared libraries for some architectures, so
add a variable for use elsewhere that gets a non-null value
only for those architectures.
(From OE-Core rev: 2275712df152b73ce49b36bdf9f8d744c68c9c50)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/goarch.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 0c22f80518..bfba3c9723 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass | |||
@@ -11,6 +11,16 @@ TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES') | |||
11 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" | 11 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" |
12 | GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" | 12 | GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" |
13 | 13 | ||
14 | # Go supports dynamic linking on a limited set of architectures. | ||
15 | # See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go | ||
16 | GO_DYNLINK = "" | ||
17 | GO_DYNLINK_arm = "1" | ||
18 | GO_DYNLINK_aarch64 = "1" | ||
19 | GO_DYNLINK_x86 = "1" | ||
20 | GO_DYNLINK_x86-64 = "1" | ||
21 | GO_DYNLINK_powerpc64 = "1" | ||
22 | GO_DYNLINK_class-native = "" | ||
23 | |||
14 | # define here because everybody inherits this class | 24 | # define here because everybody inherits this class |
15 | # | 25 | # |
16 | COMPATIBLE_HOST_linux-gnux32 = "null" | 26 | COMPATIBLE_HOST_linux-gnux32 = "null" |