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 \ |
Colin Cross | d1973ca | 2014-01-21 19:50:58 -0800 | [diff] [blame] | 39 | arch-arm64/bionic/_setjmp.S \ |
| 40 | arch-arm64/bionic/setjmp.S \ |
| 41 | arch-arm64/bionic/__set_tls.c \ |
| 42 | arch-arm64/bionic/sigsetjmp.S \ |
| 43 | arch-arm64/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 44 | arch-arm64/bionic/vfork.S \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 45 | |
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 | libc_crt_target_cflags_arm64 := \ |
| 48 | -I$(LOCAL_PATH)/arch-arm64/include |
| 49 | |
| 50 | libc_crt_target_crtbegin_file_arm64 := \ |
| 51 | $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c |
| 52 | |
| 53 | libc_crt_target_crtbegin_so_file_arm64 := \ |
| 54 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
Bernhard Rosenkraenzer | 7e4fa56 | 2014-03-05 11:40:57 +0100 | [diff] [blame] | 55 | |
Christopher Ferris | 2146d14 | 2014-05-01 18:10:51 -0700 | [diff] [blame] | 56 | ## CPU variant specific source files |
| 57 | ifeq ($(strip $(TARGET_CPU_VARIANT)),) |
| 58 | $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined) |
| 59 | endif |
| 60 | cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk |
| 61 | ifeq ($(wildcard $(cpu_variant_mk)),) |
Christopher Ferris | 2169e17 | 2014-09-23 18:31:45 -0700 | [diff] [blame^] | 62 | $(error "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are generic, 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] | 63 | endif |
| 64 | include $(cpu_variant_mk) |
| 65 | libc_common_additional_dependencies += $(cpu_variank_mk) |
| 66 | |
| 67 | cpu_variant_mk := |