summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordp-arm <dimitris.papastamos@arm.com>2017-05-04 12:15:35 +0100
committerdp-arm <dimitris.papastamos@arm.com>2017-05-12 11:54:12 +0100
commitd801fbb0fc1834f7e7f6840d9a302beee5021f75 (patch)
tree981a7487a741b23787fcf43db2be80dcefe3f24c /Makefile
parent0e14a7fbeb3014e719302c9b7f6a24c4030dfaf0 (diff)
Hook up LLVM compiler-rt in the build system
This patch enables compiler-rt for the AArch32 target. The code is not used for AArch64 as the architecture supports the 64-bit division and modulo operations natively. Change-Id: I1703a92872b0bb56ac0b98c67193830683963b13 Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b644b201..a263c4eb 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,7 @@ INC_DIRS_TO_CHECK := $(sort $(filter-out \
include/lib, \
$(wildcard include/*)))
LIB_DIRS_TO_CHECK := $(sort $(filter-out \
+ lib/compiler-rt \
lib/libfdt% \
lib/stdlib, \
$(wildcard lib/*)))
@@ -144,6 +145,7 @@ LDFLAGS += --gc-sections
################################################################################
# Common sources and include directories
################################################################################
+include lib/compiler-rt/compiler-rt.mk
include lib/stdlib/stdlib.mk
BL_COMMON_SOURCES += common/bl_common.c \
@@ -153,6 +155,7 @@ BL_COMMON_SOURCES += common/bl_common.c \
lib/${ARCH}/misc_helpers.S \
plat/common/${ARCH}/plat_common.c \
plat/common/${ARCH}/platform_helpers.S \
+ ${COMPILER_RT_SRCS} \
${STDLIB_SRCS}
INCLUDES += -Iinclude/bl1 \