bl1.mk 1.0 KB

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