mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-04 14:10:01 +00:00
arm/trusted-services: fix MbedTLS build issue
MbedTLS fails to build when FORTIFY_SOURCE is enabled and the NWd configuration is used. Disable the compilation option temporary till the root cause can be fund and a proper fix be made. The build only fails when building from yocto. The OP-TEE integration works fine with gcc v13.2_rel1. Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -18,6 +18,10 @@ TOOLCHAIN = "gcc"
|
||||
|
||||
FILES:${PN} = "${bindir}/ts-demo"
|
||||
|
||||
# TODO: remove FORTIFY_SOURCE as MbedTLS fails to build in yocto if this
|
||||
# compilation flag is used.
|
||||
lcl_maybe_fortify = "${@oe.utils.conditional('OPTLEVEL','-O0','','${OPTLEVEL}',d)}"
|
||||
|
||||
do_install:append () {
|
||||
install -d ${D}${bindir}
|
||||
mv ${D}${TS_INSTALL}/bin/ts-demo ${D}${bindir}
|
||||
|
||||
@@ -16,6 +16,9 @@ SRCREV_psaqcbor = "42272e466a8472948bf8fca076d113b81b99f0e0"
|
||||
|
||||
EXTRA_OECMAKE += "-DPSA_TARGET_QCBOR=${WORKDIR}/git/psaqcbor \
|
||||
"
|
||||
# TODO: remove FORTIFY_SOURCE as MbedTLS fails to build in yocto if this
|
||||
# compilation flag is used.
|
||||
lcl_maybe_fortify = "${@oe.utils.conditional('OPTLEVEL','-O0','','${OPTLEVEL}',d)}"
|
||||
|
||||
# Mbedtls 3.1.0 does not compile with clang.
|
||||
# This can be removed after TS updated required mbedtls version
|
||||
|
||||
Reference in New Issue
Block a user