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 | # |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 4 | # Default implementations of functions that are commonly optimized. |
| 5 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 6 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 7 | libc_bionic_src_files_mips += \ |
Elliott Hughes | e609909 | 2015-01-27 11:09:27 -0800 | [diff] [blame] | 8 | arch-mips/string/memcmp.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 9 | bionic/__memcpy_chk.cpp \ |
| 10 | bionic/__memset_chk.cpp \ |
| 11 | bionic/__strcpy_chk.cpp \ |
| 12 | bionic/__strcat_chk.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 13 | bionic/strchr.cpp \ |
| 14 | bionic/strnlen.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 15 | bionic/strrchr.cpp \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 16 | |
| 17 | libc_freebsd_src_files_mips += \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 18 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 19 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 20 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 21 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 22 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 23 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 24 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 25 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 26 | |
| 27 | libc_openbsd_src_files_mips += \ |
Elliott Hughes | 41ef902 | 2015-02-14 13:21:22 -0800 | [diff] [blame] | 28 | upstream-openbsd/lib/libc/string/memchr.c \ |
Elliott Hughes | 76f8916 | 2015-01-26 13:34:58 -0800 | [diff] [blame] | 29 | upstream-openbsd/lib/libc/string/memmove.c \ |
Elliott Hughes | 41ef902 | 2015-02-14 13:21:22 -0800 | [diff] [blame] | 30 | upstream-openbsd/lib/libc/string/memrchr.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 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 42 | # |
| 43 | # Inherently architecture-specific code. |
| 44 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 45 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 46 | libc_bionic_src_files_mips += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 47 | arch-mips/bionic/__bionic_clone.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 48 | arch-mips/bionic/bzero.S \ |
Elliott Hughes | 14b467e | 2013-10-09 16:40:33 -0700 | [diff] [blame] | 49 | arch-mips/bionic/cacheflush.cpp \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 50 | arch-mips/bionic/_exit_with_stack_teardown.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 51 | arch-mips/bionic/setjmp.S \ |
Chris Dearman | effaa78 | 2013-11-13 14:15:31 -0800 | [diff] [blame] | 52 | arch-mips/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 53 | arch-mips/bionic/vfork.S \ |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 54 | |
| 55 | ifndef ARCH_MIPS_REV6 |
| 56 | libc_bionic_src_files_mips += \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 57 | arch-mips/string/memcpy.S \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 58 | arch-mips/string/memset.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 59 | arch-mips/string/mips_strlen.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 60 | |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 61 | else |
| 62 | libc_bionic_src_files_mips += \ |
Elliott Hughes | e609909 | 2015-01-27 11:09:27 -0800 | [diff] [blame] | 63 | arch-mips/string/memcpy.c \ |
| 64 | arch-mips/string/memset.c \ |
| 65 | arch-mips/string/strlen.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 66 | |
| 67 | endif |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 68 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 69 | libc_crt_target_cflags_mips := \ |
| 70 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
| 71 | -I$(LOCAL_PATH)/arch-mips/include |
| 72 | |
| 73 | libc_crt_target_crtbegin_file_mips := \ |
| 74 | $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c |
| 75 | |
| 76 | libc_crt_target_crtbegin_so_file_mips := \ |
| 77 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 78 | |
| 79 | libc_crt_target_so_cflags_mips := \ |
| 80 | -fPIC |
Duane Sand | f541650 | 2014-07-16 12:29:34 -0700 | [diff] [blame] | 81 | |
| 82 | libc_crt_target_ldflags_mips := \ |
| 83 | -melf32ltsmip |