2005-05-24 06:12:39 +00:00
|
|
|
case "$machine" in
|
2005-10-10 15:29:32 +00:00
|
|
|
arm*)
|
|
|
|
base_machine=arm
|
|
|
|
case $config_os in
|
2011-05-09 14:10:56 +00:00
|
|
|
linux-gnueabi*)
|
2011-12-08 15:45:14 +00:00
|
|
|
# Lets ask the compiler which ARM family we've got
|
|
|
|
# Unfortunately it doesn't define any flags for implementations
|
|
|
|
# that you might pass to -mcpu or -mtune
|
|
|
|
# Note if you add patterns here you must ensure that
|
2012-04-21 16:30:03 +00:00
|
|
|
# an appropriate directory exists in sysdeps/arm
|
2011-12-08 15:45:14 +00:00
|
|
|
archcppflag=`echo "" |
|
|
|
|
$CC $CFLAGS $CPPFLAGS -E -dM - |
|
|
|
|
grep __ARM_ARCH |
|
|
|
|
sed -e 's/^#define //' -e 's/ .*//'`
|
|
|
|
|
|
|
|
case x$archcppflag in
|
|
|
|
x__ARM_ARCH_[89]*__)
|
|
|
|
machine=armv7
|
|
|
|
echo "Found compiler is configured for something newer than v7 - using v7"
|
|
|
|
;;
|
|
|
|
|
|
|
|
x__ARM_ARCH_7A__)
|
|
|
|
machine=armv7
|
|
|
|
echo "Found compiler is configured for $machine"
|
|
|
|
;;
|
|
|
|
|
|
|
|
x__ARM_ARCH_6T2__)
|
|
|
|
machine=armv6t2
|
|
|
|
echo "Found compiler is configured for $machine"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
machine=arm
|
|
|
|
echo 2>&1 "arm/preconfigure: Did not find ARM architecture type; using default"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-04-21 16:30:03 +00:00
|
|
|
machine=arm/$machine
|
2010-11-22 16:20:19 +00:00
|
|
|
if [ "${CFLAGS+set}" != "set" ]; then
|
|
|
|
CFLAGS="-g -O2"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -fno-unwind-tables"
|
2005-10-10 15:29:32 +00:00
|
|
|
;;
|
2012-07-30 23:09:11 +00:00
|
|
|
linux*)
|
2012-01-07 20:32:29 +00:00
|
|
|
echo "Old ABI no longer supported" 2>&1
|
|
|
|
exit 1
|
2005-10-10 15:29:32 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
2005-05-24 06:12:39 +00:00
|
|
|
esac
|