forked from len0rd/rockbox
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
This commit is contained in:
parent
ade4c1637f
commit
cc895b5853
1 changed files with 8 additions and 2 deletions
10
tools/configure
vendored
10
tools/configure
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue