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