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