MAKEALL: fix a bug to use CROSS_COMPILE_<ARCH>
[kernel/u-boot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index b035229..230959c 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -571,7 +571,7 @@ get_target_arch() {
        local target=$1
 
        # Automatic mode
-       local line=`egrep -i "^[[:space:]]*${target}[[:space:]]" boards.cfg`
+       local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
 
        if [ -z "${line}" ] ; then echo "" ; return ; fi