All of lore.kernel.org
 help / color / mirror / Atom feed
* How to include full Golang build support in SDK?
@ 2024-05-27  6:35 Jonas Fredriksson
  2024-05-27  7:16 ` [yocto] " Bratiranjan Acharya
  0 siblings, 1 reply; 5+ messages in thread
From: Jonas Fredriksson @ 2024-05-27  6:35 UTC (permalink / raw)
  To: yocto

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

Hello, I'm trying to create an SDK that has support for cross-compiling Golang applications. I know that Golang supports this out-of-the-box via *"env GOOS=linux GOARCH=arm64 go build"* but I am linking against CGO which proved difficult this way.

What I have:

> 
> 
> 
> TOOLCHAIN_HOST_TASK:append = " \
> nativesdk-go \
> packagegroup-go-cross-canadian-${MACHINE} \
> "
> 
> TOOLCHAIN_TARGET_TASK:append = " \
> ${@multilib_pkg_extend(d, 'packagegroup-go-sdk-target')} \
> "
> 
> IMAGE_INSTALL:append = " go"
> 
> 

When this SDK is built and installed, it only gives me this directory tree:

> 
> 
> 
> $ ls -lah x86_64-pokysdk-linux/usr/lib/go/
> bin
> pkg
> 
> 

What I specifically need is the " *src* " directory, because the packages are in there.

What do I need to add to my sdk, and how?

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

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

end of thread, other threads:[~2024-05-27  9:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27  6:35 How to include full Golang build support in SDK? Jonas Fredriksson
2024-05-27  7:16 ` [yocto] " Bratiranjan Acharya
2024-05-27  7:21   ` Jonas Fredriksson
2024-05-27  7:25     ` Janne Kiiskila
2024-05-27  9:26       ` Jonas Fredriksson

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.