14f6ad66aSAchin Gupta# 282274936SChris Kay# Copyright (c) 2013-2023, 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 190063dd17SJavier Almansa Sobrinoifeq (${DISABLE_MTPMU},1) 200063dd17SJavier Almansa SobrinoBL1_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S 210063dd17SJavier Almansa Sobrinoendif 220063dd17SJavier Almansa Sobrino 23f3b4914bSYatharth Kocharifeq (${ARCH},aarch64) 248a677180SJohn TsichritzisBL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \ 258a677180SJohn Tsichritzis lib/el3_runtime/aarch64/context.S 26f3b4914bSYatharth Kocharendif 27f3b4914bSYatharth Kochar 2848bfb88eSYatharth Kocharifeq (${TRUSTED_BOARD_BOOT},1) 2948bfb88eSYatharth KocharBL1_SOURCES += bl1/bl1_fwu.c 3048bfb88eSYatharth Kocharendif 314f6ad66aSAchin Gupta 32*ee62ab3fSChris Kayifneq ($(findstring gcc,$(notdir $(LD))),) 33*ee62ab3fSChris Kay BL1_LDFLAGS += -Wl,--sort-section=alignment 34*ee62ab3fSChris Kayelse ifneq ($(findstring ld,$(notdir $(LD))),) 35*ee62ab3fSChris Kay BL1_LDFLAGS += --sort-section=alignment 36*ee62ab3fSChris Kayendif 37*ee62ab3fSChris Kay 3882274936SChris KayBL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S 39