blob: 4e007e50cc1865377a1f4f801bc07e0ca9b239de [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 \
7
8# These are shared by all the 32-bit targets, but not the 64-bit ones.
9libc_bionic_src_files_mips += \
10 bionic/mmap.cpp
11
12libc_common_src_files_mips += \
13 bionic/memchr.c \
14 bionic/memcmp.c \
15 bionic/memmove.c \
16 bionic/memrchr.c \
17 bionic/strchr.cpp \
18 bionic/strnlen.c \
19 string/bcopy.c \
20 string/index.c \
21 string/strcat.c \
22 string/strcmp.c \
23 string/strcpy.c \
24 string/strlcat.c \
25 string/strlcpy.c \
26 string/strncat.c \
27 string/strncmp.c \
28 string/strncpy.c \
29 string/strrchr.c \
30 upstream-freebsd/lib/libc/string/wcscat.c \
31 upstream-freebsd/lib/libc/string/wcschr.c \
32 upstream-freebsd/lib/libc/string/wcscmp.c \
33 upstream-freebsd/lib/libc/string/wcscpy.c \
34 upstream-freebsd/lib/libc/string/wcslen.c \
35 upstream-freebsd/lib/libc/string/wcsrchr.c \
36 upstream-freebsd/lib/libc/string/wmemcmp.c \
37
38# Fortify implementations of libc functions.
39libc_common_src_files_mips += \
40 bionic/__memcpy_chk.cpp \
41 bionic/__memset_chk.cpp \
42 bionic/__strcpy_chk.cpp \
43 bionic/__strcat_chk.cpp \
44
45
46# cflags
47ifneq ($(ARCH_MIPS_HAS_FPU),true)
48libc_common_cflags_mips := \
49 -DSOFTFLOAT
50endif
51libc_common_cflags_mips += \
52 -fstrict-aliasing
53
54##########################################
55### CPU specific source files
56libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080057 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080058 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070059 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070060 arch-mips/bionic/_exit_with_stack_teardown.S \
61 arch-mips/bionic/futex_mips.S \
62 arch-mips/bionic/__get_sp.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080063 arch-mips/bionic/memcmp16.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070064 arch-mips/bionic/_setjmp.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080065 arch-mips/bionic/setjmp.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070066 arch-mips/bionic/__set_tls.c \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080067 arch-mips/bionic/sigsetjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080068 arch-mips/bionic/syscall.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080069 arch-mips/bionic/vfork.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080070 arch-mips/string/memcpy.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070071 arch-mips/string/memset.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080072 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080073
74# These are used by the static and dynamic versions of the libc
75# respectively.
76libc_arch_static_src_files_mips :=
77
78libc_arch_dynamic_src_files_mips :=
79
80
81##########################################
82# crt-related
83libc_crt_target_cflags_mips := \
84 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
85 -I$(LOCAL_PATH)/arch-mips/include
86
87libc_crt_target_crtbegin_file_mips := \
88 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
89
90libc_crt_target_crtbegin_so_file_mips := \
91 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
92
93libc_crt_target_so_cflags_mips := \
94 -fPIC