From: Alan Ott <alan@softiron.com>
To: leif.lindholm@linaro.org
Cc: edk2-devel@lists.01.org, Alan Ott <alan@softiron.com>
Subject: [PATCH] edk2-build.sh: Use CROSS_COMPILE if it's set externally
Date: Fri, 18 Aug 2017 19:29:59 -0400 [thread overview]
Message-ID: <20170818232959.10578-1-alan@softiron.com> (raw)
---
edk2-build.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/edk2-build.sh b/edk2-build.sh
index 60da4df..fb0cb84 100755
--- a/edk2-build.sh
+++ b/edk2-build.sh
@@ -73,11 +73,13 @@ function do_build
import_openssl
fi
- set_cross_compile
- CROSS_COMPILE="$TEMP_CROSS_COMPILE"
+ if [ -z $CROSS_COMPILE ]; then
+ set_cross_compile
+ CROSS_COMPILE="$TEMP_CROSS_COMPILE"
+ fi
echo "Building $PLATFORM_NAME - $PLATFORM_ARCH"
- echo "CROSS_COMPILE=\"$TEMP_CROSS_COMPILE\""
+ echo "CROSS_COMPILE=\"$CROSS_COMPILE\""
echo "$board"_BUILDFLAGS="'$PLATFORM_BUILDFLAGS'"
if [ "$TARGETS" == "" ]; then
--
2.9.3
next reply other threads:[~2017-08-18 23:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-18 23:29 Alan Ott [this message]
2017-08-19 10:37 ` [PATCH] edk2-build.sh: Use CROSS_COMPILE if it's set externally Leif Lindholm
2017-08-19 13:49 ` Alan Ott
2017-08-19 15:07 ` Leif Lindholm
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-list 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=20170818232959.10578-1-alan@softiron.com \
--to=devel@edk2.groups.io \
/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