173aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' TurnerLOCAL_PATH := $(call my-dir)
273aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' Turner
373aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' Turnerinclude $(CLEAR_VARS)
473aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' TurnerLOCAL_MODULE := test_cpufeatures
573aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' TurnerLOCAL_SRC_FILES := test_cpufeatures.c
673aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
773aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
873aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' Turner
95049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turnerinclude $(CLEAR_VARS)
105049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_MODULE := test_android_setCpu_1
115049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_SRC_FILES := test_android_setCpu_1.c
125049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
135049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
145049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turner
155049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turnerinclude $(CLEAR_VARS)
165049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_MODULE := test_android_setCpu_2
175049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_SRC_FILES := test_android_setCpu_2.c
185049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
195049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
205049b437591600fb0d262e4215cee4226e63c6ceDavid 'Digit' Turner
217f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' Turnerifeq ($(TARGET_ARCH),arm)
227f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' Turnerinclude $(CLEAR_VARS)
237f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' TurnerLOCAL_MODULE := test_android_setCpuArm_1
247f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' TurnerLOCAL_SRC_FILES := test_android_setCpuArm_1.c
257f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
267f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
277f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' Turnerendif
287f26cc56c2345217c63b88283be03aa549dd71a6David 'Digit' Turner
293cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsieh# Disable the following tests for GCC4.6/binutils-2.21 as well because
303cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsieh# platform libs are now built with the new default GCC4.8/binutils-2.24, and crt*.o
313cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsieh# generated by it can't be used by GCC4.6/binutils-2.21 due to inconsistency in
323cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsieh# usage of Tag involves DIV
333cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsieh#
3401f5b425fcf47841ddc0d84d2dfade95d20ee5b6Lai Wei-Chihifeq ($(TARGET_ARCH),arm)
35324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
363cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsiehifneq ($(NDK_TOOLCHAIN_VERSION),4.6)
37324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerinclude $(CLEAR_VARS)
38324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_MODULE := test_arm_idiv_support
39324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_SRC_FILES := test_arm_idiv.c
40324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_CFLAGS := -mcpu=cortex-a15
4134fc96f6925fda0c4204e34b807ad6d40860866fAndrew Hsieh# filter-out -march=armv7-a which isn't compatible with -mcpu=cortex-a15
4234fc96f6925fda0c4204e34b807ad6d40860866fAndrew HsiehTARGET_CFLAGS := $(filter-out -march=armv7-a, $(TARGET_CFLAGS))
43324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_ARM_MODE := arm
44324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
45324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
46324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turner
47324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerinclude $(CLEAR_VARS)
48324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_MODULE := test_thumb_idiv_support
49324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_SRC_FILES := test_arm_idiv.c
50324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_CFLAGS := -mcpu=cortex-a15
5134fc96f6925fda0c4204e34b807ad6d40860866fAndrew Hsieh# filter-out -march=armv7-a which isn't compatible with -mcpu=cortex-a15
5234fc96f6925fda0c4204e34b807ad6d40860866fAndrew HsiehTARGET_CFLAGS := $(filter-out -march=armv7-a, $(TARGET_CFLAGS))
53324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_ARM_MODE := thumb
54324d79f98d5338797721161d557c727165c23befDavid 'Digit' TurnerLOCAL_STATIC_LIBRARIES := cpufeatures
55324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerinclude $(BUILD_EXECUTABLE)
56324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turnerendif
5701f5b425fcf47841ddc0d84d2dfade95d20ee5b6Lai Wei-Chihendif
583cad1206d25b7970bcda44e0d662cfb8422774cbAndrew Hsiehendif
59324d79f98d5338797721161d557c727165c23befDavid 'Digit' Turner
6073aed82e574b59039cd85be912ffe20b2c75bca0David 'Digit' Turner$(call import-module,android/cpufeatures)
61