Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame^] | 1 | include(Toolchain/Tools) |
| 2 | SET(PLATFORMFOLDER "FVP") |
| 3 | option(OPTIMIZED "Compile for speed" ON) |
| 4 | include(configPlatform) |
| 5 | include(configBoot) |
| 6 | include(configCore) |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 7 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame^] | 8 | define_property(TARGET |
| 9 | PROPERTY DISABLEOPTIMIZATION |
| 10 | BRIEF_DOCS "Force disabling of optimizations" |
| 11 | FULL_DOCS "Force disabling of optimizations") |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 12 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame^] | 13 | # Config core settings |
| 14 | # Configure platform (semihosting etc ...) |
| 15 | # May be required for some compiler |
| 16 | function(disableOptimization project) |
| 17 | set_target_properties(${project} PROPERTIES DISABLEOPTIMIZATION ON) |
| 18 | endfunction() |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 19 | |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 20 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame^] | 21 | function(configLib project cmsisRoot) |
| 22 | configcore(${project} ${cmsisRoot}) |
| 23 | configplatformForLib(${project} ${cmsisRoot}) |
| 24 | SET(COREID ${COREID} PARENT_SCOPE) |
| 25 | endfunction() |
| 26 | |
| 27 | # Config app |
| 28 | function (configApp project cmsisRoot) |
| 29 | configcore(${project} ${cmsisRoot}) |
| 30 | configboot(${project} ${cmsisRoot} ${cmsisRoot}/CMSIS/DSP/Platforms/${PLATFORMFOLDER}) |
| 31 | set_platform_core() |
| 32 | core_includes(${project}) |
| 33 | SET(PLATFORMID ${PLATFORMID} PARENT_SCOPE) |
| 34 | SET(COREID ${COREID} PARENT_SCOPE) |
Christophe Favergeon | e018132 | 2019-05-20 13:25:14 +0200 | [diff] [blame] | 35 | endfunction() |