diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 10 |
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 () { | |||
573 | LDOPTS="$LDOPTS `pkg-config --libs libplayback-1`" | 573 | LDOPTS="$LDOPTS `pkg-config --libs libplayback-1`" |
574 | 574 | ||
575 | # N900 specific: Enable ARMv7 NEON support | 575 | # N900 specific: Enable ARMv7 NEON support |
576 | if sb-conf current |grep ARMEL; then | 576 | if sb-conf show -A |grep -q -i arm; then |
577 | echo "Detected ARM target" | ||
577 | GCCOPTS="$GCCOPTS -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" | 578 | GCCOPTS="$GCCOPTS -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" |
578 | extradefines="$extradefines -DMAEMO_ARM_BUILD" | 579 | extradefines="$extradefines -DMAEMO_ARM_BUILD" |
580 | else | ||
581 | echo "Detected x86 target" | ||
579 | fi | 582 | fi |
580 | else | 583 | else |
581 | # N8xx specific: Enable armv5te instructions | 584 | # N8xx specific: Enable armv5te instructions |
582 | if sb-conf current |grep ARMEL; then | 585 | if sb-conf show -A |grep -q -i arm; then |
586 | echo "Detected ARM target" | ||
583 | GCCOPTS="$GCCOPTS -mcpu=arm1136jf-s -mfloat-abi=softfp -mfpu=vfp" | 587 | GCCOPTS="$GCCOPTS -mcpu=arm1136jf-s -mfloat-abi=softfp -mfpu=vfp" |
584 | extradefines="$extradefines -DMAEMO_ARM_BUILD" | 588 | extradefines="$extradefines -DMAEMO_ARM_BUILD" |
589 | else | ||
590 | echo "Detected x86 target" | ||
585 | fi | 591 | fi |
586 | fi | 592 | fi |
587 | } | 593 | } |