arm64.mk revision 0ef7a8fd31a7ee9571c54c17e1f42cba4cfb44ec
1# arm64 specific configs
2
3libc_common_src_files_arm64 := \
4    bionic/memchr.c \
5    bionic/__memcmp16.cpp \
6    bionic/memrchr.c \
7    bionic/strchr.cpp \
8    bionic/strrchr.cpp \
9    upstream-freebsd/lib/libc/string/wcscat.c \
10    upstream-freebsd/lib/libc/string/wcschr.c \
11    upstream-freebsd/lib/libc/string/wcscmp.c \
12    upstream-freebsd/lib/libc/string/wcscpy.c \
13    upstream-freebsd/lib/libc/string/wcslen.c \
14    upstream-freebsd/lib/libc/string/wcsrchr.c \
15    upstream-freebsd/lib/libc/string/wmemcmp.c \
16    upstream-openbsd/lib/libc/string/stpcpy.c \
17    upstream-openbsd/lib/libc/string/stpncpy.c \
18    upstream-openbsd/lib/libc/string/strcat.c \
19    upstream-openbsd/lib/libc/string/strcpy.c \
20    upstream-openbsd/lib/libc/string/strlcat.c \
21    upstream-openbsd/lib/libc/string/strlcpy.c \
22    upstream-openbsd/lib/libc/string/strncat.c \
23    upstream-openbsd/lib/libc/string/strncpy.c \
24
25# Fortify implementations of libc functions.
26libc_common_src_files_arm64 += \
27    bionic/__memcpy_chk.cpp \
28    bionic/__memset_chk.cpp \
29    bionic/__strcpy_chk.cpp \
30    bionic/__strcat_chk.cpp \
31
32##########################################
33### CPU specific source files
34libc_bionic_src_files_arm64 := \
35    arch-arm64/bionic/__bionic_clone.S \
36    arch-arm64/bionic/_exit_with_stack_teardown.S \
37    arch-arm64/bionic/__get_sp.S \
38    arch-arm64/bionic/__rt_sigreturn.S \
39    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 \
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, generic-neon, 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