* [meta-mingw][PATCH] go: add environment setup batch file for go
@ 2021-04-07 10:31 Peter Morrow
2021-04-07 12:56 ` Joshua Watt
0 siblings, 1 reply; 3+ messages in thread
From: Peter Morrow @ 2021-04-07 10:31 UTC (permalink / raw)
To: openembedded-core; +Cc: peter.morrow, jpewhacker
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 <pemorrow@linux.microsoft.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-mingw][PATCH] go: add environment setup batch file for go
2021-04-07 10:31 [meta-mingw][PATCH] go: add environment setup batch file for go Peter Morrow
@ 2021-04-07 12:56 ` Joshua Watt
2021-04-07 12:59 ` Peter Morrow
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2021-04-07 12:56 UTC (permalink / raw)
To: Peter Morrow; +Cc: OE-core, peter.morrow
On Wed, Apr 7, 2021 at 5:31 AM Peter Morrow
<pemorrow@linux.microsoft.com> 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 <pemorrow@linux.microsoft.com>
> ---
> 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
yocto@lists.yoctoproject.org time.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-mingw][PATCH] go: add environment setup batch file for go
2021-04-07 12:56 ` Joshua Watt
@ 2021-04-07 12:59 ` Peter Morrow
0 siblings, 0 replies; 3+ messages in thread
From: Peter Morrow @ 2021-04-07 12:59 UTC (permalink / raw)
To: Joshua Watt; +Cc: OE-core, 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
> <pemorrow@linux.microsoft.com> 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 <pemorrow@linux.microsoft.com>
> > ---
> > 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
> yocto@lists.yoctoproject.org time.
Thanks, noted.
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-07 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 10:31 [meta-mingw][PATCH] go: add environment setup batch file for go Peter Morrow
2021-04-07 12:56 ` Joshua Watt
2021-04-07 12:59 ` Peter Morrow
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.