1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_MODULE := test_cpufeatures 5LOCAL_SRC_FILES := test_cpufeatures.c 6LOCAL_STATIC_LIBRARIES := cpufeatures 7include $(BUILD_EXECUTABLE) 8 9include $(CLEAR_VARS) 10LOCAL_MODULE := test_android_setCpu_1 11LOCAL_SRC_FILES := test_android_setCpu_1.c 12LOCAL_STATIC_LIBRARIES := cpufeatures 13include $(BUILD_EXECUTABLE) 14 15include $(CLEAR_VARS) 16LOCAL_MODULE := test_android_setCpu_2 17LOCAL_SRC_FILES := test_android_setCpu_2.c 18LOCAL_STATIC_LIBRARIES := cpufeatures 19include $(BUILD_EXECUTABLE) 20 21ifeq ($(TARGET_ARCH),arm) 22include $(CLEAR_VARS) 23LOCAL_MODULE := test_android_setCpuArm_1 24LOCAL_SRC_FILES := test_android_setCpuArm_1.c 25LOCAL_STATIC_LIBRARIES := cpufeatures 26include $(BUILD_EXECUTABLE) 27endif 28 29# Disable the following tests for GCC4.6/binutils-2.21 as well because 30# platform libs are now built with the new default GCC4.8/binutils-2.24, and crt*.o 31# generated by it can't be used by GCC4.6/binutils-2.21 due to inconsistency in 32# usage of Tag involves DIV 33# 34ifeq ($(TARGET_ARCH),arm) 35ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 36ifneq ($(NDK_TOOLCHAIN_VERSION),4.6) 37include $(CLEAR_VARS) 38LOCAL_MODULE := test_arm_idiv_support 39LOCAL_SRC_FILES := test_arm_idiv.c 40LOCAL_CFLAGS := -mcpu=cortex-a15 41# filter-out -march=armv7-a which isn't compatible with -mcpu=cortex-a15 42TARGET_CFLAGS := $(filter-out -march=armv7-a, $(TARGET_CFLAGS)) 43LOCAL_ARM_MODE := arm 44LOCAL_STATIC_LIBRARIES := cpufeatures 45include $(BUILD_EXECUTABLE) 46 47include $(CLEAR_VARS) 48LOCAL_MODULE := test_thumb_idiv_support 49LOCAL_SRC_FILES := test_arm_idiv.c 50LOCAL_CFLAGS := -mcpu=cortex-a15 51# filter-out -march=armv7-a which isn't compatible with -mcpu=cortex-a15 52TARGET_CFLAGS := $(filter-out -march=armv7-a, $(TARGET_CFLAGS)) 53LOCAL_ARM_MODE := thumb 54LOCAL_STATIC_LIBRARIES := cpufeatures 55include $(BUILD_EXECUTABLE) 56endif 57endif 58endif 59 60$(call import-module,android/cpufeatures) 61