Signed-off-by: Anton Antonov <[email protected]>
---
.../recipes-parsec/parsec-service/parsec-service_1.0.0.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.0.0.bb
b/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.0.0.bb
index ad7e560..84539f9 100644
--- a/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.0.0.bb
+++ b/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.0.0.bb
@@ -26,7 +26,11 @@ PARSEC_FEATURES =
"${@d.getVar('PACKAGECONFIG_CONFARGS',True).strip().replace('
CARGO_BUILD_FLAGS += " --features ${PARSEC_FEATURES}"
export BINDGEN_EXTRA_CLANG_ARGS
-BINDGEN_EXTRA_CLANG_ARGS = "--sysroot=${WORKDIR}/recipe-sysroot
-I${WORKDIR}/recipe-sysroot/usr/include"
+target = "${@d.getVar('TARGET_SYS',True).replace('-', ' ')}"
+BINDGEN_EXTRA_CLANG_ARGS = "${@bb.utils.contains('target', 'arm', \
+ '--sysroot=${WORKDIR}/recipe-sysroot
-I${WORKDIR}/recipe-sysroot/usr/include -mfloat-abi=hard', \
+ '--sysroot=${WORKDIR}/recipe-sysroot
-I${WORKDIR}/recipe-sysroot/usr/include', \
+ d)}"
inherit systemd
SYSTEMD_SERVICE:${PN} = "parsec.service"
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57154): https://lists.yoctoproject.org/g/yocto/message/57154
Mute This Topic: https://lists.yoctoproject.org/mt/91286325/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-