blob: 53fa22359d1eb5904b9ad9636aea951c7c80f90d [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 \
Ying Wangf25d6772014-01-23 15:17:50 -08008
9# These are shared by all the 32-bit targets, but not the 64-bit ones.
10libc_bionic_src_files_mips += \
11 bionic/mmap.cpp
12
13libc_common_src_files_mips += \
Elliott Hughes53e43292014-02-24 18:00:43 -080014 bionic/index.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080015 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 \
Elliott Hughes53e43292014-02-24 18:00:43 -080029 upstream-openbsd/lib/libc/string/bcopy.c \
30 upstream-openbsd/lib/libc/string/strcat.c \
31 upstream-openbsd/lib/libc/string/strcmp.c \
32 upstream-openbsd/lib/libc/string/strcpy.c \
33 upstream-openbsd/lib/libc/string/strlcat.c \
34 upstream-openbsd/lib/libc/string/strlcpy.c \
35 upstream-openbsd/lib/libc/string/strncat.c \
36 upstream-openbsd/lib/libc/string/strncmp.c \
37 upstream-openbsd/lib/libc/string/strncpy.c \
Ying Wangf25d6772014-01-23 15:17:50 -080038
39# Fortify implementations of libc functions.
40libc_common_src_files_mips += \
41 bionic/__memcpy_chk.cpp \
42 bionic/__memset_chk.cpp \
43 bionic/__strcpy_chk.cpp \
44 bionic/__strcat_chk.cpp \
45
46
Ying Wangf25d6772014-01-23 15:17:50 -080047ifneq ($(ARCH_MIPS_HAS_FPU),true)
48libc_common_cflags_mips := \
49 -DSOFTFLOAT
50endif
Ying Wangf25d6772014-01-23 15:17:50 -080051
52##########################################
53### CPU specific source files
54libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080055 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080056 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070057 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070058 arch-mips/bionic/_exit_with_stack_teardown.S \
59 arch-mips/bionic/futex_mips.S \
60 arch-mips/bionic/__get_sp.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080061 arch-mips/bionic/memcmp16.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070062 arch-mips/bionic/_setjmp.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080063 arch-mips/bionic/setjmp.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070064 arch-mips/bionic/__set_tls.c \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080065 arch-mips/bionic/sigsetjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080066 arch-mips/bionic/syscall.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080067 arch-mips/bionic/vfork.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080068 arch-mips/string/memcpy.S \
Elliott Hughesbf425682013-10-24 16:29:40 -070069 arch-mips/string/memset.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080070 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080071
Ying Wangf25d6772014-01-23 15:17:50 -080072
Ying Wangf25d6772014-01-23 15:17:50 -080073libc_crt_target_cflags_mips := \
74 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
75 -I$(LOCAL_PATH)/arch-mips/include
76
77libc_crt_target_crtbegin_file_mips := \
78 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
79
80libc_crt_target_crtbegin_so_file_mips := \
81 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
82
83libc_crt_target_so_cflags_mips := \
84 -fPIC