Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 1 | # mips64 specific configs |
| 2 | |
| 3 | libc_common_src_files_mips64 := \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 4 | bionic/index.cpp \ |
| 5 | bionic/memchr.c \ |
| 6 | bionic/memcmp.c \ |
| 7 | bionic/memmove.c \ |
| 8 | bionic/memrchr.c \ |
| 9 | bionic/strchr.cpp \ |
| 10 | bionic/strnlen.c \ |
| 11 | bionic/strrchr.cpp \ |
| 12 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 13 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 14 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 15 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 16 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 17 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 18 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
| 19 | upstream-openbsd/lib/libc/string/bcopy.c \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame^] | 20 | upstream-openbsd/lib/libc/string/stpcpy.c \ |
| 21 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 22 | upstream-openbsd/lib/libc/string/strcat.c \ |
| 23 | upstream-openbsd/lib/libc/string/strcmp.c \ |
| 24 | upstream-openbsd/lib/libc/string/strcpy.c \ |
| 25 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 26 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
| 27 | upstream-openbsd/lib/libc/string/strlen.c \ |
| 28 | upstream-openbsd/lib/libc/string/strncat.c \ |
| 29 | upstream-openbsd/lib/libc/string/strncmp.c \ |
| 30 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 31 | |
| 32 | # Fortify implementations of libc functions. |
| 33 | libc_common_src_files_mips64 += \ |
| 34 | bionic/__memcpy_chk.cpp \ |
| 35 | bionic/__memset_chk.cpp \ |
| 36 | bionic/__strcpy_chk.cpp \ |
| 37 | bionic/__strcat_chk.cpp \ |
| 38 | |
| 39 | |
| 40 | ########################################## |
| 41 | ### CPU specific source files |
| 42 | libc_bionic_src_files_mips64 := \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 43 | arch-mips64/bionic/__bionic_clone.S \ |
| 44 | arch-mips64/bionic/bzero.S \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 45 | arch-mips64/bionic/_exit_with_stack_teardown.S \ |
| 46 | arch-mips64/bionic/futex_mips.S \ |
| 47 | arch-mips64/bionic/__get_sp.S \ |
| 48 | arch-mips64/bionic/getdents.cpp \ |
| 49 | arch-mips64/bionic/memcmp16.S \ |
| 50 | arch-mips64/bionic/_setjmp.S \ |
| 51 | arch-mips64/bionic/setjmp.S \ |
| 52 | arch-mips64/bionic/__set_tls.c \ |
| 53 | arch-mips64/bionic/sigsetjmp.S \ |
| 54 | arch-mips64/bionic/syscall.S \ |
| 55 | arch-mips64/bionic/vfork.S \ |
| 56 | |
| 57 | # FIXME TODO |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 58 | ## libc_bionic_src_files_mips64 += arch-mips64/string/memcpy.S |
| 59 | ## libc_bionic_src_files_mips64 += arch-mips64/string/memset.S |
Andrew Hsieh | 4e3ce11 | 2014-04-09 02:16:03 +0800 | [diff] [blame] | 60 | libc_bionic_src_files_mips64 += bionic/memcpy.cpp |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 61 | libc_bionic_src_files_mips64 += bionic/memset.c |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 62 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 63 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 64 | libc_crt_target_cflags_mips64 := \ |
| 65 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
Elliott Hughes | c345caa | 2014-02-20 11:57:25 -0800 | [diff] [blame] | 66 | -I$(LOCAL_PATH)/arch-mips64/include |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 67 | |
| 68 | libc_crt_target_crtbegin_file_mips64 := \ |
Elliott Hughes | c345caa | 2014-02-20 11:57:25 -0800 | [diff] [blame] | 69 | $(LOCAL_PATH)/arch-mips64/bionic/crtbegin.c |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 70 | |
| 71 | libc_crt_target_crtbegin_so_file_mips64 := \ |
| 72 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 73 | |
| 74 | libc_crt_target_so_cflags_mips64 := \ |
| 75 | -fPIC |
| 76 | |
| 77 | libc_crt_target_ldflags_mips64 := \ |
| 78 | -melf64ltsmip |