package/libspdm: Support spdm_context in the HAL

This allows us to build libspdm with support for `spdm-context` in the
HAL functions. This is required by `spdm-utils`, this macro will be
dissolved in libspdm 4.x, with this feature being defaulted on.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
[Julien: rebased on libspdm 3.5.0 recipe]
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Wilfred Mallawa 2024-08-27 15:16:31 +10:00 committed by Julien Olivain
parent 4131c0b17e
commit 49ad3a62fd

View File

@ -22,7 +22,8 @@ LIBSPDM_CFLAGS = \
-DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 \ -DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 \
-DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 \ -DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 \
-DLIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP=0 \ -DLIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP=0 \
-DLIBSPDM_ENABLE_CAPABILITY_SET_KEY_PAIR_INFO_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_SET_KEY_PAIR_INFO_CAP=0 \
-DLIBSPDM_HAL_PASS_SPDM_CONTEXT=1
LIBSPDM_CONF_OPTS = \ LIBSPDM_CONF_OPTS = \
-DARCH=$(LIBSPDM_TARGET_CPU_FAMILY) \ -DARCH=$(LIBSPDM_TARGET_CPU_FAMILY) \