From 6e3c34c7b5d8fc738bbb31793143cc617a70f347 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 3 Jul 2010 08:07:59 +0000 Subject: [PATCH] Fix cross compiler detection with dash shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on patch by Andreas Färber. Signed-off-by: Blue Swirl git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@808 f158a5a8-5612-0410-a976-696ce0be7e32 --- config/scripts/switch-arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch index c145e86..c1158fa 100755 --- a/config/scripts/switch-arch +++ b/config/scripts/switch-arch @@ -88,7 +88,7 @@ select_prefix() { for TARGET in ${1}-linux-gnu- ${1}-elf- ${1}-eabi- do - if type -p ${TARGET}gcc > /dev/null + if type ${TARGET}gcc > /dev/null 2>&1 then return fi