1# 64-bit arm. 2 3# 4# Default implementations of functions that are commonly optimized. 5# 6 7libc_bionic_src_files_arm64 += \ 8 bionic/__memset_chk.cpp \ 9 bionic/__strcpy_chk.cpp \ 10 bionic/__strcat_chk.cpp \ 11 bionic/memrchr.c \ 12 bionic/strrchr.cpp \ 13 14libc_freebsd_src_files_arm64 += \ 15 upstream-freebsd/lib/libc/string/wcscat.c \ 16 upstream-freebsd/lib/libc/string/wcschr.c \ 17 upstream-freebsd/lib/libc/string/wcscmp.c \ 18 upstream-freebsd/lib/libc/string/wcscpy.c \ 19 upstream-freebsd/lib/libc/string/wcslen.c \ 20 upstream-freebsd/lib/libc/string/wcsrchr.c \ 21 upstream-freebsd/lib/libc/string/wmemcmp.c \ 22 23libc_openbsd_src_files_arm64 += \ 24 upstream-openbsd/lib/libc/string/stpncpy.c \ 25 upstream-openbsd/lib/libc/string/strcat.c \ 26 upstream-openbsd/lib/libc/string/strlcat.c \ 27 upstream-openbsd/lib/libc/string/strlcpy.c \ 28 upstream-openbsd/lib/libc/string/strncat.c \ 29 upstream-openbsd/lib/libc/string/strncpy.c \ 30 31# 32# Inherently architecture-specific code. 33# 34 35libc_bionic_src_files_arm64 += \ 36 arch-arm64/bionic/__bionic_clone.S \ 37 arch-arm64/bionic/_exit_with_stack_teardown.S \ 38 arch-arm64/bionic/_setjmp.S \ 39 arch-arm64/bionic/setjmp.S \ 40 arch-arm64/bionic/__set_tls.c \ 41 arch-arm64/bionic/sigsetjmp.S \ 42 arch-arm64/bionic/syscall.S \ 43 arch-arm64/bionic/vfork.S \ 44 45 46libc_crt_target_cflags_arm64 := \ 47 -I$(LOCAL_PATH)/arch-arm64/include 48 49libc_crt_target_crtbegin_file_arm64 := \ 50 $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c 51 52libc_crt_target_crtbegin_so_file_arm64 := \ 53 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c 54 55## CPU variant specific source files 56ifeq ($(strip $(TARGET_CPU_VARIANT)),) 57 $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined) 58endif 59cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk 60ifeq ($(wildcard $(cpu_variant_mk)),) 61$(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.") 62endif 63include $(cpu_variant_mk) 64libc_common_additional_dependencies += $(cpu_variank_mk) 65 66cpu_variant_mk := 67