blob: 9fe20f50f51e5267526e95bcc1d9589abb6084fc [file] [log] [blame]
Yatharth Kochar9003fa02015-10-14 15:27:24 +01001#
Chris Kay82274932023-01-16 16:53:45 +00002# Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
Yatharth Kochar9003fa02015-10-14 15:27:24 +01003#
dp-arm82cb2c12017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Yatharth Kochar9003fa02015-10-14 15:27:24 +01005#
6
7BL2U_SOURCES += bl2u/bl2u_main.c \
Yatharth Kochar1bd61d02016-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 Kochar9003fa02015-10-14 15:27:24 +010014
Chris Kay82274932023-01-16 16:53:45 +000015BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S
Chris Kaycff0d542023-01-26 18:31:52 +000016
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