summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/crossgcc/buildgcc10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 7d416c29bd..c436f8edc7 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -221,6 +221,16 @@ while true ; do
esac
done
+case "$TARGETARCH" in
+ armv7a-eabi) break;;
+ i386-elf) break;;
+ i386-mingw32) break;;
+ i386*) TARGETARCH=i386-elf;;
+ arm*) TARGETARCH=armv7a-eabi;;
+ *) printf "Invalid architecture\n\n"; myhelp; exit 1;;
+esac
+
+echo "Target arch is now $TARGETARCH"
GDB_PACKAGE="GDB"
PYTHON_PACKAGE="PYTHON"
EXPAT_PACKAGE="EXPAT"