aboutsummaryrefslogtreecommitdiff
path: root/bl1/bl1.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bl1/bl1.mk')
-rw-r--r--bl1/bl1.mk18
1 files changed, 14 insertions, 4 deletions
diff --git a/bl1/bl1.mk b/bl1/bl1.mk
index b839990751..dbb646bd41 100644
--- a/bl1/bl1.mk
+++ b/bl1/bl1.mk
@@ -1,14 +1,14 @@
#
-# Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
+# Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
-BL1_SOURCES += bl1/bl1_main.c \
- bl1/${ARCH}/bl1_arch_setup.c \
+BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \
bl1/${ARCH}/bl1_context_mgmt.c \
bl1/${ARCH}/bl1_entrypoint.S \
bl1/${ARCH}/bl1_exceptions.S \
+ bl1/bl1_main.c \
lib/cpus/${ARCH}/cpu_helpers.S \
lib/cpus/errata_report.c \
lib/el3_runtime/${ARCH}/context_mgmt.c \
@@ -25,4 +25,14 @@ ifeq (${TRUSTED_BOARD_BOOT},1)
BL1_SOURCES += bl1/bl1_fwu.c
endif
-BL1_LINKERFILE := bl1/bl1.ld.S
+ifeq (${ENABLE_PMF},1)
+BL1_SOURCES += lib/pmf/pmf_main.c
+endif
+
+ifeq ($($(ARCH)-ld-id),gnu-gcc)
+ BL1_LDFLAGS += -Wl,--sort-section=alignment
+else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
+ BL1_LDFLAGS += --sort-section=alignment
+endif
+
+BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S