14f6ad66aSAchin Gupta# 2ffb77421SChris Kay# Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved. 34f6ad66aSAchin Gupta# 482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause 54f6ad66aSAchin Gupta# 64f6ad66aSAchin Gupta 75fb061e7SGary MorrisonBL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \ 8f3b4914bSYatharth Kochar bl1/${ARCH}/bl1_context_mgmt.c \ 9f3b4914bSYatharth Kochar bl1/${ARCH}/bl1_entrypoint.S \ 10f3b4914bSYatharth Kochar bl1/${ARCH}/bl1_exceptions.S \ 114796c6caSManish Pandey bl1/bl1_main.c \ 124796c6caSManish Pandey lib/cpus/${ARCH}/cpu_helpers.S \ 1310bcd761SJeenu Viswambharan lib/cpus/errata_report.c \ 14f3b4914bSYatharth Kochar lib/el3_runtime/${ARCH}/context_mgmt.c \ 1575311203Sdp-arm plat/common/plat_bl1_common.c \ 1676d26733SRoberto Vargas plat/common/${ARCH}/platform_up_stack.S \ 17180c4bc2SRoberto Vargas ${MBEDTLS_SOURCES} 18f3b4914bSYatharth Kochar 19f3b4914bSYatharth Kocharifeq (${ARCH},aarch64) 208a677180SJohn TsichritzisBL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \ 218a677180SJohn Tsichritzis lib/el3_runtime/aarch64/context.S 22f3b4914bSYatharth Kocharendif 23f3b4914bSYatharth Kochar 2448bfb88eSYatharth Kocharifeq (${TRUSTED_BOARD_BOOT},1) 2548bfb88eSYatharth KocharBL1_SOURCES += bl1/bl1_fwu.c 2648bfb88eSYatharth Kocharendif 274f6ad66aSAchin Gupta 28ed8f06ddSthagon01-armifeq (${ENABLE_PMF},1) 29ed8f06ddSthagon01-armBL1_SOURCES += lib/pmf/pmf_main.c 30ed8f06ddSthagon01-armendif 31ed8f06ddSthagon01-arm 32*8620bd0bSChris Kayifeq ($($(ARCH)-ld-id),gnu-gcc) 33ee62ab3fSChris Kay BL1_LDFLAGS += -Wl,--sort-section=alignment 34*8620bd0bSChris Kayelse ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),) 35ee62ab3fSChris Kay BL1_LDFLAGS += --sort-section=alignment 36ee62ab3fSChris Kayendif 37ee62ab3fSChris Kay 3882274936SChris KayBL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S 39