diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-04-06 11:12:28 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-07 08:41:10 -0400 |
commit | bf678dfd426f0bc2eb6488fb56acc57d39d07b95 (patch) | |
tree | 9253501f3c96dcd13c46b6085f06917a9147cd0d | |
parent | cffcd2861310855130db52c93f7bf4d9b511741d (diff) | |
download | u-boot-imx-bf678dfd426f0bc2eb6488fb56acc57d39d07b95.zip u-boot-imx-bf678dfd426f0bc2eb6488fb56acc57d39d07b95.tar.gz u-boot-imx-bf678dfd426f0bc2eb6488fb56acc57d39d07b95.tar.bz2 |
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>
-rwxr-xr-x | MAKEALL | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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() { |