Author: blueswirl
Date: Sat Jul 3 10:07:59 2010
New Revision: 808
URL: http://tracker.coreboot.org/trac/openbios/changeset/808
Log:
Fix cross compiler detection with dash shell
Based on patch by Andreas Färber.
Signed-off-by: Blue Swirl <blauwirbel(a)gmail.com>
Modified:
trunk/openbios-devel/config/scripts/switch-arch
Modified: trunk/openbios-devel/config/scripts/switch-arch
==============================================================================
--- trunk/openbios-devel/config/scripts/switch-arch Sat Jul 3 10:07:57 2010 (r807)
+++ trunk/openbios-devel/config/scripts/switch-arch Sat Jul 3 10:07:59 2010 (r808)
@@ -88,7 +88,7 @@
{
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