summaryrefslogtreecommitdiff
path: root/MAKEALL
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-10-21 11:11:26 +0900
committerTom Rini <trini@ti.com>2013-11-08 09:38:24 -0500
commit54d1f5048a1f69b6a62c4eaf2d232fcaa35e443c (patch)
treeb7279d2da077b893bf17bdcf25bb0617a526e31b /MAKEALL
parent23d6410c2dc1fc9ce330b020b6287c2e1e334761 (diff)
MAKEALL: fix a bug to use CROSS_COMPILE_<ARCH>
Commit 27af930e changed the boards.cfg format but missed to change get_target_arch() fuction. This commit adjusts it for CROSS_COMPILE_<ARCH> to work correctly. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'MAKEALL')
-rwxr-xr-xMAKEALL2
1 files changed, 1 insertions, 1 deletions
diff --git a/MAKEALL b/MAKEALL
index b03522957d2..230959c4d14 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