blob: 7f36635fc147f53d8d760911fd010685da840964 [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 += \
Elliott Hughese6099092015-01-27 11:09:27 -080026 arch-mips/string/memcmp.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070027 bionic/__memcpy_chk.cpp \
28 bionic/__memset_chk.cpp \
29 bionic/__strcpy_chk.cpp \
30 bionic/__strcat_chk.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080031 bionic/memchr.c \
Ying Wangf25d6772014-01-23 15:17:50 -080032 bionic/memrchr.c \
33 bionic/strchr.cpp \
34 bionic/strnlen.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080035 bionic/strrchr.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070036
37libc_freebsd_src_files_mips += \
Ying Wangf25d6772014-01-23 15:17:50 -080038 upstream-freebsd/lib/libc/string/wcscat.c \
39 upstream-freebsd/lib/libc/string/wcschr.c \
40 upstream-freebsd/lib/libc/string/wcscmp.c \
41 upstream-freebsd/lib/libc/string/wcscpy.c \
42 upstream-freebsd/lib/libc/string/wcslen.c \
43 upstream-freebsd/lib/libc/string/wcsrchr.c \
44 upstream-freebsd/lib/libc/string/wmemcmp.c \
Bernhard Rosenkraenzer6f2bde32014-05-23 17:44:18 +020045 upstream-freebsd/lib/libc/string/wmemmove.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070046
47libc_openbsd_src_files_mips += \
Elliott Hughes76f89162015-01-26 13:34:58 -080048 upstream-openbsd/lib/libc/string/memmove.c \
Varvara Rainchik5a922842014-04-24 15:41:20 +040049 upstream-openbsd/lib/libc/string/stpcpy.c \
50 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080051 upstream-openbsd/lib/libc/string/strcat.c \
52 upstream-openbsd/lib/libc/string/strcmp.c \
53 upstream-openbsd/lib/libc/string/strcpy.c \
54 upstream-openbsd/lib/libc/string/strlcat.c \
55 upstream-openbsd/lib/libc/string/strlcpy.c \
56 upstream-openbsd/lib/libc/string/strncat.c \
57 upstream-openbsd/lib/libc/string/strncmp.c \
58 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080059
Elliott Hughes7c02d942014-09-16 19:06:31 -070060#
61# Inherently architecture-specific code.
62#
Ying Wangf25d6772014-01-23 15:17:50 -080063
Ying Wangf25d6772014-01-23 15:17:50 -080064libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080065 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080066 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070067 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070068 arch-mips/bionic/_exit_with_stack_teardown.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080069 arch-mips/bionic/setjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080070 arch-mips/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000071 arch-mips/bionic/vfork.S \
Duane Sandbc5a3ec2014-07-10 15:24:27 -070072
73ifndef ARCH_MIPS_REV6
74libc_bionic_src_files_mips += \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080075 arch-mips/string/memcpy.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070076 arch-mips/string/memset.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080077 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080078
Duane Sandbc5a3ec2014-07-10 15:24:27 -070079else
80libc_bionic_src_files_mips += \
Elliott Hughese6099092015-01-27 11:09:27 -080081 arch-mips/string/memcpy.c \
82 arch-mips/string/memset.c \
83 arch-mips/string/strlen.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070084
85endif
Ying Wangf25d6772014-01-23 15:17:50 -080086
Ying Wangf25d6772014-01-23 15:17:50 -080087libc_crt_target_cflags_mips := \
88 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
89 -I$(LOCAL_PATH)/arch-mips/include
90
91libc_crt_target_crtbegin_file_mips := \
92 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
93
94libc_crt_target_crtbegin_so_file_mips := \
95 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
96
97libc_crt_target_so_cflags_mips := \
98 -fPIC
Duane Sandf5416502014-07-16 12:29:34 -070099
100libc_crt_target_ldflags_mips := \
101 -melf32ltsmip