libc_asm.mk 740 Bytes
Newer Older
1
#
2
# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# SPDX-License-Identifier: BSD-3-Clause
#

LIBC_SRCS	:=	$(addprefix lib/libc/,		\
			abort.c				\
			assert.c			\
			exit.c				\
			memchr.c			\
			memcmp.c			\
			memcpy.c			\
			memmove.c			\
			memrchr.c			\
			printf.c			\
			putchar.c			\
			puts.c				\
			snprintf.c			\
			strchr.c			\
			strcmp.c			\
22
			strlcat.c			\
23
24
25
26
			strlcpy.c			\
			strlen.c			\
			strncmp.c			\
			strnlen.c			\
27
28
29
			strrchr.c			\
			strtok.c			\
			strtol.c)
30
31
32
33
34
35
36
37
38
39
40
41

ifeq (${ARCH},aarch64)
LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
			memset.S			\
			setjmp.S)
else
LIBC_SRCS	+=	$(addprefix lib/libc/aarch32/,	\
			memset.S)
endif

INCLUDES	+=	-Iinclude/lib/libc		\
			-Iinclude/lib/libc/$(ARCH)	\