optee: update for gcc 15 and DEBUG_PREFIX_MAP changes

* pass -std=gnu17 and disable errors for unterminated string
  initialization warnings in the test programs
* update the sed filter to catch -ffile-prefix-map for the
  TA development kit

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2025-05-01 10:04:27 -07:00
parent 28343e3837
commit d0e716d5a2
2 changed files with 3 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ do_install() {
for f in ${B}/export-ta_${OPTEE_ARCH}/* ; do
cp -aR $f ${D}${includedir}/optee/export-user_ta/
done
sed -i -r -e's!-f(macro|debug)-prefix-map=[^ ]+!!g' ${D}${includedir}/optee/export-user_ta/mk/conf.mk
sed -i -r -e's!-f(macro|debug|file)-prefix-map=[^ ]+!!g' ${D}${includedir}/optee/export-user_ta/mk/conf.mk
}
FILES:${PN} = "${includedir}/optee/"

View File

@@ -14,6 +14,8 @@ DEPENDS += "optee-os-tadevkit optee-client openssl"
S = "${WORKDIR}/optee_test"
B = "${WORKDIR}/build"
CFLAGS += "-std=gnu17 -Wno-error=unterminated-string-initialization"
EXTRA_OEMAKE += " \
CROSS_COMPILE_HOST=${HOST_PREFIX} \
CROSS_COMPILE_TA=${HOST_PREFIX} \