summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-19 11:40:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-19 19:33:13 +0200
commitdadcac8b382cd912199530f6e5920c7232f7ae1f (patch)
treeedcfbba8e67dee8065f98f3f5350d490fc4c9024
parent94d8f732c20ef3722401c455fff2d777802720bc (diff)
downloadbarebox-dadcac8b382cd912199530f6e5920c7232f7ae1f.tar.gz
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>
-rwxr-xr-xMAKEALL6
1 files changed, 4 insertions, 2 deletions
diff --git a/MAKEALL b/MAKEALL
index 056a4d0..c08e484 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -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}`