9
0
Fork 0

MAKEALL: accept defconfig with '-' in it

replace '-' with '_' for the configuration option

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 2012-09-19 11:40:42 +02:00 committed by Sascha Hauer
parent 94d8f732c2
commit dadcac8b38
1 changed files with 4 additions and 2 deletions

View File

@ -96,8 +96,10 @@ do_build_target() {
mkdir -p "${LOGDIR}/${target}"
printf "Building ${arch} ${target} \n" >&2 | tee -a "${log_report}"
cross_compile=`eval echo '$CROSS_COMPILE_'${target}`
cross_compile_set=`eval echo '${CROSS_COMPILE_'${target}'+set}'`
tmp=`echo "${target}" | tr - _`
cross_compile=`eval echo '$CROSS_COMPILE_'${tmp}`
cross_compile_set=`eval echo '${CROSS_COMPILE_'${tmp}'+set}'`
if [ "${cross_compile_set}" = "" ]
then
cross_compile=`eval echo '$CROSS_COMPILE_'${arch}`