summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/meta/meta-go-toolchain.bb
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:03:33 +0100
commit8e16694b2f4c4038c56226821699d0d21578bdf0 (patch)
treedcdc8e42dd634c4fac0b57c2fcb37a6e27020ba1 /meta/recipes-core/meta/meta-go-toolchain.bb
parent5de3de12c70f01753491c46b5622b0d273c3257b (diff)
downloadopenembedded-core-contrib-8e16694b2f4c4038c56226821699d0d21578bdf0.tar.gz
openembedded-core-contrib-8e16694b2f4c4038c56226821699d0d21578bdf0.tar.bz2
openembedded-core-contrib-8e16694b2f4c4038c56226821699d0d21578bdf0.zip
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. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/meta/meta-go-toolchain.bb')
-rw-r--r--meta/recipes-core/meta/meta-go-toolchain.bb12
1 files changed, 12 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 @@
+SUMMARY = "Meta package for building a installable Go toolchain"
+LICENSE = "MIT"
+
+inherit populate_sdk
+
+TOOLCHAIN_HOST_TASK_append = " \
+ packagegroup-go-cross-canadian-${MACHINE} \
+"
+
+TOOLCHAIN_TARGET_TASK_append = " \
+ ${@multilib_pkg_extend(d, 'packagegroup-go-sdk-target')} \
+"