sipsvc.mk 818 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright 2018-2020 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. #------------------------------------------------------------------------------
  8. #
  9. # Select the SIP SVC files
  10. #
  11. # -----------------------------------------------------------------------------
  12. ifeq (${ADD_SIPSVC},)
  13. ADD_SIPSVC := 1
  14. PLAT_SIPSVC_PATH := $(PLAT_COMMON_PATH)/sip_svc
  15. SIPSVC_SOURCES := ${PLAT_SIPSVC_PATH}/sip_svc.c \
  16. ${PLAT_SIPSVC_PATH}/$(ARCH)/sipsvc.S
  17. PLAT_INCLUDES += -I${PLAT_SIPSVC_PATH}/include
  18. ifeq (${BL_COMM_SIPSVC_NEEDED},yes)
  19. BL_COMMON_SOURCES += ${SIPSVC_SOURCES}
  20. else
  21. ifeq (${BL2_SIPSVC_NEEDED},yes)
  22. BL2_SOURCES += ${SIPSVC_SOURCES}
  23. endif
  24. ifeq (${BL31_SIPSVC_NEEDED},yes)
  25. BL31_SOURCES += ${SIPSVC_SOURCES}
  26. endif
  27. endif
  28. endif
  29. # -----------------------------------------------------------------------------