1_LIBC_ARCH_COMMON_SRC_FILES := \ 2 arch-arm/bionic/abort_arm.S \ 3 arch-arm/bionic/atomics_arm.c \ 4 arch-arm/bionic/clone.S \ 5 arch-arm/bionic/eabi.c \ 6 arch-arm/bionic/_exit_with_stack_teardown.S \ 7 arch-arm/bionic/ffs.S \ 8 arch-arm/bionic/futex_arm.S \ 9 arch-arm/bionic/__get_sp.S \ 10 arch-arm/bionic/kill.S \ 11 arch-arm/bionic/libgcc_compat.c \ 12 arch-arm/bionic/memcmp16.S \ 13 arch-arm/bionic/memcmp.S \ 14 arch-arm/bionic/_setjmp.S \ 15 arch-arm/bionic/setjmp.S \ 16 arch-arm/bionic/sigsetjmp.S \ 17 arch-arm/bionic/syscall.S \ 18 arch-arm/bionic/tgkill.S \ 19 arch-arm/bionic/tkill.S \ 20 21# These are used by the static and dynamic versions of the libc 22# respectively. 23_LIBC_ARCH_STATIC_SRC_FILES := \ 24 arch-arm/bionic/exidx_static.c 25 26_LIBC_ARCH_DYNAMIC_SRC_FILES := \ 27 arch-arm/bionic/exidx_dynamic.c 28 29# Remove the C++ fortify function implementations for which there is an 30# arm assembler version. 31_LIBC_FORTIFY_FILES_TO_REMOVE := \ 32 bionic/__memcpy_chk.cpp \ 33 bionic/__memset_chk.cpp \ 34 bionic/__strcpy_chk.cpp \ 35 bionic/__strcat_chk.cpp \ 36 37libc_common_src_files := \ 38 $(filter-out $(_LIBC_FORTIFY_FILES_TO_REMOVE),$(libc_common_src_files)) 39 40ifeq ($(strip $(wildcard bionic/libc/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk)),) 41$(error "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.") 42endif 43 44include bionic/libc/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk 45