Add Broadcom's code for bcm63xx support
[project/bcm63xx/atf.git] / bl2 / bl2.mk
1 #
2 # Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 BL2_SOURCES += bl2/bl2_image_load_v2.c \
8 bl2/bl2_main.c \
9 bl2/${ARCH}/bl2_arch_setup.c \
10 lib/locks/exclusive/${ARCH}/spinlock.S \
11 plat/common/${ARCH}/platform_up_stack.S \
12 ${MBEDTLS_SOURCES}
13
14 ifeq (${ARCH},aarch64)
15 BL2_SOURCES += common/aarch64/early_exceptions.S
16 endif
17
18 ifeq (${BL2_AT_EL3},0)
19 BL2_SOURCES += bl2/${ARCH}/bl2_entrypoint.S
20 BL2_LINKERFILE := bl2/bl2.ld.S
21
22 else
23 BL2_SOURCES += bl2/${ARCH}/bl2_el3_entrypoint.S \
24 bl2/${ARCH}/bl2_el3_exceptions.S \
25 lib/cpus/${ARCH}/cpu_helpers.S \
26 lib/cpus/errata_report.c
27
28 ifeq (${ARCH},aarch64)
29 BL2_SOURCES += lib/cpus/aarch64/dsu_helpers.S
30 endif
31
32 BL2_LINKERFILE := bl2/bl2_el3.ld.S
33 endif