Build: Correcrt CONFIG_TFM_FP cmake parameter
Fix wrong cmake parameter CONFIG_TFM_SPE_FP as CONFIG_TFM_FP.
Signed-off-by: Feder Liang <feder.liang@arm.com>
Change-Id: Iacd7f426c863deef79be27ab4afd868f8a46d50a
diff --git a/toolchain_GNUARM.cmake b/toolchain_GNUARM.cmake
index 7645f58..654d5bb 100644
--- a/toolchain_GNUARM.cmake
+++ b/toolchain_GNUARM.cmake
@@ -76,8 +76,8 @@
endif()
endif()
if(GCC_VERSION VERSION_GREATER_EQUAL "8.0.0")
- if (DEFINED CONFIG_TFM_SPE_FP)
- if(CONFIG_TFM_SPE_FP STREQUAL "0" AND
+ if (DEFINED CONFIG_TFM_FP)
+ if(CONFIG_TFM_FP STREQUAL "0" AND
NOT TFM_SYSTEM_ARCHITECTURE STREQUAL "armv6-m")
string(APPEND CMAKE_SYSTEM_PROCESSOR "+nofp")
endif()
diff --git a/tools/config_impl.cmake.template b/tools/config_impl.cmake.template
index 59a327c..4c9dbcc 100644
--- a/tools/config_impl.cmake.template
+++ b/tools/config_impl.cmake.template
@@ -33,7 +33,7 @@
message(FATAL_ERROR "Invalid partition number input, check configurations.")
{% endif %}
- if((CONFIG_TFM_SPE_FP GREATER 0) AND CONFIG_TFM_SPM_BACKEND_SFN)
+ if((CONFIG_TFM_FP GREATER 0) AND CONFIG_TFM_SPM_BACKEND_SFN)
message(FATAL_ERROR "FP is not supported for SFN model.")
endif()
endif()