blob: 0717306ce595754a5a86f657bba2b400ea67a1a0 [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 \
9 arch-arm/bionic/kill.S \
10 arch-arm/bionic/libgcc_compat.c \
11 arch-arm/bionic/memcmp16.S \
12 arch-arm/bionic/memcmp.S \
13 arch-arm/bionic/_setjmp.S \
14 arch-arm/bionic/setjmp.S \
15 arch-arm/bionic/sigsetjmp.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080016 arch-arm/bionic/syscall.S \
17 arch-arm/bionic/tgkill.S \
18 arch-arm/bionic/tkill.S \
19
20# These are used by the static and dynamic versions of the libc
21# respectively.
22_LIBC_ARCH_STATIC_SRC_FILES := \
Christopher Ferris24053a42013-08-19 17:45:09 -070023 arch-arm/bionic/exidx_static.c \
24 bionic/dl_iterate_phdr_static.c \
Christopher Ferris04954a42013-02-26 01:30:00 -080025
26_LIBC_ARCH_DYNAMIC_SRC_FILES := \
Christopher Ferris24053a42013-08-19 17:45:09 -070027 arch-arm/bionic/exidx_dynamic.c \
Christopher Ferris04954a42013-02-26 01:30:00 -080028
Christopher Ferris59a13c12013-08-01 13:13:33 -070029# 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 \
Christopher Ferris5f45d582013-08-07 13:09:51 -070034 bionic/__strcpy_chk.cpp \
35 bionic/__strcat_chk.cpp \
Christopher Ferris59a13c12013-08-01 13:13:33 -070036
37libc_common_src_files := \
38 $(filter-out $(_LIBC_FORTIFY_FILES_TO_REMOVE),$(libc_common_src_files))
39
Christopher Ferris04954a42013-02-26 01:30:00 -080040ifeq ($(strip $(wildcard bionic/libc/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk)),)
Rom Lemarchand22bda4b2013-05-03 05:53:38 -070041$(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 -080042endif
43
Christopher Ferrisd7a63292013-10-03 13:26:22 -070044_LIBC_ARCH_ADDITIONAL_DEPENDENCIES := \
45 $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
46include $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk