[PATCH 1/1 for master] MAKEALL: accept defconfig with '-' in it
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Wed Sep 19 05:40:42 EDT 2012
replace '-' with '_' for the configuration option
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
Hi,
this is a fix
Best Regards,
J.
MAKEALL | 6 ++++--
1 file 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}`
--
1.7.10.4
More information about the barebox
mailing list