9
0
Fork 0

MAKEALL: allow CROSS_COMPILE*=""

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2010-10-07 18:38:49 +02:00 committed by Sascha Hauer
parent 24b499f3fe
commit a14c018d11
1 changed files with 5 additions and 3 deletions

View File

@ -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