xref: /rk3399_ARM-atf/lib/libc/libc_common.mk (revision 38b5f93a2b27658918aa6b20d2fa57cffdadc74f)
1#
2# Copyright (c) 2024-2025, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7LIBC_SRCS	:=	$(addprefix lib/libc/,		\
8			abort.c				\
9			assert.c			\
10			exit.c				\
11			memchr.c			\
12			memcmp.c			\
13			memcpy.c			\
14			memcpy_s.c			\
15			memmove.c			\
16			memrchr.c			\
17			printf.c			\
18			putchar.c			\
19			puts.c				\
20			qsort.c				\
21			snprintf.c			\
22			strchr.c			\
23			strcmp.c			\
24			strcpy_secure.c		\
25			strlcat.c			\
26			strlcpy.c			\
27			strlen.c			\
28			strnlen_secure.c	\
29			strncmp.c			\
30			strnlen.c			\
31			strrchr.c			\
32			strtok.c			\
33			strtoul.c			\
34			strtoll.c			\
35			strtoull.c			\
36			strtol.c)
37
38ifeq (${ARCH},aarch64)
39LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
40			setjmp.S)
41endif
42
43INCLUDES	+=	-Iinclude/lib/libc		\
44			-Iinclude/lib/libc/$(ARCH)	\
45
46