]> code.ossystems Code Review - meta-freescale.git/commit
optee-os: fix gcc10 build for imx fork
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Tue, 26 May 2020 22:50:17 +0000 (22:50 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 26 May 2020 23:15:39 +0000 (20:15 -0300)
commit6cbfb85c6e052032a420b0e6ea1b1c45aac2f872
treef5294a85a2e47ee4955b9e84ac00b331a3d3112f
parentb8d7aec6bcaa37229794ee96afe51f9e3c198435
optee-os: fix gcc10 build for imx fork

OP-TEE OS component fails to build on gcc10 due to missing __getauxval
function. This can be resolved via disabling of outline-atomics feature
in gcc10.

Backport upstream patch [1] with adaptions to optee-imx version.

Original patch uses $(call cc-option,-mno-outline-atomics,) to disable
outline-atomics which itself is broken and required 4 additional patches
to be compatible with gcc and clang.

This is resolved in the upstream PR [2], which is applicable to the
latest upstream version.

NXP fork contains old version of OP-TEE, and therefore would receive the
update for Makefiles with new version. Since it is not required to make
current NXP version compatible with old compiler versions on master
branch - outline-atomics are disabled directly.

[1]: https://github.com/OP-TEE/optee_os/pull/3891/commits/e07c2b062846df4385542f4e4fe08b40cf7d8191
[2]: https://github.com/OP-TEE/optee_os/pull/3891

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
recipes-security/optee-imx/optee-os/0001-arm64-Disable-outline-atomics-when-compiling.patch [new file with mode: 0644]
recipes-security/optee-imx/optee-os_3.2.0.imx.bb