Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 1 | # 32-bit mips. |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 2 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 3 | # |
| 4 | # Various kinds of LP32 cruft. |
| 5 | # |
| 6 | |
| 7 | libc_bionic_src_files_mips += \ |
| 8 | bionic/mmap.cpp \ |
| 9 | |
| 10 | libc_common_src_files_mips += \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 11 | bionic/legacy_32_bit_support.cpp \ |
| 12 | bionic/ndk_cruft.cpp \ |
Elliott Hughes | 8d77bce | 2014-04-22 13:55:58 -0700 | [diff] [blame] | 13 | bionic/time64.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 14 | |
| 15 | libc_netbsd_src_files_mips += \ |
| 16 | upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ |
| 17 | |
| 18 | libc_openbsd_src_files_mips += \ |
Dan Albert | 8e613cf | 2014-06-11 14:17:35 -0700 | [diff] [blame] | 19 | upstream-openbsd/lib/libc/stdio/putw.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 20 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 21 | # |
| 22 | # Default implementations of functions that are commonly optimized. |
| 23 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 24 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 25 | libc_bionic_src_files_mips += \ |
| 26 | bionic/__memcpy_chk.cpp \ |
| 27 | bionic/__memset_chk.cpp \ |
| 28 | bionic/__strcpy_chk.cpp \ |
| 29 | bionic/__strcat_chk.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 30 | bionic/memchr.c \ |
| 31 | bionic/memcmp.c \ |
| 32 | bionic/memmove.c \ |
| 33 | bionic/memrchr.c \ |
| 34 | bionic/strchr.cpp \ |
| 35 | bionic/strnlen.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 36 | bionic/strrchr.cpp \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 37 | |
| 38 | libc_freebsd_src_files_mips += \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 39 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 40 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 41 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 42 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 43 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 44 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 45 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 46 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 47 | |
| 48 | libc_openbsd_src_files_mips += \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 49 | upstream-openbsd/lib/libc/string/bcopy.c \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 50 | upstream-openbsd/lib/libc/string/stpcpy.c \ |
| 51 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 52 | upstream-openbsd/lib/libc/string/strcat.c \ |
| 53 | upstream-openbsd/lib/libc/string/strcmp.c \ |
| 54 | upstream-openbsd/lib/libc/string/strcpy.c \ |
| 55 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 56 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
| 57 | upstream-openbsd/lib/libc/string/strncat.c \ |
| 58 | upstream-openbsd/lib/libc/string/strncmp.c \ |
| 59 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 60 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 61 | # |
| 62 | # Inherently architecture-specific code. |
| 63 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 64 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 65 | libc_bionic_src_files_mips += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 66 | arch-mips/bionic/__bionic_clone.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 67 | arch-mips/bionic/bzero.S \ |
Elliott Hughes | 14b467e | 2013-10-09 16:40:33 -0700 | [diff] [blame] | 68 | arch-mips/bionic/cacheflush.cpp \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 69 | arch-mips/bionic/_exit_with_stack_teardown.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 70 | arch-mips/bionic/setjmp.S \ |
Chris Dearman | effaa78 | 2013-11-13 14:15:31 -0800 | [diff] [blame] | 71 | arch-mips/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 72 | arch-mips/bionic/vfork.S \ |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 73 | |
| 74 | ifndef ARCH_MIPS_REV6 |
| 75 | libc_bionic_src_files_mips += \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 76 | arch-mips/string/memcpy.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 77 | arch-mips/string/memset.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 78 | arch-mips/string/mips_strlen.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 79 | |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 80 | else |
| 81 | libc_bionic_src_files_mips += \ |
| 82 | bionic/memcpy.cpp \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 83 | bionic/memset.c \ |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 84 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 85 | libc_openbsd_src_files_mips += \ |
| 86 | upstream-openbsd/lib/libc/string/strlen.c \ |
| 87 | |
| 88 | endif |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 89 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 90 | libc_crt_target_cflags_mips := \ |
| 91 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
| 92 | -I$(LOCAL_PATH)/arch-mips/include |
| 93 | |
| 94 | libc_crt_target_crtbegin_file_mips := \ |
| 95 | $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c |
| 96 | |
| 97 | libc_crt_target_crtbegin_so_file_mips := \ |
| 98 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 99 | |
| 100 | libc_crt_target_so_cflags_mips := \ |
| 101 | -fPIC |
Duane Sand | f541650 | 2014-07-16 12:29:34 -0700 | [diff] [blame] | 102 | |
| 103 | libc_crt_target_ldflags_mips := \ |
| 104 | -melf32ltsmip |