Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 1 | # mips specific configs |
| 2 | |
| 3 | # These are shared by all the 32-bit targets, but not the 64-bit ones. |
| 4 | libc_common_src_files_mips := \ |
| 5 | bionic/legacy_32_bit_support.cpp \ |
| 6 | bionic/ndk_cruft.cpp \ |
Elliott Hughes | 8d77bce | 2014-04-22 13:55:58 -0700 | [diff] [blame] | 7 | bionic/time64.c \ |
Dan Albert | 8e613cf | 2014-06-11 14:17:35 -0700 | [diff] [blame^] | 8 | upstream-openbsd/lib/libc/stdio/putw.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 9 | |
| 10 | # These are shared by all the 32-bit targets, but not the 64-bit ones. |
| 11 | libc_bionic_src_files_mips += \ |
| 12 | bionic/mmap.cpp |
| 13 | |
| 14 | libc_common_src_files_mips += \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 15 | bionic/index.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 16 | bionic/memchr.c \ |
| 17 | bionic/memcmp.c \ |
| 18 | bionic/memmove.c \ |
| 19 | bionic/memrchr.c \ |
| 20 | bionic/strchr.cpp \ |
| 21 | bionic/strnlen.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 22 | bionic/strrchr.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 23 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 24 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 25 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 26 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 27 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 28 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 29 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 30 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 31 | upstream-openbsd/lib/libc/string/bcopy.c \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 32 | upstream-openbsd/lib/libc/string/stpcpy.c \ |
| 33 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 34 | upstream-openbsd/lib/libc/string/strcat.c \ |
| 35 | upstream-openbsd/lib/libc/string/strcmp.c \ |
| 36 | upstream-openbsd/lib/libc/string/strcpy.c \ |
| 37 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 38 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
| 39 | upstream-openbsd/lib/libc/string/strncat.c \ |
| 40 | upstream-openbsd/lib/libc/string/strncmp.c \ |
| 41 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 42 | |
| 43 | # Fortify implementations of libc functions. |
| 44 | libc_common_src_files_mips += \ |
| 45 | bionic/__memcpy_chk.cpp \ |
| 46 | bionic/__memset_chk.cpp \ |
| 47 | bionic/__strcpy_chk.cpp \ |
| 48 | bionic/__strcat_chk.cpp \ |
| 49 | |
| 50 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 51 | ifneq ($(ARCH_MIPS_HAS_FPU),true) |
| 52 | libc_common_cflags_mips := \ |
| 53 | -DSOFTFLOAT |
| 54 | endif |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 55 | |
| 56 | ########################################## |
| 57 | ### CPU specific source files |
| 58 | libc_bionic_src_files_mips += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 59 | arch-mips/bionic/__bionic_clone.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 60 | arch-mips/bionic/bzero.S \ |
Elliott Hughes | 14b467e | 2013-10-09 16:40:33 -0700 | [diff] [blame] | 61 | arch-mips/bionic/cacheflush.cpp \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 62 | arch-mips/bionic/_exit_with_stack_teardown.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 63 | arch-mips/bionic/__get_sp.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 64 | arch-mips/bionic/memcmp16.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 65 | arch-mips/bionic/_setjmp.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 66 | arch-mips/bionic/setjmp.S \ |
| 67 | arch-mips/bionic/sigsetjmp.S \ |
Chris Dearman | effaa78 | 2013-11-13 14:15:31 -0800 | [diff] [blame] | 68 | arch-mips/bionic/syscall.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 69 | arch-mips/string/memcpy.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 70 | arch-mips/string/memset.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 71 | arch-mips/string/mips_strlen.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 72 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 73 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 74 | libc_crt_target_cflags_mips := \ |
| 75 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
| 76 | -I$(LOCAL_PATH)/arch-mips/include |
| 77 | |
| 78 | libc_crt_target_crtbegin_file_mips := \ |
| 79 | $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c |
| 80 | |
| 81 | libc_crt_target_crtbegin_so_file_mips := \ |
| 82 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 83 | |
| 84 | libc_crt_target_so_cflags_mips := \ |
| 85 | -fPIC |