bl1.mk 961 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (c) 2013-2023, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \
  7. bl1/${ARCH}/bl1_context_mgmt.c \
  8. bl1/${ARCH}/bl1_entrypoint.S \
  9. bl1/${ARCH}/bl1_exceptions.S \
  10. bl1/bl1_main.c \
  11. lib/cpus/${ARCH}/cpu_helpers.S \
  12. lib/cpus/errata_report.c \
  13. lib/el3_runtime/${ARCH}/context_mgmt.c \
  14. plat/common/plat_bl1_common.c \
  15. plat/common/${ARCH}/platform_up_stack.S \
  16. ${MBEDTLS_SOURCES}
  17. ifeq (${ARCH},aarch64)
  18. BL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \
  19. lib/el3_runtime/aarch64/context.S
  20. endif
  21. ifeq (${TRUSTED_BOARD_BOOT},1)
  22. BL1_SOURCES += bl1/bl1_fwu.c
  23. endif
  24. ifneq ($(findstring gcc,$(notdir $(LD))),)
  25. BL1_LDFLAGS += -Wl,--sort-section=alignment
  26. else ifneq ($(findstring ld,$(notdir $(LD))),)
  27. BL1_LDFLAGS += --sort-section=alignment
  28. endif
  29. BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S