summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBruce Beare <bruce.j.beare@intel.com>2012-02-15 16:39:20 -0800
committerBruce Beare <bruce.j.beare@intel.com>2012-05-25 09:59:25 -0700
commitc3192b316474df4f01b635a50b8696f7821b781b (patch)
tree46e3473501998ff5f8e4184484a05de79df2a5fc /core
parentfed2587c164d27de79ca7900e920a15cbf62f990 (diff)
downloadbuild-c3192b316474df4f01b635a50b8696f7821b781b.zip
build-c3192b316474df4f01b635a50b8696f7821b781b.tar.gz
build-c3192b316474df4f01b635a50b8696f7821b781b.tar.bz2
x86: Clean up atom vs/ non-atom compiler flags, enable SSSE3
Change-Id: I0576514621affefea86a14d419f428761a60e067 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Diffstat (limited to 'core')
-rw-r--r--core/combo/TARGET_linux-x86.mk18
1 files changed, 7 insertions, 11 deletions
diff --git a/core/combo/TARGET_linux-x86.mk b/core/combo/TARGET_linux-x86.mk
index 5020c84..3ffd7a5 100644
--- a/core/combo/TARGET_linux-x86.mk
+++ b/core/combo/TARGET_linux-x86.mk
@@ -96,26 +96,22 @@ TARGET_GLOBAL_CPPFLAGS += \
-fno-use-cxa-atexit
ifeq ($(TARGET_ARCH_VARIANT),x86-atom)
- # Basic ATOM flags.
- TARGET_GLOBAL_CFLAGS += -march=atom -mstackrealign -mfpmath=sse
+ # Basic ATOM flags - only use this if you have both ssse3 and movbe instructions
+ TARGET_GLOBAL_CFLAGS += -march=atom -mstackrealign -mfpmath=sse -m32
# There are various levels of ATOM processors out there. Different ones have different
- # capabilities. This first define matches the NDK's minimum ABI requirements.
+ # capabilities.
# Note: Not all of the flags set here are actually used in Android. They are provided
# to allow for the addition of corresponding optimizations.
- TARGET_GLOBAL_CFLAGS += -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3
-
- # If you wish to build a BSP that will only be used on hardware that has additional
- # available instructions, enable them here. By default, this is commented off so that
- # the default images can run on all processors that are NDK ABI compliant.
- # TARGET_GLOBAL_CFLAGS += -DUSE_SSSE3
+ TARGET_GLOBAL_CFLAGS += -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3
else
- # Plain 'x86' - lowest common denominator. This should run pretty much on any hardware.
+ # Plain 'x86' - Requires sse3, use if you have nossse3 or movbe
#
# Note: The NDK's ABI (see the NDK ABI documentation) requires many of the more recent
# instruction set additions. You can build an "x86" BSP that will run on very old hardware,
# but it won't be able to run much of the x86 NDK compliant code.
- TARGET_GLOBAL_CFLAGS += -march=i686
+ TARGET_GLOBAL_CFLAGS += -march=i686 -msse3 -mfpmath=sse -m32
+ TARGET_GLOBAL_CFLAGS += -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3
endif
TARGET_GLOBAL_CFLAGS += -mbionic