mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00

To be able to use RSE comms without MHU, a first step is to disentangle the rse_comms.c file with MHU code direct calls. This is done with the creation of a new file rse_comms_mhu.c. New APIs are created to initialize the mailbox, get max message size and send and receive data. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I75dda77e1886beaa6ced6f92c311617125918cfa
42 lines
971 B
Makefile
42 lines
971 B
Makefile
#
|
|
# Copyright (c) 2022-2025, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
$(warning "RSE driver is an experimental feature")
|
|
|
|
RSE_COMMS_SOURCES := $(addprefix drivers/arm/rse/, \
|
|
rse_comms.c \
|
|
rse_comms_protocol.c \
|
|
rse_comms_protocol_embed.c \
|
|
rse_comms_protocol_pointer_access.c \
|
|
)
|
|
|
|
# Default to MHUv2 if PLAT_MHU undefined
|
|
PLAT_MHU ?= MHUv2
|
|
|
|
ifneq (${PLAT_MHU}, NO_MHU)
|
|
ifeq (${PLAT_MHU}, MHUv3)
|
|
RSE_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
|
|
mhu_v3_x.c \
|
|
mhu_wrapper_v3_x.c \
|
|
)
|
|
else ifeq (${PLAT_MHU}, MHUv2)
|
|
RSE_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
|
|
mhu_v2_x.c \
|
|
mhu_wrapper_v2_x.c \
|
|
)
|
|
else
|
|
$(error Unsupported MHU version)
|
|
endif
|
|
|
|
RSE_COMMS_SOURCES += $(addprefix drivers/arm/rse/, \
|
|
rse_comms_mhu.c \
|
|
)
|
|
|
|
PLAT_INCLUDES += -Idrivers/arm/mhu
|
|
endif
|
|
|
|
PLAT_INCLUDES += -Idrivers/arm/rse \
|
|
-Iinclude/lib/psa
|