Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 1 | # |
Chris Kay | ffb7742 | 2023-12-04 12:03:51 +0000 | [diff] [blame] | 2 | # Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved. |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 3 | # |
dp-arm | 82cb2c1 | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 5 | # |
| 6 | |
Gary Morrison | 5fb061e | 2021-01-27 13:08:47 -0600 | [diff] [blame] | 7 | BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \ |
Yatharth Kochar | f3b4914 | 2016-06-28 17:07:09 +0100 | [diff] [blame] | 8 | bl1/${ARCH}/bl1_context_mgmt.c \ |
| 9 | bl1/${ARCH}/bl1_entrypoint.S \ |
| 10 | bl1/${ARCH}/bl1_exceptions.S \ |
Manish Pandey | 4796c6c | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 11 | bl1/bl1_main.c \ |
| 12 | lib/cpus/${ARCH}/cpu_helpers.S \ |
Jeenu Viswambharan | 10bcd76 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 13 | lib/cpus/errata_report.c \ |
Yatharth Kochar | f3b4914 | 2016-06-28 17:07:09 +0100 | [diff] [blame] | 14 | lib/el3_runtime/${ARCH}/context_mgmt.c \ |
Chris Kay | e40b563 | 2024-02-06 14:33:12 +0000 | [diff] [blame] | 15 | lib/locks/exclusive/${ARCH}/spinlock.S \ |
dp-arm | 7531120 | 2017-03-07 11:02:47 +0000 | [diff] [blame] | 16 | plat/common/plat_bl1_common.c \ |
Roberto Vargas | 76d2673 | 2018-01-16 10:35:23 +0000 | [diff] [blame] | 17 | plat/common/${ARCH}/platform_up_stack.S \ |
Roberto Vargas | 180c4bc | 2018-05-08 10:27:10 +0100 | [diff] [blame] | 18 | ${MBEDTLS_SOURCES} |
Yatharth Kochar | f3b4914 | 2016-06-28 17:07:09 +0100 | [diff] [blame] | 19 | |
| 20 | ifeq (${ARCH},aarch64) |
John Tsichritzis | 8a67718 | 2018-07-23 09:11:59 +0100 | [diff] [blame] | 21 | BL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \ |
| 22 | lib/el3_runtime/aarch64/context.S |
Yatharth Kochar | f3b4914 | 2016-06-28 17:07:09 +0100 | [diff] [blame] | 23 | endif |
| 24 | |
Yatharth Kochar | 48bfb88 | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 25 | ifeq (${TRUSTED_BOARD_BOOT},1) |
| 26 | BL1_SOURCES += bl1/bl1_fwu.c |
| 27 | endif |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 28 | |
thagon01-arm | ed8f06d | 2023-07-12 10:43:58 -0500 | [diff] [blame] | 29 | ifeq (${ENABLE_PMF},1) |
| 30 | BL1_SOURCES += lib/pmf/pmf_main.c |
| 31 | endif |
| 32 | |
Chris Kay | 8620bd0 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 33 | ifeq ($($(ARCH)-ld-id),gnu-gcc) |
Chris Kay | ee62ab3 | 2023-01-06 11:02:00 +0000 | [diff] [blame] | 34 | BL1_LDFLAGS += -Wl,--sort-section=alignment |
Chris Kay | 8620bd0 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 35 | else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),) |
Chris Kay | ee62ab3 | 2023-01-06 11:02:00 +0000 | [diff] [blame] | 36 | BL1_LDFLAGS += --sort-section=alignment |
| 37 | endif |
| 38 | |
Chris Kay | 8227493 | 2023-01-16 16:53:45 +0000 | [diff] [blame] | 39 | BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S |