Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 1 | # 64-bit arm. |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 2 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 3 | # |
| 4 | # Default implementations of functions that are commonly optimized. |
| 5 | # |
| 6 | |
| 7 | libc_bionic_src_files_arm64 += \ |
| 8 | bionic/__memcpy_chk.cpp \ |
| 9 | bionic/__memset_chk.cpp \ |
| 10 | bionic/__strcpy_chk.cpp \ |
| 11 | bionic/__strcat_chk.cpp \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 12 | bionic/memrchr.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 13 | bionic/strrchr.cpp \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 14 | |
| 15 | libc_freebsd_src_files_arm64 += \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 16 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 17 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 18 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 19 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 20 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 21 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 22 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 23 | |
| 24 | libc_openbsd_src_files_arm64 += \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 25 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 26 | upstream-openbsd/lib/libc/string/strcat.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 27 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 28 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 29 | upstream-openbsd/lib/libc/string/strncat.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 30 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 31 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 32 | # |
| 33 | # Inherently architecture-specific code. |
| 34 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 35 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame^] | 36 | libc_bionic_src_files_arm64 += \ |
Colin Cross | d1973ca | 2014-01-21 19:50:58 -0800 | [diff] [blame] | 37 | arch-arm64/bionic/__bionic_clone.S \ |
Colin Cross | d1973ca | 2014-01-21 19:50:58 -0800 | [diff] [blame] | 38 | arch-arm64/bionic/_exit_with_stack_teardown.S \ |
Elliott Hughes | 36f451a | 2014-09-10 15:20:40 -0700 | [diff] [blame] | 39 | arch-arm64/bionic/__restore_rt.S \ |
Colin Cross | d1973ca | 2014-01-21 19:50:58 -0800 | [diff] [blame] | 40 | arch-arm64/bionic/_setjmp.S \ |
| 41 | arch-arm64/bionic/setjmp.S \ |
| 42 | arch-arm64/bionic/__set_tls.c \ |
| 43 | arch-arm64/bionic/sigsetjmp.S \ |
| 44 | arch-arm64/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 45 | arch-arm64/bionic/vfork.S \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 46 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 47 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 48 | libc_crt_target_cflags_arm64 := \ |
| 49 | -I$(LOCAL_PATH)/arch-arm64/include |
| 50 | |
| 51 | libc_crt_target_crtbegin_file_arm64 := \ |
| 52 | $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c |
| 53 | |
| 54 | libc_crt_target_crtbegin_so_file_arm64 := \ |
| 55 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
Bernhard Rosenkraenzer | 7e4fa56 | 2014-03-05 11:40:57 +0100 | [diff] [blame] | 56 | |
Christopher Ferris | 2146d14 | 2014-05-01 18:10:51 -0700 | [diff] [blame] | 57 | ## CPU variant specific source files |
| 58 | ifeq ($(strip $(TARGET_CPU_VARIANT)),) |
| 59 | $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined) |
| 60 | endif |
| 61 | cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk |
| 62 | ifeq ($(wildcard $(cpu_variant_mk)),) |
Shu Zhang | 0ef7a8f | 2014-03-17 15:15:32 +0800 | [diff] [blame] | 63 | $(error "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are generic, generic-neon, denver64. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.") |
Christopher Ferris | 2146d14 | 2014-05-01 18:10:51 -0700 | [diff] [blame] | 64 | endif |
| 65 | include $(cpu_variant_mk) |
| 66 | libc_common_additional_dependencies += $(cpu_variank_mk) |
| 67 | |
| 68 | cpu_variant_mk := |