blob: 95c3b610d738b80206b7d911ec418a2480fd71e8 [file] [log] [blame]
Christopher Ferris04954a42013-02-26 01:30:00 -08001_LIBC_ARCH_COMMON_SRC_FILES := \
2 arch-arm/bionic/abort_arm.S \
3 arch-arm/bionic/atomics_arm.c \
Elliott Hughes36d61882013-11-19 13:31:58 -08004 arch-arm/bionic/__bionic_clone.S \
Christopher Ferris04954a42013-02-26 01:30:00 -08005 arch-arm/bionic/eabi.c \
6 arch-arm/bionic/_exit_with_stack_teardown.S \
Christopher Ferris04954a42013-02-26 01:30:00 -08007 arch-arm/bionic/futex_arm.S \
8 arch-arm/bionic/__get_sp.S \
Christopher Ferris04954a42013-02-26 01:30:00 -08009 arch-arm/bionic/libgcc_compat.c \
10 arch-arm/bionic/memcmp16.S \
11 arch-arm/bionic/memcmp.S \
12 arch-arm/bionic/_setjmp.S \
13 arch-arm/bionic/setjmp.S \
14 arch-arm/bionic/sigsetjmp.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080015 arch-arm/bionic/syscall.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080016
17# These are used by the static and dynamic versions of the libc
18# respectively.
19_LIBC_ARCH_STATIC_SRC_FILES := \
Christopher Ferris24053a42013-08-19 17:45:09 -070020 arch-arm/bionic/exidx_static.c \
21 bionic/dl_iterate_phdr_static.c \
Christopher Ferris04954a42013-02-26 01:30:00 -080022
23_LIBC_ARCH_DYNAMIC_SRC_FILES := \
Christopher Ferris24053a42013-08-19 17:45:09 -070024 arch-arm/bionic/exidx_dynamic.c \
Christopher Ferris04954a42013-02-26 01:30:00 -080025
Christopher Ferris59a13c12013-08-01 13:13:33 -070026# Remove the C++ fortify function implementations for which there is an
27# arm assembler version.
28_LIBC_FORTIFY_FILES_TO_REMOVE := \
29 bionic/__memcpy_chk.cpp \
30 bionic/__memset_chk.cpp \
Christopher Ferris5f45d582013-08-07 13:09:51 -070031 bionic/__strcpy_chk.cpp \
32 bionic/__strcat_chk.cpp \
Christopher Ferris59a13c12013-08-01 13:13:33 -070033
34libc_common_src_files := \
35 $(filter-out $(_LIBC_FORTIFY_FILES_TO_REMOVE),$(libc_common_src_files))
36
Christopher Ferris04954a42013-02-26 01:30:00 -080037ifeq ($(strip $(wildcard bionic/libc/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk)),)
Rom Lemarchand22bda4b2013-05-03 05:53:38 -070038$(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.")
Christopher Ferris04954a42013-02-26 01:30:00 -080039endif
40
Christopher Ferrisd7a63292013-10-03 13:26:22 -070041_LIBC_ARCH_ADDITIONAL_DEPENDENCIES := \
42 $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
43include $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk