On Wed, Apr 7, 2021 at 5:31 AM Peter Morrow
<[email protected]> wrote:
>
> When building the nativesdk for mingw we need to set GOROOT in order to build
> anything out of the box.
>
> Signed-off-by: Peter Morrow <[email protected]>
> ---
>  recipes-devtools/go/go_%.bbappend | 9 +++++++++
>  1 file changed, 9 insertions(+)
>  create mode 100644 recipes-devtools/go/go_%.bbappend
>
> diff --git a/recipes-devtools/go/go_%.bbappend 
> b/recipes-devtools/go/go_%.bbappend
> new file mode 100644
> index 0000000..9933108
> --- /dev/null
> +++ b/recipes-devtools/go/go_%.bbappend
> @@ -0,0 +1,9 @@
> +do_install_append_class-nativesdk_mingw32() {
> +    install -d ${D}${SDKPATHNATIVE}/environment-setup.d
> +
> +    cat <<EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/go.bat
> +set GOROOT=%OECORE_NATIVE_SYSROOT%\\usr\\lib\\${BPN}
> +EOF
> +}
> +
> +FILES_${PN}_append_class-nativesdk_mingw32 = " 
> ${SDKPATHNATIVE}/environment-setup.d"
> --
> 1.8.3.1
>

I've put this patch in master-next oe meta-mingw. This is the wrong
mailing list for these patches, please use
[email protected] time.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150268): 
https://lists.openembedded.org/g/openembedded-core/message/150268
Mute This Topic: https://lists.openembedded.org/mt/81912228/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to