blob: 3663fab81a5b2ac4b0cfb95436aac06c216eeddb [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 \
Dimitry Ivanov19acb692016-02-25 14:22:32 -080018 arch-mips/bionic/libgcc_compat.c \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080019 arch-mips/bionic/setjmp.S \
Chris Dearmaneffaa782013-11-13 14:15:31 -080020 arch-mips/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000021 arch-mips/bionic/vfork.S \
Duane Sandbc5a3ec2014-07-10 15:24:27 -070022
23ifndef ARCH_MIPS_REV6
24libc_bionic_src_files_mips += \
Christopher Ferris7c83a1e2013-02-26 01:30:00 -080025 arch-mips/string/mips_strlen.c \
Ying Wangf25d6772014-01-23 15:17:50 -080026
Duane Sandbc5a3ec2014-07-10 15:24:27 -070027else
28libc_bionic_src_files_mips += \
Elliott Hughese6099092015-01-27 11:09:27 -080029 arch-mips/string/strlen.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070030
31endif
Ying Wangf25d6772014-01-23 15:17:50 -080032
Ying Wangf25d6772014-01-23 15:17:50 -080033libc_crt_target_cflags_mips := \
34 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
35 -I$(LOCAL_PATH)/arch-mips/include
36
37libc_crt_target_crtbegin_file_mips := \
38 $(LOCAL_PATH)/arch-mips/bionic/crtbegin.c
39
40libc_crt_target_crtbegin_so_file_mips := \
41 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
42
43libc_crt_target_so_cflags_mips := \
44 -fPIC
Duane Sandf5416502014-07-16 12:29:34 -070045
46libc_crt_target_ldflags_mips := \
47 -melf32ltsmip