CMSIS-DSP:Some corrections to cmake build system.

pull/19/head
Christophe Favergeon 6 years ago
parent 38796adc5a
commit b8fbe472b0

@ -7,7 +7,6 @@ include(config)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/..) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/..)
option(FASTMATHCOMPUTATIONS "Fast Math enabled" ON)
option(NEON "Neon acceleration" OFF) option(NEON "Neon acceleration" OFF)
option(NEONEXPERIMENTAL "Neon experimental acceleration" OFF) option(NEONEXPERIMENTAL "Neon experimental acceleration" OFF)
option(LOOPUNROLL "Loop unrolling" ON) option(LOOPUNROLL "Loop unrolling" ON)

@ -17,3 +17,4 @@ GeneratedInclude/
GeneratedSource/ GeneratedSource/
*.db *.db
TestDesc.txt TestDesc.txt
currentConfig.csv

@ -1,2 +0,0 @@
OPTIMIZED,HARDFP,FASTMATH,NEON,UNROLL,ROUNDING,PLATFORM,CORE,COMPILER,VERSION
1,1,1,1,1,0,FVP,ARMCA5,AC6,6120001
1 OPTIMIZED HARDFP FASTMATH NEON UNROLL ROUNDING PLATFORM CORE COMPILER VERSION
2 1 1 1 1 1 0 FVP ARMCA5 AC6 6120001

@ -36,7 +36,14 @@ function(compilerSpecificCompileOptions PROJECTNAME ROOT)
if (ARM_CPU STREQUAL "cortex-m33" ) if (ARM_CPU STREQUAL "cortex-m33" )
target_compile_options(${PROJECTNAME} PUBLIC "-mfpu=fpv5-sp-d16") target_compile_options(${PROJECTNAME} PUBLIC "-mfpu=fpv5-sp-d16")
#target_compile_options(${PROJECTNAME} PUBLIC -funsigned-char;-fshort-enums;-fshort-wchar;-ffunction-sections) endif()
if (ARM_CPU STREQUAL "cortex-m7" )
target_compile_options(${PROJECTNAME} PUBLIC "-mfpu=fpv5-sp-d16")
endif()
if (ARM_CPU STREQUAL "cortex-m4" )
target_compile_options(${PROJECTNAME} PUBLIC "-mfpu=fpv4-sp-d16")
endif() endif()
if (ARM_CPU STREQUAL "cortex-a9" ) if (ARM_CPU STREQUAL "cortex-a9" )

@ -6,6 +6,7 @@ SET(CORTEXM ON)
option(HARDFP "Hard floating point" ON) option(HARDFP "Hard floating point" ON)
option(LITTLEENDIAN "Little endian" ON) option(LITTLEENDIAN "Little endian" ON)
option(FASTMATHCOMPUTATIONS "Fast Math enabled" OFF)
# More detailed identification for benchmark results # More detailed identification for benchmark results
SET(COREID ARMCM7) SET(COREID ARMCM7)

@ -1,5 +1,5 @@
option(SEMIHOSTING "Test trace using printf" ON) option(SEMIHOSTING "Test trace using printf" ON)
option(PLATFORM "Platform" "FVP") SET(PLATFORM "FVP")
if (PLATFORM STREQUAL "FVP") if (PLATFORM STREQUAL "FVP")

Loading…
Cancel
Save