arch: arm: Disallow FP_HARDABI when building with TFM

When building with TFM, the app is linked with libraries built by the
TFM build system. TFM is always built with -msoft-float which is
equivalent to -mfloat-abi=soft. FP_HARDABI adds -mfloat-abi=hard
which gives errors when linking with the libs from TFM since they are
built with a different ABI.

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/33956

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2021-04-06 12:01:22 +02:00 committed by Kumar Gala
commit 80a351e22d

View file

@ -221,6 +221,7 @@ choice
config FP_HARDABI
bool "Floating point Hard ABI"
depends on !BUILD_WITH_TFM
help
This option selects the Floating point ABI in which hardware floating
point instructions are generated and uses FPU-specific calling