Signed-off-by: Alistair Francis <[email protected]>
---
meta-oe/recipes-support/libspdm/libspdm_3.6.0.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-support/libspdm/libspdm_3.6.0.bb
b/meta-oe/recipes-support/libspdm/libspdm_3.6.0.bb
index fa04ce6c59..f3e4b83ed7 100644
--- a/meta-oe/recipes-support/libspdm/libspdm_3.6.0.bb
+++ b/meta-oe/recipes-support/libspdm/libspdm_3.6.0.bb
@@ -17,7 +17,7 @@ S = "${WORKDIR}/git"
inherit cmake
LIBSPDM_CFLAGS = "\
- ${TARGET_CFLAGS} \
+ ${OECMAKE_C_FLAGS} \
-DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 \
-DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 \
-DLIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP=0 \
@@ -25,6 +25,8 @@ LIBSPDM_CFLAGS = "\
-DLIBSPDM_HAL_PASS_SPDM_CONTEXT=1 \
"
+LIBSPDM_CFLAGS:append:toolchain-gcc = " -fPIE"
+
def get_spdm_multiarch(bb, d):
target_arch = d.getVar('TARGET_ARCH')
multiarch_options = {
@@ -52,6 +54,7 @@ EXTRA_OECMAKE += "\
-DCOMPILED_LIBSSL_PATH=${libdir} \
-DDISABLE_TESTS=1 \
-DDISABLE_EDDSA=1 \
+ -DCMAKE_C_FLAGS='${LIBSPDM_CFLAGS}' \
"
do_install () {
--
2.47.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115231):
https://lists.openembedded.org/g/openembedded-devel/message/115231
Mute This Topic: https://lists.openembedded.org/mt/110965186/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-