mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 22:05:40 +00:00

Fix [1] is introducing another problem in that memset is added twice to the libc makefile when OVERRIDE_LIBC=1 (the C and asm implementations). Correct by adding memset.c when OVERRIDE_LIBC=0 and memset.S when OVERRIDE_LIBC=1. [1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/26091 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Ie4b7e04880d4cd871e7b51cd8ff5bddcf8d0308c
42 lines
743 B
Makefile
42 lines
743 B
Makefile
#
|
|
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
LIBC_SRCS := $(addprefix lib/libc/, \
|
|
abort.c \
|
|
assert.c \
|
|
exit.c \
|
|
memchr.c \
|
|
memcmp.c \
|
|
memcpy.c \
|
|
memcpy_s.c \
|
|
memmove.c \
|
|
memrchr.c \
|
|
printf.c \
|
|
putchar.c \
|
|
puts.c \
|
|
snprintf.c \
|
|
strchr.c \
|
|
strcmp.c \
|
|
strlcat.c \
|
|
strlcpy.c \
|
|
strlen.c \
|
|
strncmp.c \
|
|
strnlen.c \
|
|
strrchr.c \
|
|
strtok.c \
|
|
strtoul.c \
|
|
strtoll.c \
|
|
strtoull.c \
|
|
strtol.c)
|
|
|
|
ifeq (${ARCH},aarch64)
|
|
LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
|
|
setjmp.S)
|
|
endif
|
|
|
|
INCLUDES += -Iinclude/lib/libc \
|
|
-Iinclude/lib/libc/$(ARCH) \
|
|
|