bl2.mk 893 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. BL2_SOURCES += bl2/bl2_image_load_v2.c \
  7. bl2/bl2_main.c \
  8. bl2/${ARCH}/bl2_arch_setup.c \
  9. lib/locks/exclusive/${ARCH}/spinlock.S \
  10. plat/common/${ARCH}/platform_up_stack.S \
  11. ${MBEDTLS_SOURCES}
  12. ifeq (${ARCH},aarch64)
  13. BL2_SOURCES += common/aarch64/early_exceptions.S
  14. endif
  15. ifeq (${BL2_AT_EL3},0)
  16. BL2_SOURCES += bl2/${ARCH}/bl2_entrypoint.S
  17. BL2_LINKERFILE := bl2/bl2.ld.S
  18. else
  19. BL2_SOURCES += bl2/${ARCH}/bl2_el3_entrypoint.S \
  20. bl2/${ARCH}/bl2_el3_exceptions.S \
  21. lib/cpus/${ARCH}/cpu_helpers.S \
  22. lib/cpus/errata_report.c
  23. ifeq (${DISABLE_MTPMU},1)
  24. BL2_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S
  25. endif
  26. ifeq (${ARCH},aarch64)
  27. BL2_SOURCES += lib/cpus/aarch64/dsu_helpers.S
  28. endif
  29. BL2_LINKERFILE := bl2/bl2_el3.ld.S
  30. endif