tsp.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. INCLUDES += -Iinclude/bl32/tsp
  7. BL32_SOURCES += bl32/tsp/tsp_main.c \
  8. bl32/tsp/aarch64/tsp_entrypoint.S \
  9. bl32/tsp/aarch64/tsp_exceptions.S \
  10. bl32/tsp/aarch64/tsp_request.S \
  11. bl32/tsp/tsp_interrupt.c \
  12. bl32/tsp/tsp_timer.c \
  13. common/aarch64/early_exceptions.S \
  14. lib/locks/exclusive/aarch64/spinlock.S
  15. BL32_LINKERFILE := bl32/tsp/tsp.ld.S
  16. # This flag determines if the TSPD initializes BL32 in tspd_init() (synchronous
  17. # method) or configures BL31 to pass control to BL32 instead of BL33
  18. # (asynchronous method).
  19. TSP_INIT_ASYNC := 0
  20. $(eval $(call assert_boolean,TSP_INIT_ASYNC))
  21. $(eval $(call add_define,TSP_INIT_ASYNC))
  22. # Include the platform-specific TSP Makefile
  23. # If no platform-specific TSP Makefile exists, it means TSP is not supported
  24. # on this platform.
  25. TSP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/tsp/tsp-${PLAT}.mk)
  26. ifeq (,${TSP_PLAT_MAKEFILE})
  27. $(error TSP is not supported on platform ${PLAT})
  28. else
  29. include ${TSP_PLAT_MAKEFILE}
  30. endif