diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-07-26 10:41:38 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-07-26 10:41:38 +0800 |
commit | 2467fe24f0c447fcd59831ea1faecdf526889dea (patch) | |
tree | c415db106c157ed1d0be531a5e5b73bd67e7ea85 | |
parent | 8339ba912d2932a1caad24a3977ddeca0c549c48 (diff) | |
download | build-2467fe24f0c447fcd59831ea1faecdf526889dea.tar.gz |
Add atom optimization flags
To enable the optimization, set TARGET_ARCH_VARIANT := x86-atom.
Change-Id: I6b7798944bb8262bd83a76712419d8a77d3c34e9
-rw-r--r-- | core/combo/TARGET_linux-x86.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/combo/TARGET_linux-x86.mk b/core/combo/TARGET_linux-x86.mk index 6d123d0a61..1477ae695e 100644 --- a/core/combo/TARGET_linux-x86.mk +++ b/core/combo/TARGET_linux-x86.mk @@ -159,7 +159,13 @@ $(TARGET_CXX) \ $(TARGET_CRTEND_O) endef -TARGET_GLOBAL_CFLAGS += -m32 -D__ANDROID__ +ifeq ($(TARGET_ARCH_VARIANT),x86-atom) + # Enable recent IA friendly memory routines (such as for Atom) + # These will not work on the earlier x86 machines + TARGET_GLOBAL_CFLAGS += -mtune=i686 -DUSE_SSSE3 -DUSE_SSE2 +endif + +TARGET_GLOBAL_CFLAGS += -D__ANDROID__ TARGET_GLOBAL_LDFLAGS += -m32 endif #simulator |