summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-09-14 16:22:31 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-21 09:05:50 +0100
commit7df07628176a87d88ec60a82e9a7a5cc94c374cb (patch)
treed7a53938c208529b7d9724a1efd546f63cc2ec24 /meta/recipes-core
parente1fd36cd6d0c6c70e498980678a71ba042063571 (diff)
downloadpoky-7df07628176a87d88ec60a82e9a7a5cc94c374cb.tar.gz
Add Go toolchain support
This adds the meta-go-toolchain. It enables the generation of a Go toolchain allowing for cross compiling for target architecture. (From OE-Core rev: 8e16694b2f4c4038c56226821699d0d21578bdf0) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/meta/meta-go-toolchain.bb12
-rw-r--r--meta/recipes-core/packagegroups/packagegroup-go-cross-canadian.bb12
-rw-r--r--meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb8
3 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/meta-go-toolchain.bb b/meta/recipes-core/meta/meta-go-toolchain.bb
new file mode 100644
index 0000000000..dde385c1b1
--- /dev/null
+++ b/meta/recipes-core/meta/meta-go-toolchain.bb
@@ -0,0 +1,12 @@
1SUMMARY = "Meta package for building a installable Go toolchain"
2LICENSE = "MIT"
3
4inherit populate_sdk
5
6TOOLCHAIN_HOST_TASK_append = " \
7 packagegroup-go-cross-canadian-${MACHINE} \
8"
9
10TOOLCHAIN_TARGET_TASK_append = " \
11 ${@multilib_pkg_extend(d, 'packagegroup-go-sdk-target')} \
12"
diff --git a/meta/recipes-core/packagegroups/packagegroup-go-cross-canadian.bb b/meta/recipes-core/packagegroups/packagegroup-go-cross-canadian.bb
new file mode 100644
index 0000000000..3daace1a40
--- /dev/null
+++ b/meta/recipes-core/packagegroups/packagegroup-go-cross-canadian.bb
@@ -0,0 +1,12 @@
1SUMMARY = "Host SDK package for Go cross canadian toolchain"
2PN = "packagegroup-go-cross-canadian-${MACHINE}"
3
4inherit cross-canadian packagegroup
5
6PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
7
8GO = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
9
10RDEPENDS_${PN} = " \
11 ${@all_multilib_tune_values(d, 'GO')} \
12"
diff --git a/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb b/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb
new file mode 100644
index 0000000000..c6c14f1249
--- /dev/null
+++ b/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb
@@ -0,0 +1,8 @@
1SUMMARY = "Target packages for the Go SDK"
2
3inherit packagegroup
4
5RDEPENDS_${PN} = " \
6 go-runtime \
7 go-runtime-dev \
8"