From: "Peter Morrow" <pemorrow@linux.microsoft.com>
To: openembedded-core@lists.openembedded.org
Cc: peter.morrow@microsoft.com, jpewhacker@gmail.com
Subject: [meta-mingw][PATCH] go: add environment setup batch file for go
Date: Wed, 7 Apr 2021 03:31:07 -0700 [thread overview]
Message-ID: <1617791467-4066-1-git-send-email-pemorrow@linux.microsoft.com> (raw)
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
next reply other threads:[~2021-04-07 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 10:31 Peter Morrow [this message]
2021-04-07 12:56 ` [meta-mingw][PATCH] go: add environment setup batch file for go Joshua Watt
2021-04-07 12:59 ` Peter Morrow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1617791467-4066-1-git-send-email-pemorrow@linux.microsoft.com \
--to=pemorrow@linux.microsoft.com \
--cc=jpewhacker@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=peter.morrow@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox