tspd.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. TSPD_DIR := services/spd/tspd
  7. ifeq (${ERROR_DEPRECATED},0)
  8. SPD_INCLUDES := -Iinclude/bl32/tsp
  9. endif
  10. SPD_SOURCES := services/spd/tspd/tspd_common.c \
  11. services/spd/tspd/tspd_helpers.S \
  12. services/spd/tspd/tspd_main.c \
  13. services/spd/tspd/tspd_pm.c
  14. # This dispatcher is paired with a Test Secure Payload source and we intend to
  15. # build the Test Secure Payload along with this dispatcher.
  16. #
  17. # In cases where an associated Secure Payload lies outside this build
  18. # system/source tree, the the dispatcher Makefile can either invoke an external
  19. # build command or assume it pre-built
  20. BL32_ROOT := bl32/tsp
  21. # Include SP's Makefile. The assumption is that the TSP's build system is
  22. # compatible with that of Trusted Firmware, and it'll add and populate necessary
  23. # build targets and variables
  24. include ${BL32_ROOT}/tsp.mk
  25. # Let the top-level Makefile know that we intend to build the SP from source
  26. NEED_BL32 := yes
  27. # Flag used to enable routing of non-secure interrupts to EL3 when they are
  28. # generated while the code is executing in S-EL1/0.
  29. TSP_NS_INTR_ASYNC_PREEMPT := 0
  30. ifeq ($(EL3_EXCEPTION_HANDLING),1)
  31. ifeq ($(TSP_NS_INTR_ASYNC_PREEMPT),0)
  32. $(error When EL3_EXCEPTION_HANDLING=1, TSP_NS_INTR_ASYNC_PREEMPT must also be 1)
  33. endif
  34. endif
  35. $(eval $(call assert_boolean,TSP_NS_INTR_ASYNC_PREEMPT))
  36. $(eval $(call add_define,TSP_NS_INTR_ASYNC_PREEMPT))