bl1.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. endif
  22. ifeq (${TRUSTED_BOARD_BOOT},1)
  23. BL1_SOURCES += bl1/bl1_fwu.c
  24. endif
  25. ifeq (${ENABLE_PMF},1)
  26. BL1_SOURCES += lib/pmf/pmf_main.c
  27. endif
  28. ifeq ($($(ARCH)-ld-id),gnu-gcc)
  29. BL1_LDFLAGS += -Wl,--sort-section=alignment
  30. else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
  31. BL1_LDFLAGS += --sort-section=alignment
  32. endif
  33. BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S