blob: d558baa00c75b7ae728a6072ba185b13a7ac525a [file] [log] [blame]
Elliott Hughes7c02d942014-09-16 19:06:31 -07001# 32-bit mips.
Ying Wangf25d6772014-01-23 15:17:50 -08002
Elliott Hughes7c02d942014-09-16 19:06:31 -07003#
4# Various kinds of LP32 cruft.
5#
6
7libc_bionic_src_files_mips += \
8 bionic/mmap.cpp \
9
10libc_common_src_files_mips += \
Ying Wangf25d6772014-01-23 15:17:50 -080011 bionic/legacy_32_bit_support.cpp \
12 bionic/ndk_cruft.cpp \
Elliott Hughes8d77bce2014-04-22 13:55:58 -070013 bionic/time64.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070014
15libc_netbsd_src_files_mips += \
16 upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
17
18libc_openbsd_src_files_mips += \
Dan Albert8e613cf2014-06-11 14:17:35 -070019 upstream-openbsd/lib/libc/stdio/putw.c \
Ying Wangf25d6772014-01-23 15:17:50 -080020
Elliott Hughes7c02d942014-09-16 19:06:31 -070021#
22# Default implementations of functions that are commonly optimized.
23#
Ying Wangf25d6772014-01-23 15:17:50 -080024
Elliott Hughes7c02d942014-09-16 19:06:31 -070025libc_bionic_src_files_mips += \
26 bionic/__memcpy_chk.cpp \
27 bionic/__memset_chk.cpp \
28 bionic/__strcpy_chk.cpp \
29 bionic/__strcat_chk.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080030 bionic/memchr.c \
31 bionic/memcmp.c \
32 bionic/memmove.c \
33 bionic/memrchr.c \
34 bionic/strchr.cpp \
35 bionic/strnlen.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080036 bionic/strrchr.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070037
38libc_freebsd_src_files_mips += \
Ying Wangf25d6772014-01-23 15:17:50 -080039 upstream-freebsd/lib/libc/string/wcscat.c \
40 upstream-freebsd/lib/libc/string/wcschr.c \
41 upstream-freebsd/lib/libc/string/wcscmp.c \
42 upstream-freebsd/lib/libc/string/wcscpy.c \
43 upstream-freebsd/lib/libc/string/wcslen.c \
44 upstream-freebsd/lib/libc/string/wcsrchr.c \
45 upstream-freebsd/lib/libc/string/wmemcmp.c \
Bernhard Rosenkraenzer6f2bde32014-05-23 17:44:18 +020046 upstream-freebsd/lib/libc/string/wmemmove.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070047
48libc_openbsd_src_files_mips += \
Elliott Hughes53e43292014-02-24 18:00:43 -080049 upstream-openbsd/lib/libc/string/bcopy.c \
Varvara Rainchik5a922842014-04-24 15:41:20 +040050 upstream-openbsd/lib/libc/string/stpcpy.c \
51 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080052 upstream-openbsd/lib/libc/string/strcat.c \
53 upstream-openbsd/lib/libc/string/strcmp.c \
54 upstream-openbsd/lib/libc/string/strcpy.c \
55 upstream-openbsd/lib/libc/string/strlcat.c \
56 upstream-openbsd/lib/libc/string/strlcpy.c \
57 upstream-openbsd/lib/libc/string/strncat.c \
58 upstream-openbsd/lib/libc/string/strncmp.c \
59 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080060
Elliott Hughes7c02d942014-09-16 19:06:31 -070061#
62# Inherently architecture-specific code.
63#
Ying Wangf25d6772014-01-23 15:17:50 -080064
Ying Wangf25d6772014-01-23 15:17:50 -080065libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080066 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080067 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070068 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070069 arch-mips/bionic/_exit_with_stack_teardown.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080070 arch-mips/bionic/setjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080071 arch-mips/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000072 arch-mips/bionic/vfork.S \
Duane Sandbc5a3ec2014-07-10 15:24:27 -070073
74ifndef ARCH_MIPS_REV6
75libc_bionic_src_files_mips += \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080076 arch-mips/string/memcpy.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070077 arch-mips/string/memset.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080078 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080079
Duane Sandbc5a3ec2014-07-10 15:24:27 -070080else
81libc_bionic_src_files_mips += \
82 bionic/memcpy.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070083 bionic/memset.c \
Duane Sandbc5a3ec2014-07-10 15:24:27 -070084
Elliott Hughes7c02d942014-09-16 19:06:31 -070085libc_openbsd_src_files_mips += \
86 upstream-openbsd/lib/libc/string/strlen.c \
87
88endif
Ying Wangf25d6772014-01-23 15:17:50 -080089
Ying Wangf25d6772014-01-23 15:17:50 -080090libc_crt_target_cflags_mips := \
91 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
92 -I$(LOCAL_PATH)/arch-mips/include
93
94libc_crt_target_crtbegin_file_mips := \
95 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
96
97libc_crt_target_crtbegin_so_file_mips := \
98 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
99
100libc_crt_target_so_cflags_mips := \
101 -fPIC
Duane Sandf5416502014-07-16 12:29:34 -0700102
103libc_crt_target_ldflags_mips := \
104 -melf32ltsmip