CMSIS-DSP: Improvement to test framework
Added support for A32.
Still some issues with cycle model.
diff --git a/CMSIS/DSP/Source/BasicMathFunctions/CMakeLists.txt b/CMSIS/DSP/Source/BasicMathFunctions/CMakeLists.txt
index 0821b1d..fe4a4de 100644
--- a/CMSIS/DSP/Source/BasicMathFunctions/CMakeLists.txt
+++ b/CMSIS/DSP/Source/BasicMathFunctions/CMakeLists.txt
@@ -19,7 +19,7 @@
 add_library(CMSISDSPBasicMath STATIC ${SRCF64})
 target_sources(CMSISDSPBasicMath PRIVATE ${SRCF32})
 
-if (NOT ARMAC5)
+if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
 target_sources(CMSISDSPBasicMath PRIVATE ${SRCF16})
 endif()
 
diff --git a/CMSIS/DSP/Source/CMakeLists.txt b/CMSIS/DSP/Source/CMakeLists.txt
index aa1b21d..895e6ec 100755
--- a/CMSIS/DSP/Source/CMakeLists.txt
+++ b/CMSIS/DSP/Source/CMakeLists.txt
@@ -21,6 +21,7 @@
 option(MVEF "MVEF intrinsics supported" OFF)
 option(MVEI "MVEI intrinsics supported" OFF)
 option(MVEFLOAT16 "Float16 MVE intrinsics supported" OFF)
+option(DISABLEFLOAT16 "Disable building float16 kernels" OFF)
 
 # Select which parts of the CMSIS-DSP must be compiled.
 # There are some dependencies between the parts but they are not tracked
diff --git a/CMSIS/DSP/Source/TransformFunctions/CMakeLists.txt b/CMSIS/DSP/Source/TransformFunctions/CMakeLists.txt
index b5a95e1..2411563 100644
--- a/CMSIS/DSP/Source/TransformFunctions/CMakeLists.txt
+++ b/CMSIS/DSP/Source/TransformFunctions/CMakeLists.txt
@@ -28,7 +28,7 @@
 target_sources(CMSISDSPTransform PRIVATE arm_cfft_init_f32.c)
 endif()
 
-if (NOT ARMAC5)
+if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
 if (NOT CONFIGTABLE OR ALLFFT OR CFFT_F16_16 OR CFFT_F16_32 OR CFFT_F16_64 OR CFFT_F16_128 OR CFFT_F16_256 OR CFFT_F16_512 
     OR CFFT_F16_1024 OR CFFT_F16_2048 OR CFFT_F16_4096)
 target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix2_f16.c)
diff --git a/CMSIS/DSP/Source/configDsp.cmake b/CMSIS/DSP/Source/configDsp.cmake
index 12ea633..e5b0195 100644
--- a/CMSIS/DSP/Source/configDsp.cmake
+++ b/CMSIS/DSP/Source/configDsp.cmake
@@ -34,4 +34,9 @@
    target_include_directories(${project} PRIVATE "${root}/CMSIS/DSP/PrivateInclude")
 endif()
 
+if (DISABLEFLOAT16)
+    target_compile_definitions(${project} PRIVATE DISABLEFLOAT16) 
+endif()
+
+
 endfunction()