1# 2# Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7BL2_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 14ifeq (${ARCH},aarch64) 15BL2_SOURCES += common/aarch64/early_exceptions.S 16endif 17 18ifeq (${BL2_AT_EL3},0) 19BL2_SOURCES += bl2/${ARCH}/bl2_entrypoint.S 20BL2_LINKERFILE := bl2/bl2.ld.S 21 22else 23BL2_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 28ifeq (${DISABLE_MTPMU},1) 29BL2_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S 30endif 31 32ifeq (${ARCH},aarch64) 33BL2_SOURCES += lib/cpus/aarch64/dsu_helpers.S 34endif 35 36BL2_LINKERFILE := bl2/bl2_el3.ld.S 37endif 38