Commit bf678dfd426f0bc2eb6488fb56acc57d39d07b95
Committed by
Tom Rini
1 parent
cffcd28613
Exists in
v2017.01-smarct4x
and in
37 other branches
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 <yamada.masahiro@socionext.com>
Showing 1 changed file with 1 additions and 7 deletions Side-by-side Diff
MAKEALL
... | ... | @@ -551,13 +551,7 @@ |
551 | 551 | get_target_arch() { |
552 | 552 | local target=$1 |
553 | 553 | |
554 | - # Automatic mode | |
555 | - local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg` | |
556 | - | |
557 | - if [ -z "${line}" ] ; then echo "" ; return ; fi | |
558 | - | |
559 | - set ${line} | |
560 | - echo "$2" | |
554 | + awk '$7 == "'$target'" { print $2 }' boards.cfg | |
561 | 555 | } |
562 | 556 | |
563 | 557 | list_target() { |