1#
2# Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7BL2U_SOURCES		+=	bl2u/bl2u_main.c			\
8				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
14
15BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S
16
17ifneq ($(findstring gcc,$(notdir $(LD))),)
18        BL2U_LDFLAGS	+=	-Wl,--sort-section=alignment
19else ifneq ($(findstring ld,$(notdir $(LD))),)
20        BL2U_LDFLAGS	+=	--sort-section=alignment
21endif
22