]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MAKEALL: fix a bug to use CROSS_COMPILE_<ARCH>
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 21 Oct 2013 02:11:26 +0000 (11:11 +0900)
committerTom Rini <trini@ti.com>
Fri, 8 Nov 2013 14:38:24 +0000 (09:38 -0500)
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>
MAKEALL

diff --git a/MAKEALL b/MAKEALL
index b03522957d2e5f0505fc5924c5a318779d86d2c4..230959c4d14ff26989cf892da7bca33149a7b93c 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