diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2017-09-14 16:22:31 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-21 09:05:50 +0100 |
commit | 7df07628176a87d88ec60a82e9a7a5cc94c374cb (patch) | |
tree | d7a53938c208529b7d9724a1efd546f63cc2ec24 /meta/recipes-core | |
parent | e1fd36cd6d0c6c70e498980678a71ba042063571 (diff) | |
download | poky-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')
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 @@ | |||
1 | SUMMARY = "Meta package for building a installable Go toolchain" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | inherit populate_sdk | ||
5 | |||
6 | TOOLCHAIN_HOST_TASK_append = " \ | ||
7 | packagegroup-go-cross-canadian-${MACHINE} \ | ||
8 | " | ||
9 | |||
10 | TOOLCHAIN_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 @@ | |||
1 | SUMMARY = "Host SDK package for Go cross canadian toolchain" | ||
2 | PN = "packagegroup-go-cross-canadian-${MACHINE}" | ||
3 | |||
4 | inherit cross-canadian packagegroup | ||
5 | |||
6 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | ||
7 | |||
8 | GO = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
9 | |||
10 | RDEPENDS_${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 @@ | |||
1 | SUMMARY = "Target packages for the Go SDK" | ||
2 | |||
3 | inherit packagegroup | ||
4 | |||
5 | RDEPENDS_${PN} = " \ | ||
6 | go-runtime \ | ||
7 | go-runtime-dev \ | ||
8 | " | ||