From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH] MAKEALL: allow CROSS_COMPILE*=""
Date: Thu, 7 Oct 2010 18:38:49 +0200 [thread overview]
Message-ID: <1286469529-11579-1-git-send-email-plagnioj@jcrosoft.com> (raw)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
MAKEALL | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/MAKEALL b/MAKEALL
index 9353cd8..e987de2 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -97,10 +97,12 @@ do_build_target() {
printf "Building ${arch} ${target} \n" >&2 | tee -a "${log_report}"
cross_compile=`eval echo '$CROSS_COMPILE_'${target}`
- if [ ! "${cross_compile}" ]
+ cross_compile_set=`eval echo '${CROSS_COMPILE_'${target}'+set}'`
+ if [ "${cross_compile_set}" = "" ]
then
cross_compile=`eval echo '$CROSS_COMPILE_'${arch}`
- if [ ! "${cross_compile}" ]
+ cross_compile_set=`eval echo '${CROSS_COMPILE_'${arch}'+set}'`
+ if [ "${cross_compile_set}" = "" ]
then
cross_compile=${CROSS_COMPILE}
fi
@@ -237,7 +239,7 @@ fi
[ -d "${LOGDIR}" ] || mkdir ${LOGDIR} || exit 1
-if [ ! "${CONFIG}" ] && [ ! "${CROSS_COMPILE}" ]
+if [ ! "${CONFIG}" ] && [ ! "${CROSS_COMPILE+set}" ]
then
echo "You need to specify a CONFIG or a CROSS_COMPILE"
usage
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
reply other threads:[~2010-10-07 16:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1286469529-11579-1-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/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