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?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63198): https://lists.yoctoproject.org/g/yocto/message/63198
Mute This Topic: https://lists.yoctoproject.org/mt/106326256/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to