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 | libc_bionic_src_files_mips += \ |
Elliott Hughes | e609909 | 2015-01-27 11:09:27 -0800 | [diff] [blame] | 4 | arch-mips/string/memcmp.c \ |
Nikola Veljkovic | 38f2eaa | 2015-05-26 12:06:09 +0200 | [diff] [blame] | 5 | arch-mips/string/memcpy.S \ |
| 6 | arch-mips/string/memset.S \ |
| 7 | arch-mips/string/strcmp.S \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 8 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 9 | # |
| 10 | # Inherently architecture-specific code. |
| 11 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 12 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 13 | libc_bionic_src_files_mips += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 14 | arch-mips/bionic/__bionic_clone.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 15 | arch-mips/bionic/bzero.S \ |
Elliott Hughes | 14b467e | 2013-10-09 16:40:33 -0700 | [diff] [blame] | 16 | arch-mips/bionic/cacheflush.cpp \ |
Elliott Hughes | bf42568 | 2013-10-24 16:29:40 -0700 | [diff] [blame] | 17 | arch-mips/bionic/_exit_with_stack_teardown.S \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 18 | arch-mips/bionic/setjmp.S \ |
Chris Dearman | effaa78 | 2013-11-13 14:15:31 -0800 | [diff] [blame] | 19 | arch-mips/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 20 | arch-mips/bionic/vfork.S \ |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 21 | |
| 22 | ifndef ARCH_MIPS_REV6 |
| 23 | libc_bionic_src_files_mips += \ |
Christopher Ferris | 7c83a1e | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 24 | arch-mips/string/mips_strlen.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 25 | |
Duane Sand | bc5a3ec | 2014-07-10 15:24:27 -0700 | [diff] [blame] | 26 | else |
| 27 | libc_bionic_src_files_mips += \ |
Elliott Hughes | e609909 | 2015-01-27 11:09:27 -0800 | [diff] [blame] | 28 | arch-mips/string/strlen.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 29 | |
| 30 | endif |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 31 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 32 | libc_crt_target_cflags_mips := \ |
| 33 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
| 34 | -I$(LOCAL_PATH)/arch-mips/include |
| 35 | |
| 36 | libc_crt_target_crtbegin_file_mips := \ |
| 37 | $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c |
| 38 | |
| 39 | libc_crt_target_crtbegin_so_file_mips := \ |
| 40 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 41 | |
| 42 | libc_crt_target_so_cflags_mips := \ |
| 43 | -fPIC |
Duane Sand | f541650 | 2014-07-16 12:29:34 -0700 | [diff] [blame] | 44 | |
| 45 | libc_crt_target_ldflags_mips := \ |
| 46 | -melf32ltsmip |