Test: Enable FPU test suite
Enable FPU module to build Non-Secure FPU test. Align the Co-processor
compiler flags with SPE.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Co-authored-by: David Hu <david.hu@arm.com>
Change-Id: Ifc5e67bb65e9b5c92bb553a504cea612a145cdd9
diff --git a/cmake/utils.cmake b/cmake/utils.cmake
index 2fd6dbb..bc59f1e 100644
--- a/cmake/utils.cmake
+++ b/cmake/utils.cmake
@@ -85,3 +85,17 @@
set(${cmd_line} ${TEMP_CMD_LINE} PARENT_SCOPE)
endfunction()
+
+function(tfm_invalid_config)
+ if (${ARGV})
+ string (REPLACE ";" " " ARGV_STRING "${ARGV}")
+ string (REPLACE "STREQUAL" "=" ARGV_STRING "${ARGV_STRING}")
+ string (REPLACE "GREATER" ">" ARGV_STRING "${ARGV_STRING}")
+ string (REPLACE "LESS" "<" ARGV_STRING "${ARGV_STRING}")
+ string (REPLACE "VERSION_LESS" "<" ARGV_STRING "${ARGV_STRING}")
+ string (REPLACE "EQUAL" "=" ARGV_STRING "${ARGV_STRING}")
+ string (REPLACE "IN_LIST" "in" ARGV_STRING "${ARGV_STRING}")
+
+ message(FATAL_ERROR "INVALID CONFIG: ${ARGV_STRING}")
+ endif()
+endfunction()