1# 2# Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \ 8 bl1/${ARCH}/bl1_context_mgmt.c \ 9 bl1/${ARCH}/bl1_entrypoint.S \ 10 bl1/${ARCH}/bl1_exceptions.S \ 11 bl1/bl1_main.c \ 12 lib/cpus/${ARCH}/cpu_helpers.S \ 13 lib/cpus/errata_report.c \ 14 lib/el3_runtime/${ARCH}/context_mgmt.c \ 15 lib/locks/exclusive/${ARCH}/spinlock.S \ 16 plat/common/plat_bl1_common.c \ 17 plat/common/${ARCH}/platform_up_stack.S \ 18 ${MBEDTLS_SOURCES} 19 20ifeq (${ARCH},aarch64) 21BL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \ 22 lib/el3_runtime/aarch64/context.S \ 23 lib/cpus/errata_common.c 24endif 25 26ifeq (${TRUSTED_BOARD_BOOT},1) 27BL1_SOURCES += bl1/bl1_fwu.c 28endif 29 30ifeq (${ENABLE_PMF},1) 31BL1_SOURCES += lib/pmf/pmf_main.c 32endif 33 34ifeq ($($(ARCH)-ld-id),gnu-gcc) 35 BL1_LDFLAGS += -Wl,--sort-section=alignment 36else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),) 37 BL1_LDFLAGS += --sort-section=alignment 38endif 39 40BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S 41