blob: 841899329347378260d257253c0c01d330b9b987 [file] [log] [blame]
Elliott Hughes7c02d942014-09-16 19:06:31 -07001# 64-bit arm.
Ying Wangf25d6772014-01-23 15:17:50 -08002
Elliott Hughes7c02d942014-09-16 19:06:31 -07003#
4# Default implementations of functions that are commonly optimized.
5#
6
7libc_bionic_src_files_arm64 += \
Elliott Hughes7c02d942014-09-16 19:06:31 -07008 bionic/__memset_chk.cpp \
9 bionic/__strcpy_chk.cpp \
10 bionic/__strcat_chk.cpp \
Elliott Hughes53e43292014-02-24 18:00:43 -080011 bionic/memrchr.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080012 bionic/strrchr.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070013
14libc_freebsd_src_files_arm64 += \
Ying Wangf25d6772014-01-23 15:17:50 -080015 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 \
Elliott Hughes7c02d942014-09-16 19:06:31 -070022
23libc_openbsd_src_files_arm64 += \
Varvara Rainchik5a922842014-04-24 15:41:20 +040024 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080025 upstream-openbsd/lib/libc/string/strcat.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080026 upstream-openbsd/lib/libc/string/strlcat.c \
27 upstream-openbsd/lib/libc/string/strlcpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080028 upstream-openbsd/lib/libc/string/strncat.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080029 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080030
Elliott Hughes7c02d942014-09-16 19:06:31 -070031#
32# Inherently architecture-specific code.
33#
Ying Wangf25d6772014-01-23 15:17:50 -080034
Elliott Hughes7c02d942014-09-16 19:06:31 -070035libc_bionic_src_files_arm64 += \
Colin Crossd1973ca2014-01-21 19:50:58 -080036 arch-arm64/bionic/__bionic_clone.S \
Colin Crossd1973ca2014-01-21 19:50:58 -080037 arch-arm64/bionic/_exit_with_stack_teardown.S \
Colin Crossd1973ca2014-01-21 19:50:58 -080038 arch-arm64/bionic/setjmp.S \
39 arch-arm64/bionic/__set_tls.c \
Colin Crossd1973ca2014-01-21 19:50:58 -080040 arch-arm64/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000041 arch-arm64/bionic/vfork.S \
Ying Wangf25d6772014-01-23 15:17:50 -080042
Ying Wangf25d6772014-01-23 15:17:50 -080043
Ying Wangf25d6772014-01-23 15:17:50 -080044libc_crt_target_cflags_arm64 := \
45 -I$(LOCAL_PATH)/arch-arm64/include
46
47libc_crt_target_crtbegin_file_arm64 := \
48 $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c
49
50libc_crt_target_crtbegin_so_file_arm64 := \
51 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
Bernhard Rosenkraenzer7e4fa562014-03-05 11:40:57 +010052
Christopher Ferris2146d142014-05-01 18:10:51 -070053## CPU variant specific source files
54ifeq ($(strip $(TARGET_CPU_VARIANT)),)
55 $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined)
56endif
57cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
58ifeq ($(wildcard $(cpu_variant_mk)),)
Christopher Ferris2169e172014-09-23 18:31:45 -070059$(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 Ferris2146d142014-05-01 18:10:51 -070060endif
61include $(cpu_variant_mk)
Colin Crossa6b6ed52015-02-04 17:38:27 -080062libc_common_additional_dependencies += $(cpu_variant_mk)
Christopher Ferris2146d142014-05-01 18:10:51 -070063
64cpu_variant_mk :=