crossgcc: Generalize matching for the mingw case

With this change, i686-pc-mingw32 is acceptable, too.

Change-Id: I924f7ece84e77dc751e5e0318bac1ebc72d39d21
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/1972
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi 2012-12-06 12:14:49 +01:00 committed by Stefan Reinauer
parent 399486e8fb
commit fecd26f208
1 changed files with 5 additions and 5 deletions

View File

@ -238,7 +238,7 @@ if [ $SKIPPYTHON -eq 1 ]; then
fi fi
MINGW_ARCHIVES="" MINGW_ARCHIVES=""
if [ "$TARGETARCH" = "i386-mingw32" ]; then if [ "`echo $TARGETARCH | grep -c -- -mingw32`" -gt 0 ]; then
MINGW_ARCHIVES="$W32API_ARCHIVE $MINGWRT_ARCHIVE" MINGW_ARCHIVES="$W32API_ARCHIVE $MINGWRT_ARCHIVE"
fi fi
@ -285,7 +285,7 @@ printf "Downloaded tar balls ... "
printf "${green}ok${NC}\n" printf "${green}ok${NC}\n"
MINGW_PACKAGES="" MINGW_PACKAGES=""
if [ "$TARGETARCH" = "i386-mingw32" ]; then if [ "`echo $TARGETARCH | grep -c -- -mingw32`" -gt 0 ]; then
MINGW_PACKAGES="W32API MINGWRT" MINGW_PACKAGES="W32API MINGWRT"
fi fi
@ -315,10 +315,10 @@ done
printf "Unpacked and patched ... " printf "Unpacked and patched ... "
printf "${green}ok${NC}\n" printf "${green}ok${NC}\n"
if [ "$TARGETARCH" = "i386-mingw32" ]; then if [ "`echo $TARGETARCH | grep -c -- -mingw32`" -gt 0 ]; then
mkdir -p $TARGETDIR/i386-mingw32/sys-include mkdir -p $TARGETDIR/$TARGETARCH/sys-include
mv $MINGWRT_DIR/include/* $W32API_DIR/include/* \ mv $MINGWRT_DIR/include/* $W32API_DIR/include/* \
$TARGETDIR/i386-mingw32/sys-include $TARGETDIR/$TARGETARCH/sys-include
fi fi
CC=cc CC=cc