TFM_ARM must be defined for other parts of the code

This commit is contained in:
Michael Mohr 2010-12-28 13:23:34 -08:00
parent e077338f6f
commit dcb23d1e42
2 changed files with 10 additions and 8 deletions

View File

@ -94,17 +94,19 @@ LOCAL_SRC_FILES := \
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/headers
LOCAL_CFLAGS += -DTFM_ARM
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
# Possible optimizations:
# -ftree-vectorize: have GCC attempt to automatically vectorize loops
# -ftree-vectorizer-verbose=2: verbose output during compile
# Note: not all V7a targets support NEON!
# LOCAL_ARM_NEON := true
LOCAL_CFLAGS += -DTFM_ARM_V7A
# Note: not all V7-a targets support NEON!
LOCAL_ARM_NEON := true
LOCAL_CFLAGS += -DTFM_ARM_V7A -ftree-vectorize
else ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_CFLAGS += -DTFM_ARM_V5TE
else
LOCAL_CFLAGS += -DTFM_ARM
LOCAL_CFLAGS += -DTFM_ARM_V4M
endif
include $(BUILD_STATIC_LIBRARY)

View File

@ -283,8 +283,8 @@ asm( \
: "%eax", "%cc")
/******************************************************************/
#elif defined(TFM_ARM)
/* ARMv4 code */
#elif defined(TFM_ARM_V4M)
/* generic ARMv4 or higher with M */
#define MONT_START
#define MONT_FINI