Re: [OE-core] [meta-mingw][PATCH] go: add environment setup batch file for go

2021-04-07 Thread Peter Morrow
On Wed, Apr 07, 2021 at 07:56:01AM -0500, Joshua Watt wrote:
> On Wed, Apr 7, 2021 at 5:31 AM Peter Morrow
>  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 
> > ---
> >  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 000..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 < ${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
> yo...@lists.yoctoproject.org time.

Thanks, noted.

Peter.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150269): 
https://lists.openembedded.org/g/openembedded-core/message/150269
Mute This Topic: https://lists.openembedded.org/mt/81912228/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [meta-mingw][PATCH] go: add environment setup batch file for go

2021-04-07 Thread Joshua Watt
On Wed, Apr 7, 2021 at 5:31 AM Peter Morrow
 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 
> ---
>  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 000..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 < ${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
yo...@lists.yoctoproject.org 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: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-mingw][PATCH] go: add environment setup batch file for go

2021-04-07 Thread Peter Morrow
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 
---
 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 000..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 < ${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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150262): 
https://lists.openembedded.org/g/openembedded-core/message/150262
Mute This Topic: https://lists.openembedded.org/mt/81912228/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-