xref: /rk3399_ARM-atf/bl2/bl2.mk (revision 9d93fc2f89a00e104bfe6be31f87861c26ba2bf0)
14f6ad66aSAchin Gupta#
2*9d93fc2fSAntonio Nino Diaz# Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
34f6ad66aSAchin Gupta#
482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
54f6ad66aSAchin Gupta#
64f6ad66aSAchin Gupta
7*9d93fc2fSAntonio Nino DiazBL2_SOURCES		+=	bl2/bl2_image_load_v2.c			\
8*9d93fc2fSAntonio Nino Diaz				bl2/bl2_main.c				\
9d48c12e9SYatharth Kochar				bl2/${ARCH}/bl2_arch_setup.c		\
1075311203Sdp-arm				lib/locks/exclusive/${ARCH}/spinlock.S	\
1176d26733SRoberto Vargas				plat/common/${ARCH}/platform_up_stack.S	\
12180c4bc2SRoberto Vargas				${MBEDTLS_SOURCES}
13d48c12e9SYatharth Kochar
14d48c12e9SYatharth Kocharifeq (${ARCH},aarch64)
15d48c12e9SYatharth KocharBL2_SOURCES		+=	common/aarch64/early_exceptions.S
16d48c12e9SYatharth Kocharendif
174f6ad66aSAchin Gupta
18*9d93fc2fSAntonio Nino Diazifeq (${ENABLE_PAUTH},1)
19*9d93fc2fSAntonio Nino DiazBL2_CFLAGS		+=	-msign-return-address=non-leaf
20*9d93fc2fSAntonio Nino Diazendif
2142019bf4SYatharth Kochar
22b1d27b48SRoberto Vargasifeq (${BL2_AT_EL3},0)
23b1d27b48SRoberto VargasBL2_SOURCES		+=	bl2/${ARCH}/bl2_entrypoint.S
24bee82417SDan HandleyBL2_LINKERFILE		:=	bl2/bl2.ld.S
25b1d27b48SRoberto Vargas
26b1d27b48SRoberto Vargaselse
27b1d27b48SRoberto VargasBL2_SOURCES		+=	bl2/${ARCH}/bl2_el3_entrypoint.S	\
28b1d27b48SRoberto Vargas				bl2/${ARCH}/bl2_el3_exceptions.S	\
29b1d27b48SRoberto Vargas				lib/cpus/${ARCH}/cpu_helpers.S		\
30b1d27b48SRoberto Vargas				lib/cpus/errata_report.c
318a677180SJohn Tsichritzis
328a677180SJohn Tsichritzisifeq (${ARCH},aarch64)
338a677180SJohn TsichritzisBL2_SOURCES		+=	lib/cpus/aarch64/dsu_helpers.S
348a677180SJohn Tsichritzisendif
358a677180SJohn Tsichritzis
36b1d27b48SRoberto VargasBL2_LINKERFILE		:=	bl2/bl2_el3.ld.S
37b1d27b48SRoberto Vargasendif
38