blob: d7601bb705e679b9788b06b4b161707334042ee9 [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 Kay523e8642023-12-04 12:03:51 +000017ifneq ($(findstring gcc,$(notdir $($(ARCH)-ld))),)
Chris Kay78dca362023-01-26 18:31:52 +000018 BL2U_LDFLAGS += -Wl,--sort-section=alignment
Chris Kay523e8642023-12-04 12:03:51 +000019else ifneq ($(findstring ld,$(notdir $($(ARCH)-ld))),)
Chris Kay78dca362023-01-26 18:31:52 +000020 BL2U_LDFLAGS += --sort-section=alignment
21endif