All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] Go toolchain in SDK
       [not found] <161921A2ACDFB2CB.10725@lists.yoctoproject.org>
@ 2020-06-17  0:28 ` Robert Berger
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Berger @ 2020-06-17  0:28 UTC (permalink / raw)
  To: yocto; +Cc: Robert Berger

On 16/06/2020 23:55, Robert Berger via lists.yoctoproject.org wrote:
> 
> bitbake core-image-sato-sdk -c populate_sdk
> 
> and currently also for:
> bitbake core-image-sato-sdk -c populate_sdk_ext
> 

... and no arm-resy-linux-gnueabi-go on the target, only on the host SDK

> I don't think that's the way it was intended.
> 
> Can you please enlighten me?
> 
> Regards,
> 
> Robert
> 
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Go toolchain in SDK
  2020-06-19  0:27 ` [yocto] " Khem Raj
@ 2020-06-19 18:05   ` Srini
  0 siblings, 0 replies; 3+ messages in thread
From: Srini @ 2020-06-19 18:05 UTC (permalink / raw)
  To: Robert Berger, yocto, raj.khem; +Cc: Robert Berger

[-- Attachment #1: Type: text/plain, Size: 1964 bytes --]

Unlike other languages go has the ability to produce cross platform binaries. In my case, I just used my go to produce binaries for my yocto based target and just included it. it was too much effort to incorporate the go toolchain. But then it was > 1 year ago.

srini

________________________________
From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of Khem Raj via lists.yoctoproject.org <raj.khem=gmail.com@lists.yoctoproject.org>
Sent: Thursday, June 18, 2020 8:27 PM
To: Robert Berger <robert.berger.yocto.user@gmail.com>; yocto@yoctoproject.org <yocto@yoctoproject.org>
Cc: Robert Berger <robert.berger@reliableembeddedsystems.com>
Subject: Re: [yocto] Go toolchain in SDK



On 6/16/20 1:55 PM, Robert Berger wrote:
> Hi,
>
> What is the "proper" way to add the Go toolchain to an SDK nowadays
> (dunfell)?
>

I dont think there is sample image target for image based SDKs

> 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.

that is more like a meta-toolchain target

>
> 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?

what you did is roughly what should be needed. Maybe you might want
to create a -dev image

perhaps adding nativesdk-go to TOOLCHAIN_HOST_TASK might get everything
you need

>
> Regards,
>
> Robert
>
>
>


[-- Attachment #2: Type: text/html, Size: 3717 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Go toolchain in SDK
  2020-06-16 20:55 Robert Berger
@ 2020-06-19  0:27 ` Khem Raj
  2020-06-19 18:05   ` Srini
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2020-06-19  0:27 UTC (permalink / raw)
  To: Robert Berger, yocto; +Cc: Robert Berger


[-- Attachment #1.1: Type: text/plain, Size: 1267 bytes --]



On 6/16/20 1:55 PM, Robert Berger wrote:
> Hi,
> 
> What is the "proper" way to add the Go toolchain to an SDK nowadays
> (dunfell)?
> 

I dont think there is sample image target for image based SDKs

> 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.

that is more like a meta-toolchain target

> 
> 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?

what you did is roughly what should be needed. Maybe you might want
to create a -dev image

perhaps adding nativesdk-go to TOOLCHAIN_HOST_TASK might get everything
you need

> 
> Regards,
> 
> Robert
> 
> 
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-19 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <161921A2ACDFB2CB.10725@lists.yoctoproject.org>
2020-06-17  0:28 ` [yocto] Go toolchain in SDK Robert Berger
2020-06-16 20:55 Robert Berger
2020-06-19  0:27 ` [yocto] " Khem Raj
2020-06-19 18:05   ` Srini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.