Go toolchain in SDK


Robert Berger
 

Hi,

What is the "proper" way to add the Go toolchain to an SDK nowadays (dunfell)?

I saw there is in poky:

./meta/recipes-core/meta/meta-go-toolchain.bb

but I am not quite sure how to build an SDK with meta-go-toolchain included.

so I added something like that to local.conf which seems to work for the "classic" SDK:

# --> golang stuff
# attempt to add golang to SDK
TOOLCHAIN_HOST_TASK_append = " \
packagegroup-go-cross-canadian-${MACHINE} \
"

TOOLCHAIN_TARGET_TASK_append = " \
${@multilib_pkg_extend(d, 'packagegroup-go-sdk-target')} \
"
# <-- golang stuff

bitbake core-image-sato-sdk -c populate_sdk

and currently also for:
bitbake core-image-sato-sdk -c populate_sdk_ext

I don't think that's the way it was intended.

Can you please enlighten me?

Regards,

Robert

Join yocto@lists.yoctoproject.org to automatically receive all group messages.