From: Masahiro Yamada Date: Mon, 6 Apr 2015 02:12:28 +0000 (+0900) Subject: MAKEALL: fix get_target_arch() to adjust to '-' in Status field X-Git-Tag: KARO-TX6-2015-09-18~3113 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;ds=sidebyside;h=f702c8549ab6461dc1e4faeaa18c47ac1a0a4043;hp=f57a82888b7a8816872164c4f25dbd28477c0740;p=karo-tx-uboot.git MAKEALL: fix get_target_arch() to adjust to '-' in Status field Since the Kconfig conversion, boards.cfg scanned by MAKEALL is generated by tools/genboardscfg.py. Every board is supposed to have its own MAINTAINERS that contains maintainer and status information, but, in fact, MAINTAINERS is missing from some boards. For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently, get_target_arch() returns a wrong field and MAKEALL fails to get a correct toolchain. Signed-off-by: Masahiro Yamada --- diff --git a/MAKEALL b/MAKEALL index 5483b389c9..a6e378f89c 100755 --- a/MAKEALL +++ b/MAKEALL @@ -551,13 +551,7 @@ get_target_maintainers() { get_target_arch() { local target=$1 - # Automatic mode - local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg` - - if [ -z "${line}" ] ; then echo "" ; return ; fi - - set ${line} - echo "$2" + awk '$7 == "'$target'" { print $2 }' boards.cfg } list_target() {