From 915c4fc6fe2a1121e8de61c417019d9c2c18b120 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 9 Mar 2015 13:58:23 +0100 Subject: crossgcc: check for more tools that we require Change-Id: Ie002c69ab23cfc961b77771c4f2c20e5ae6bea60 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/8633 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- util/crossgcc/buildgcc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'util') 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() { -- cgit v1.2.3