bl2u.mk 577 B

123456789101112131415161718192021
  1. #
  2. # Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. BL2U_SOURCES += bl2u/bl2u_main.c \
  7. bl2u/${ARCH}/bl2u_entrypoint.S \
  8. plat/common/${ARCH}/platform_up_stack.S
  9. ifeq (${ARCH},aarch64)
  10. BL2U_SOURCES += common/aarch64/early_exceptions.S
  11. endif
  12. BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S
  13. ifeq ($($(ARCH)-ld-id),gnu-gcc)
  14. BL2U_LDFLAGS += -Wl,--sort-section=alignment
  15. else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
  16. BL2U_LDFLAGS += --sort-section=alignment
  17. endif