blob: 31a1f32fd99a1bf7b8f53236eb24af055124f284 [file] [log] [blame]
Ying Wangf25d6772014-01-23 15:17:50 -08001# mips specific configs
2
3# These are shared by all the 32-bit targets, but not the 64-bit ones.
4libc_common_src_files_mips := \
5 bionic/legacy_32_bit_support.cpp \
6 bionic/ndk_cruft.cpp \
Elliott Hughes8d77bce2014-04-22 13:55:58 -07007 bionic/time64.c \
Dan Albert8e613cf2014-06-11 14:17:35 -07008 upstream-openbsd/lib/libc/stdio/putw.c \
Ying Wangf25d6772014-01-23 15:17:50 -08009
10# These are shared by all the 32-bit targets, but not the 64-bit ones.
11libc_bionic_src_files_mips += \
12 bionic/mmap.cpp
13
14libc_common_src_files_mips += \
15 bionic/memchr.c \
16 bionic/memcmp.c \
17 bionic/memmove.c \
18 bionic/memrchr.c \
19 bionic/strchr.cpp \
20 bionic/strnlen.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080021 bionic/strrchr.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080022 upstream-freebsd/lib/libc/string/wcscat.c \
23 upstream-freebsd/lib/libc/string/wcschr.c \
24 upstream-freebsd/lib/libc/string/wcscmp.c \
25 upstream-freebsd/lib/libc/string/wcscpy.c \
26 upstream-freebsd/lib/libc/string/wcslen.c \
27 upstream-freebsd/lib/libc/string/wcsrchr.c \
28 upstream-freebsd/lib/libc/string/wmemcmp.c \
Bernhard Rosenkraenzer6f2bde32014-05-23 17:44:18 +020029 upstream-freebsd/lib/libc/string/wmemmove.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080030 upstream-openbsd/lib/libc/string/bcopy.c \
Varvara Rainchik5a922842014-04-24 15:41:20 +040031 upstream-openbsd/lib/libc/string/stpcpy.c \
32 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080033 upstream-openbsd/lib/libc/string/strcat.c \
34 upstream-openbsd/lib/libc/string/strcmp.c \
35 upstream-openbsd/lib/libc/string/strcpy.c \
36 upstream-openbsd/lib/libc/string/strlcat.c \
37 upstream-openbsd/lib/libc/string/strlcpy.c \
38 upstream-openbsd/lib/libc/string/strncat.c \
39 upstream-openbsd/lib/libc/string/strncmp.c \
40 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080041
42# Fortify implementations of libc functions.
43libc_common_src_files_mips += \
44 bionic/__memcpy_chk.cpp \
45 bionic/__memset_chk.cpp \
46 bionic/__strcpy_chk.cpp \
47 bionic/__strcat_chk.cpp \
48
49
Ying Wangf25d6772014-01-23 15:17:50 -080050##########################################
51### CPU specific source files
52libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080053 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080054 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070055 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070056 arch-mips/bionic/_exit_with_stack_teardown.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070057 arch-mips/bionic/_setjmp.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080058 arch-mips/bionic/setjmp.S \
59 arch-mips/bionic/sigsetjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080060 arch-mips/bionic/syscall.S \
Dan Albert5386a742014-08-05 20:53:31 +000061 arch-mips/bionic/vfork.S \
Duane Sandcd541952014-07-10 15:24:27 -070062
63ifndef ARCH_MIPS_REV6
64libc_bionic_src_files_mips += \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080065 arch-mips/string/memcpy.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070066 arch-mips/string/memset.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080067 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080068
Duane Sandcd541952014-07-10 15:24:27 -070069else
70libc_bionic_src_files_mips += \
71 bionic/memcpy.cpp \
72 bionic/memset.c
73libc_common_src_files_mips += \
74 upstream-openbsd/lib/libc/string/strlen.c
75endif
76
Dan Albertc82c0b72014-06-16 16:52:27 -070077libc_netbsd_src_files_mips := \
78 upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
Ying Wangf25d6772014-01-23 15:17:50 -080079
Ying Wangf25d6772014-01-23 15:17:50 -080080libc_crt_target_cflags_mips := \
81 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
82 -I$(LOCAL_PATH)/arch-mips/include
83
84libc_crt_target_crtbegin_file_mips := \
85 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
86
87libc_crt_target_crtbegin_so_file_mips := \
88 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
89
90libc_crt_target_so_cflags_mips := \
91 -fPIC
Duane Sand5d7775c2014-07-16 12:29:34 -070092
93libc_crt_target_ldflags_mips := \
94 -melf32ltsmip