mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 07:39:24 +00:00

To support memcpy_s for better security purpose to avoid overflowing the dest while copy from src. Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com> Change-Id: I63c3ea6a3e99c10d69be6bce04843c14b0a28a4d
42 lines
763 B
Makefile
42 lines
763 B
Makefile
#
|
|
# Copyright (c) 2016-2021, 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 \
|
|
memset.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) \
|