blob: 5c40faacdf103ebe04245eed68a87e7f486b7d78 [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 \
Elliott Hughes36f451a2014-09-10 15:20:40 -070039 arch-arm64/bionic/__restore_rt.S \
Colin Crossd1973ca2014-01-21 19:50:58 -080040 arch-arm64/bionic/_setjmp.S \
41 arch-arm64/bionic/setjmp.S \
42 arch-arm64/bionic/__set_tls.c \
43 arch-arm64/bionic/sigsetjmp.S \
44 arch-arm64/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000045 arch-arm64/bionic/vfork.S \
Ying Wangf25d6772014-01-23 15:17:50 -080046
Ying Wangf25d6772014-01-23 15:17:50 -080047
Ying Wangf25d6772014-01-23 15:17:50 -080048libc_crt_target_cflags_arm64 := \
49 -I$(LOCAL_PATH)/arch-arm64/include
50
51libc_crt_target_crtbegin_file_arm64 := \
52 $(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c
53
54libc_crt_target_crtbegin_so_file_arm64 := \
55 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
Bernhard Rosenkraenzer7e4fa562014-03-05 11:40:57 +010056
Christopher Ferris2146d142014-05-01 18:10:51 -070057## CPU variant specific source files
58ifeq ($(strip $(TARGET_CPU_VARIANT)),)
59 $(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined)
60endif
61cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
62ifeq ($(wildcard $(cpu_variant_mk)),)
Shu Zhang0ef7a8f2014-03-17 15:15:32 +080063$(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.")
Christopher Ferris2146d142014-05-01 18:10:51 -070064endif
65include $(cpu_variant_mk)
66libc_common_additional_dependencies += $(cpu_variank_mk)
67
68cpu_variant_mk :=