blob: a4051ecc63e7484fbff4987bf342dd5fe2c4f112 [file] [log] [blame]
Yatharth Kocharb1c2fe02015-10-14 15:27:24 +01001#
Chris Kay523e8642023-12-04 12:03:51 +00002# Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
Yatharth Kocharb1c2fe02015-10-14 15:27:24 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Yatharth Kocharb1c2fe02015-10-14 15:27:24 +01005#
6
7BL2U_SOURCES += bl2u/bl2u_main.c \
Yatharth Kochar18dfb302016-11-22 11:06:03 +00008 bl2u/${ARCH}/bl2u_entrypoint.S \
9 plat/common/${ARCH}/platform_up_stack.S
10
11ifeq (${ARCH},aarch64)
12BL2U_SOURCES += common/aarch64/early_exceptions.S
13endif
Yatharth Kocharb1c2fe02015-10-14 15:27:24 +010014
Chris Kay68d28362023-01-16 16:53:45 +000015BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S
Chris Kay78dca362023-01-26 18:31:52 +000016
Chris Kaycfba6452023-12-04 09:55:50 +000017ifeq ($($(ARCH)-ld-id),gnu-gcc)
Chris Kay78dca362023-01-26 18:31:52 +000018 BL2U_LDFLAGS += -Wl,--sort-section=alignment
Chris Kaycfba6452023-12-04 09:55:50 +000019else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
Chris Kay78dca362023-01-26 18:31:52 +000020 BL2U_LDFLAGS += --sort-section=alignment
21endif