blob: cdb2777b17761946b7fbc279fb1691cd37a06140 [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 += \
8 bionic/__memcpy_chk.cpp \
9 bionic/__memset_chk.cpp \
10 bionic/__strcpy_chk.cpp \
11 bionic/__strcat_chk.cpp \
Elliott Hughes53e43292014-02-24 18:00:43 -080012 bionic/memrchr.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080013 bionic/strrchr.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070014
15libc_freebsd_src_files_arm64 += \
Ying Wangf25d6772014-01-23 15:17:50 -080016 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 Hughes7c02d942014-09-16 19:06:31 -070023
24libc_openbsd_src_files_arm64 += \
Varvara Rainchik5a922842014-04-24 15:41:20 +040025 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080026 upstream-openbsd/lib/libc/string/strcat.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080027 upstream-openbsd/lib/libc/string/strlcat.c \
28 upstream-openbsd/lib/libc/string/strlcpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080029 upstream-openbsd/lib/libc/string/strncat.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080030 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080031
Elliott Hughes7c02d942014-09-16 19:06:31 -070032#
33# Inherently architecture-specific code.
34#
Ying Wangf25d6772014-01-23 15:17:50 -080035
Elliott Hughes7c02d942014-09-16 19:06:31 -070036libc_bionic_src_files_arm64 += \
Colin Crossd1973ca2014-01-21 19:50:58 -080037 arch-arm64/bionic/__bionic_clone.S \
Colin Crossd1973ca2014-01-21 19:50:58 -080038 arch-arm64/bionic/_exit_with_stack_teardown.S \
Colin Crossd1973ca2014-01-21 19:50:58 -080039 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 Albert6a918872014-08-05 20:53:31 +000044 arch-arm64/bionic/vfork.S \
Ying Wangf25d6772014-01-23 15:17:50 -080045
Ying Wangf25d6772014-01-23 15:17:50 -080046
Ying Wangf25d6772014-01-23 15:17:50 -080047libc_crt_target_cflags_arm64 := \
48 -I$(LOCAL_PATH)/arch-arm64/include
49
50libc_crt_target_crtbegin_file_arm64 := \
51 $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c
52
53libc_crt_target_crtbegin_so_file_arm64 := \
54 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
Bernhard Rosenkraenzer7e4fa562014-03-05 11:40:57 +010055
Christopher Ferris2146d142014-05-01 18:10:51 -070056## CPU variant specific source files
57ifeq ($(strip $(TARGET_CPU_VARIANT)),)
58 $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined)
59endif
60cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
61ifeq ($(wildcard $(cpu_variant_mk)),)
Christopher Ferris2169e172014-09-23 18:31:45 -070062$(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 -070063endif
64include $(cpu_variant_mk)
65libc_common_additional_dependencies += $(cpu_variank_mk)
66
67cpu_variant_mk :=