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 += \ |
| 15 | bionic/memchr.c \ |
| 16 | bionic/memcmp.c \ |
| 17 | bionic/memmove.c \ |
| 18 | bionic/memrchr.c \ |
| 19 | bionic/strchr.cpp \ |
| 20 | bionic/strnlen.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 21 | bionic/strrchr.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 22 | 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 \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 29 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 30 | upstream-openbsd/lib/libc/string/bcopy.c \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 31 | upstream-openbsd/lib/libc/string/stpcpy.c \ |
| 32 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 33 | upstream-openbsd/lib/libc/string/strcat.c \ |
| 34 | upstream-openbsd/lib/libc/string/strcmp.c \ |
| 35 | upstream-openbsd/lib/libc/string/strcpy.c \ |
| 36 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 37 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
| 38 | upstream-openbsd/lib/libc/string/strncat.c \ |
| 39 | upstream-openbsd/lib/libc/string/strncmp.c \ |
| 40 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 41 | |
| 42 | # Fortify implementations of libc functions. |
| 43 | libc_common_src_files_mips += \ |
| 44 | bionic/__memcpy_chk.cpp \ |
| 45 | bionic/__memset_chk.cpp \ |
| 46 | bionic/__strcpy_chk.cpp \ |
| 47 | bionic/__strcat_chk.cpp \ |
| 48 | |
| 49 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 50 | ########################################## |
| 51 | ### CPU specific source files |
| 52 | libc_bionic_src_files_mips += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 53 | arch-mips/bionic/__bionic_clone.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 54 | arch-mips/bionic/bzero.S \ |
Elliott Hughes | 14b467e | 2013-10-09 16:40:33 -0700 | [diff] [blame] | 55 | arch-mips/bionic/cacheflush.cpp \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 56 | arch-mips/bionic/_exit_with_stack_teardown.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 57 | arch-mips/bionic/_setjmp.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 58 | arch-mips/bionic/setjmp.S \ |
| 59 | arch-mips/bionic/sigsetjmp.S \ |
Chris Dearman | effaa78 | 2013-11-13 14:15:31 -0800 | [diff] [blame] | 60 | arch-mips/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 61 | arch-mips/bionic/vfork.S \ |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 62 | |
| 63 | ifndef ARCH_MIPS_REV6 |
| 64 | libc_bionic_src_files_mips += \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 65 | arch-mips/string/memcpy.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 66 | arch-mips/string/memset.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 67 | arch-mips/string/mips_strlen.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 68 | |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 69 | else |
| 70 | libc_bionic_src_files_mips += \ |
| 71 | bionic/memcpy.cpp \ |
| 72 | bionic/memset.c |
| 73 | libc_common_src_files_mips += \ |
| 74 | upstream-openbsd/lib/libc/string/strlen.c |
| 75 | endif |
| 76 | |
Dan Albert | c82c0b7 | 2014-06-16 16:52:27 -0700 | [diff] [blame] | 77 | libc_netbsd_src_files_mips := \ |
| 78 | upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 79 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 80 | libc_crt_target_cflags_mips := \ |
| 81 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
| 82 | -I$(LOCAL_PATH)/arch-mips/include |
| 83 | |
| 84 | libc_crt_target_crtbegin_file_mips := \ |
| 85 | $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c |
| 86 | |
| 87 | libc_crt_target_crtbegin_so_file_mips := \ |
| 88 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 89 | |
| 90 | libc_crt_target_so_cflags_mips := \ |
| 91 | -fPIC |
Duane Sand | f541650 | 2014-07-16 12:29:34 -0700 | [diff] [blame] | 92 | |
| 93 | libc_crt_target_ldflags_mips := \ |
| 94 | -melf32ltsmip |