blob: 8f44151da92d61b4727d02cd112a4a2416b8af3d [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001#
Gary Morrison3d7f6542021-01-27 13:08:47 -06002# Copyright (c) 2013-2021, ARM Limited and Contributors. All rights reserved.
Achin Gupta4f6ad662013-10-25 09:08:21 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Achin Gupta4f6ad662013-10-25 09:08:21 +01005#
6
Gary Morrison3d7f6542021-01-27 13:08:47 -06007ifneq (${PLAT},fvp_r)
8BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \
Yatharth Kochar5d361212016-06-28 17:07:09 +01009 bl1/${ARCH}/bl1_context_mgmt.c \
10 bl1/${ARCH}/bl1_entrypoint.S \
11 bl1/${ARCH}/bl1_exceptions.S \
Gary Morrison3d7f6542021-01-27 13:08:47 -060012 bl1/bl1_main.c
13endif
14BL1_SOURCES += lib/cpus/${ARCH}/cpu_helpers.S \
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +000015 lib/cpus/errata_report.c \
Yatharth Kochar5d361212016-06-28 17:07:09 +010016 lib/el3_runtime/${ARCH}/context_mgmt.c \
dp-arm230011c2017-03-07 11:02:47 +000017 plat/common/plat_bl1_common.c \
Roberto Vargas9f412482018-01-16 10:35:23 +000018 plat/common/${ARCH}/platform_up_stack.S \
Roberto Vargas502290b2018-05-08 10:27:10 +010019 ${MBEDTLS_SOURCES}
Yatharth Kochar5d361212016-06-28 17:07:09 +010020
Javier Almansa Sobrinof3a4c542020-11-23 18:38:15 +000021ifeq (${DISABLE_MTPMU},1)
22BL1_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S
23endif
24
Yatharth Kochar5d361212016-06-28 17:07:09 +010025ifeq (${ARCH},aarch64)
John Tsichritzis4daa1de2018-07-23 09:11:59 +010026BL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \
27 lib/el3_runtime/aarch64/context.S
Yatharth Kochar5d361212016-06-28 17:07:09 +010028endif
29
Yatharth Kochar71c9a5e2015-10-10 19:06:53 +010030ifeq (${TRUSTED_BOARD_BOOT},1)
31BL1_SOURCES += bl1/bl1_fwu.c
32endif
Ryan Harkin25cff832014-01-13 12:37:03 +000033
Dan Handley176e7b42014-04-15 18:20:09 +010034BL1_LINKERFILE := bl1/bl1.ld.S