bl1.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (c) 2013-2024, 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. lib/locks/exclusive/${ARCH}/spinlock.S \
  15. plat/common/plat_bl1_common.c \
  16. plat/common/${ARCH}/platform_up_stack.S \
  17. ${MBEDTLS_SOURCES}
  18. ifeq (${ARCH},aarch64)
  19. BL1_SOURCES += lib/cpus/aarch64/dsu_helpers.S \
  20. lib/el3_runtime/aarch64/context.S \
  21. lib/cpus/errata_common.c
  22. endif
  23. ifeq (${TRUSTED_BOARD_BOOT},1)
  24. BL1_SOURCES += bl1/bl1_fwu.c
  25. endif
  26. ifeq (${ENABLE_PMF},1)
  27. BL1_SOURCES += lib/pmf/pmf_main.c
  28. endif
  29. ifeq ($($(ARCH)-ld-id),gnu-gcc)
  30. BL1_LDFLAGS += -Wl,--sort-section=alignment
  31. else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
  32. BL1_LDFLAGS += --sort-section=alignment
  33. endif
  34. BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S