summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-27 19:58:38 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-27 19:58:38 +0000
commitcc895b585386e8e977a7b7e04ce00493d15428ab (patch)
tree059d23bcf49a57bdc389ae83e48703035010446b
parentade4c1637f2056d2046a76551e4fb4750f2b2567 (diff)
downloadrockbox-cc895b585386e8e977a7b7e04ce00493d15428ab.tar.gz
rockbox-cc895b585386e8e977a7b7e04ce00493d15428ab.tar.bz2
rockbox-cc895b585386e8e977a7b7e04ce00493d15428ab.zip
New way to detect build for arm target in the maemo port.
Log detected CPU target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29433 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/configure10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 904e676e9e..959467029f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -573,15 +573,21 @@ maemocc () {
LDOPTS="$LDOPTS `pkg-config --libs libplayback-1`"
# N900 specific: Enable ARMv7 NEON support
- if sb-conf current |grep ARMEL; then
+ if sb-conf show -A |grep -q -i arm; then
+ echo "Detected ARM target"
GCCOPTS="$GCCOPTS -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
extradefines="$extradefines -DMAEMO_ARM_BUILD"
+ else
+ echo "Detected x86 target"
fi
else
# N8xx specific: Enable armv5te instructions
- if sb-conf current |grep ARMEL; then
+ if sb-conf show -A |grep -q -i arm; then
+ echo "Detected ARM target"
GCCOPTS="$GCCOPTS -mcpu=arm1136jf-s -mfloat-abi=softfp -mfpu=vfp"
extradefines="$extradefines -DMAEMO_ARM_BUILD"
+ else
+ echo "Detected x86 target"
fi
fi
}