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