xref: /rk3399_ARM-atf/lib/compiler-rt/compiler-rt.mk (revision 4c700c1563aff7b51df95f17e952e050b9b4e37f)
1d801fbb0Sdp-arm#
2*4c700c15SGovindraj Raja# Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved.
3d801fbb0Sdp-arm#
4d801fbb0Sdp-arm# Redistribution and use in source and binary forms, with or without
5d801fbb0Sdp-arm# modification, are permitted provided that the following conditions are met:
6d801fbb0Sdp-arm#
7d801fbb0Sdp-arm# Redistributions of source code must retain the above copyright notice, this
8d801fbb0Sdp-arm# list of conditions and the following disclaimer.
9d801fbb0Sdp-arm#
10d801fbb0Sdp-arm# Redistributions in binary form must reproduce the above copyright notice,
11d801fbb0Sdp-arm# this list of conditions and the following disclaimer in the documentation
12d801fbb0Sdp-arm# and/or other materials provided with the distribution.
13d801fbb0Sdp-arm#
14d801fbb0Sdp-arm# Neither the name of ARM nor the names of its contributors may be used
15d801fbb0Sdp-arm# to endorse or promote products derived from this software without specific
16d801fbb0Sdp-arm# prior written permission.
17d801fbb0Sdp-arm#
18d801fbb0Sdp-arm# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19d801fbb0Sdp-arm# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20d801fbb0Sdp-arm# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21d801fbb0Sdp-arm# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22d801fbb0Sdp-arm# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23d801fbb0Sdp-arm# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24d801fbb0Sdp-arm# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25d801fbb0Sdp-arm# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26d801fbb0Sdp-arm# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27d801fbb0Sdp-arm# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28d801fbb0Sdp-arm# POSSIBILITY OF SUCH DAMAGE.
29d801fbb0Sdp-arm#
30d801fbb0Sdp-arm
31162fc183SLionel DebieveCOMPILER_RT_SRCS	:=	lib/compiler-rt/builtins/popcountdi2.c		\
32162fc183SLionel Debieve				lib/compiler-rt/builtins/popcountsi2.c
33162fc183SLionel Debieve
34d801fbb0Sdp-armifeq (${ARCH},aarch32)
35162fc183SLionel DebieveCOMPILER_RT_SRCS	+=	lib/compiler-rt/builtins/arm/aeabi_ldivmod.S	\
368c80c865SLionel Debieve				lib/compiler-rt/builtins/arm/aeabi_uldivmod.S	\
3793cec697SDaniel Boulby				lib/compiler-rt/builtins/arm/aeabi_memcpy.S	\
38bdedee5aSBoyan Karatotev				lib/compiler-rt/builtins/arm/aeabi_memset.S	\
39638d2b51SSandrine Bailleux				lib/compiler-rt/builtins/ctzdi2.c		\
408c80c865SLionel Debieve				lib/compiler-rt/builtins/divdi3.c		\
418c80c865SLionel Debieve				lib/compiler-rt/builtins/divmoddi4.c		\
428c80c865SLionel Debieve				lib/compiler-rt/builtins/lshrdi3.c		\
438c80c865SLionel Debieve				lib/compiler-rt/builtins/udivmoddi4.c
44d801fbb0Sdp-armendif
45