From: Masahiro Yamada Date: Mon, 21 Oct 2013 02:11:26 +0000 (+0900) Subject: MAKEALL: fix a bug to use CROSS_COMPILE_ X-Git-Tag: v2014.01-rc1~109 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54d1f5048a1f69b6a62c4eaf2d232fcaa35e443c;p=u-boot MAKEALL: fix a bug to use CROSS_COMPILE_ Commit 27af930e changed the boards.cfg format but missed to change get_target_arch() fuction. This commit adjusts it for CROSS_COMPILE_ to work correctly. Signed-off-by: Masahiro Yamada Cc: Albert ARIBAUD --- diff --git a/MAKEALL b/MAKEALL index b03522957d..230959c4d1 100755 --- 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