Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 1 | _LIBC_ARCH_COMMON_SRC_FILES := \ |
| 2 | arch-arm/bionic/abort_arm.S \ |
| 3 | arch-arm/bionic/atomics_arm.c \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame^] | 4 | arch-arm/bionic/__bionic_clone.S \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 5 | arch-arm/bionic/eabi.c \ |
| 6 | arch-arm/bionic/_exit_with_stack_teardown.S \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 7 | 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 Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 16 | 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 Ferris | 24053a4 | 2013-08-19 17:45:09 -0700 | [diff] [blame] | 23 | arch-arm/bionic/exidx_static.c \ |
| 24 | bionic/dl_iterate_phdr_static.c \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 25 | |
| 26 | _LIBC_ARCH_DYNAMIC_SRC_FILES := \ |
Christopher Ferris | 24053a4 | 2013-08-19 17:45:09 -0700 | [diff] [blame] | 27 | arch-arm/bionic/exidx_dynamic.c \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 28 | |
Christopher Ferris | 59a13c1 | 2013-08-01 13:13:33 -0700 | [diff] [blame] | 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 \ |
Christopher Ferris | 5f45d58 | 2013-08-07 13:09:51 -0700 | [diff] [blame] | 34 | bionic/__strcpy_chk.cpp \ |
| 35 | bionic/__strcat_chk.cpp \ |
Christopher Ferris | 59a13c1 | 2013-08-01 13:13:33 -0700 | [diff] [blame] | 36 | |
| 37 | libc_common_src_files := \ |
| 38 | $(filter-out $(_LIBC_FORTIFY_FILES_TO_REMOVE),$(libc_common_src_files)) |
| 39 | |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 40 | ifeq ($(strip $(wildcard bionic/libc/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk)),) |
Rom Lemarchand | 22bda4b | 2013-05-03 05:53:38 -0700 | [diff] [blame] | 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.") |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 42 | endif |
| 43 | |
Christopher Ferris | d7a6329 | 2013-10-03 13:26:22 -0700 | [diff] [blame] | 44 | _LIBC_ARCH_ADDITIONAL_DEPENDENCIES := \ |
| 45 | $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk |
| 46 | include $(LOCAL_PATH)/arch-arm/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk |