blob: 95da68c7a00c7daaaf355ccd406e7ae25c31bc9e [file] [log] [blame]
Dan Handleyd7b59e42016-06-02 17:15:13 +01001#
Govindraj Rajaeee28e72023-08-01 15:52:40 -05002# Copyright (c) 2016-2021, Arm Limited and Contributors. All rights reserved.
Dan Handleyd7b59e42016-06-02 17:15:13 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Dan Handleyd7b59e42016-06-02 17:15:13 +01005#
6
Antonio Nino Diaza884dfb2019-02-08 13:20:37 +00007LIBC_SRCS := $(addprefix lib/libc/, \
Dan Handleyd7b59e42016-06-02 17:15:13 +01008 abort.c \
9 assert.c \
10 exit.c \
Antonio Nino Diaz9eddb1e2018-08-16 14:53:05 +010011 memchr.c \
12 memcmp.c \
13 memcpy.c \
Jit Loon Lim410c4512023-05-28 16:33:28 +080014 memcpy_s.c \
Antonio Nino Diaz9eddb1e2018-08-16 14:53:05 +010015 memmove.c \
Ambroise Vincent35248f22019-06-19 17:14:09 +010016 memrchr.c \
Mark Dykesad5ab072020-08-19 19:11:33 +000017 memset.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010018 printf.c \
19 putchar.c \
20 puts.c \
Antonio Nino Diazc0c8eb62018-08-15 17:02:28 +010021 snprintf.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010022 strchr.c \
23 strcmp.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060024 strlcat.c \
Antonio Nino Diazbbf55f92018-09-27 09:22:19 +010025 strlcpy.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010026 strlen.c \
27 strncmp.c \
Antonio Nino Diaz12f0a0f2018-10-19 00:57:10 +010028 strnlen.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060029 strrchr.c \
30 strtok.c \
Madhukar Pappireddyc74cae42021-01-27 15:44:52 -060031 strtoul.c \
Madhukar Pappireddy83def832021-01-27 18:32:17 -060032 strtoll.c \
Madhukar Pappireddy727830c2021-01-27 19:12:33 -060033 strtoull.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060034 strtol.c)
Dan Handleyd7b59e42016-06-02 17:15:13 +010035
Antonio Nino Diaza884dfb2019-02-08 13:20:37 +000036ifeq (${ARCH},aarch64)
37LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
38 setjmp.S)
39endif
40
Roberto Vargas0f8f9852018-05-08 10:27:10 +010041INCLUDES += -Iinclude/lib/libc \
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +010042 -Iinclude/lib/libc/$(ARCH) \