summaryrefslogtreecommitdiffstats
path: root/MAKEALL
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-10-07 18:38:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-08 15:43:09 +0200
commita14c018d11ab8931eb0882dd9d7f6bdb04aa6d8b (patch)
tree1e7f77012ffa7249063155b2abe5a81a45fff27a /MAKEALL
parent24b499f3fe13c52445a1505ccfa0245ca3eb235c (diff)
downloadbarebox-a14c018d11ab8931eb0882dd9d7f6bdb04aa6d8b.tar.gz
MAKEALL: allow CROSS_COMPILE*=""
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'MAKEALL')
-rwxr-xr-xMAKEALL8
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