rse_comms.mk 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (c) 2022-2024, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. $(warning "RSE driver is an experimental feature")
  7. RSE_COMMS_SOURCES := $(addprefix drivers/arm/rse/, \
  8. rse_comms.c \
  9. rse_comms_protocol.c \
  10. rse_comms_protocol_embed.c \
  11. rse_comms_protocol_pointer_access.c \
  12. )
  13. # Default to MHUv2 if PLAT_MHU_VERSION undefined
  14. PLAT_MHU_VERSION ?= 2
  15. ifeq (${PLAT_MHU_VERSION}, 3)
  16. RSE_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
  17. mhu_v3_x.c \
  18. mhu_wrapper_v3_x.c \
  19. )
  20. else ifeq (${PLAT_MHU_VERSION}, 2)
  21. RSE_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
  22. mhu_v2_x.c \
  23. mhu_wrapper_v2_x.c \
  24. )
  25. else
  26. $(error Unsupported MHU version)
  27. endif
  28. PLAT_INCLUDES += -Idrivers/arm/rse \
  29. -Idrivers/arm/mhu \
  30. -Iinclude/lib/psa