xref: /rk3399_ARM-atf/lib/libc/libc_common.mk (revision 38b5f93a2b27658918aa6b20d2fa57cffdadc74f)
199db13bfSOlivier Deprez#
2277713e0SManish V Badarkhe# Copyright (c) 2024-2025, Arm Limited and Contributors. All rights reserved.
399db13bfSOlivier Deprez#
499db13bfSOlivier Deprez# SPDX-License-Identifier: BSD-3-Clause
599db13bfSOlivier Deprez#
699db13bfSOlivier Deprez
799db13bfSOlivier DeprezLIBC_SRCS	:=	$(addprefix lib/libc/,		\
899db13bfSOlivier Deprez			abort.c				\
999db13bfSOlivier Deprez			assert.c			\
1099db13bfSOlivier Deprez			exit.c				\
1199db13bfSOlivier Deprez			memchr.c			\
1299db13bfSOlivier Deprez			memcmp.c			\
1399db13bfSOlivier Deprez			memcpy.c			\
1499db13bfSOlivier Deprez			memcpy_s.c			\
1599db13bfSOlivier Deprez			memmove.c			\
1699db13bfSOlivier Deprez			memrchr.c			\
1799db13bfSOlivier Deprez			printf.c			\
1899db13bfSOlivier Deprez			putchar.c			\
1999db13bfSOlivier Deprez			puts.c				\
20277713e0SManish V Badarkhe			qsort.c				\
2199db13bfSOlivier Deprez			snprintf.c			\
2299db13bfSOlivier Deprez			strchr.c			\
2399db13bfSOlivier Deprez			strcmp.c			\
24*eb088894SJit Loon Lim			strcpy_secure.c		\
2599db13bfSOlivier Deprez			strlcat.c			\
2699db13bfSOlivier Deprez			strlcpy.c			\
2799db13bfSOlivier Deprez			strlen.c			\
28*eb088894SJit Loon Lim			strnlen_secure.c	\
2999db13bfSOlivier Deprez			strncmp.c			\
3099db13bfSOlivier Deprez			strnlen.c			\
3199db13bfSOlivier Deprez			strrchr.c			\
3299db13bfSOlivier Deprez			strtok.c			\
3399db13bfSOlivier Deprez			strtoul.c			\
3499db13bfSOlivier Deprez			strtoll.c			\
3599db13bfSOlivier Deprez			strtoull.c			\
3699db13bfSOlivier Deprez			strtol.c)
3799db13bfSOlivier Deprez
3899db13bfSOlivier Deprezifeq (${ARCH},aarch64)
3999db13bfSOlivier DeprezLIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
4099db13bfSOlivier Deprez			setjmp.S)
4199db13bfSOlivier Deprezendif
4299db13bfSOlivier Deprez
4399db13bfSOlivier DeprezINCLUDES	+=	-Iinclude/lib/libc		\
4499db13bfSOlivier Deprez			-Iinclude/lib/libc/$(ARCH)	\
4599db13bfSOlivier Deprez
46