summaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-03-09 13:58:23 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-03-25 09:15:40 +0100
commit915c4fc6fe2a1121e8de61c417019d9c2c18b120 (patch)
tree9dc0b84cc3938bdcdc48bd9233e34483c92d02e7 /util/crossgcc
parent42412b603c2e4723e777be582d5e1095ba84efde (diff)
downloadcoreboot-915c4fc6fe2a1121e8de61c417019d9c2c18b120.tar.xz
crossgcc: check for more tools that we require
Change-Id: Ie002c69ab23cfc961b77771c4f2c20e5ae6bea60 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/8633 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-xutil/crossgcc/buildgcc6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 07cc1f0c4e..bdbbe2637e 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -108,7 +108,7 @@ searchtool()
fi
for i in "$1" "g$1" "gnu$1"; do
if test -x "`which $i 2>/dev/null`"; then
- if test `$i --version 2>/dev/null |grep -c "$search"` \
+ if test `$i --version 2>&1 |grep -c "$search"` \
-gt 0; then
echo $i
return
@@ -138,7 +138,9 @@ searchtool m4 > /dev/null
searchtool bison > /dev/null
searchtool flex flex > /dev/null
searchtool g++ "Free Software Foundation" nofail > /dev/null || \
-searchtool clang "clang version"
+searchtool clang "clang version" > /dev/null
+searchtool wget > /dev/null
+searchtool bzip2 "bzip2," > /dev/null
cleanup()
{