blob: b184abb9ad3fbd10f81b1d424bbc2323070118b5 [file] [log] [blame]
Elliott Hughes7c02d942014-09-16 19:06:31 -07001# 32-bit mips.
Ying Wangf25d6772014-01-23 15:17:50 -08002
Elliott Hughes7c02d942014-09-16 19:06:31 -07003libc_bionic_src_files_mips += \
Elliott Hughese6099092015-01-27 11:09:27 -08004 arch-mips/string/memcmp.c \
Nikola Veljkovic38f2eaa2015-05-26 12:06:09 +02005 arch-mips/string/memcpy.S \
6 arch-mips/string/memset.S \
7 arch-mips/string/strcmp.S \
Ying Wangf25d6772014-01-23 15:17:50 -08008
Elliott Hughes7c02d942014-09-16 19:06:31 -07009#
10# Inherently architecture-specific code.
11#
Ying Wangf25d6772014-01-23 15:17:50 -080012
Ying Wangf25d6772014-01-23 15:17:50 -080013libc_bionic_src_files_mips += \
Elliott Hughes36d61882013-11-19 13:31:58 -080014 arch-mips/bionic/__bionic_clone.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080015 arch-mips/bionic/bzero.S \
Elliott Hughes14b467e2013-10-09 16:40:33 -070016 arch-mips/bionic/cacheflush.cpp \
Elliott Hughesbf425682013-10-24 16:29:40 -070017 arch-mips/bionic/_exit_with_stack_teardown.S \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080018 arch-mips/bionic/setjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080019 arch-mips/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000020 arch-mips/bionic/vfork.S \
Duane Sandbc5a3ec2014-07-10 15:24:27 -070021
22ifndef ARCH_MIPS_REV6
23libc_bionic_src_files_mips += \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080024 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080025
Duane Sandbc5a3ec2014-07-10 15:24:27 -070026else
27libc_bionic_src_files_mips += \
Elliott Hughese6099092015-01-27 11:09:27 -080028 arch-mips/string/strlen.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070029
30endif
Ying Wangf25d6772014-01-23 15:17:50 -080031
Ying Wangf25d6772014-01-23 15:17:50 -080032libc_crt_target_cflags_mips := \
33 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
34 -I$(LOCAL_PATH)/arch-mips/include
35
36libc_crt_target_crtbegin_file_mips := \
37 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
38
39libc_crt_target_crtbegin_so_file_mips := \
40 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
41
42libc_crt_target_so_cflags_mips := \
43 -fPIC
Duane Sandf5416502014-07-16 12:29:34 -070044
45libc_crt_target_ldflags_mips := \
46 -melf32ltsmip