Skip to content

Commit

Permalink
Add CMake presets per target (#216)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Feb 15, 2023
1 parent 9822c83 commit d118a2e
Show file tree
Hide file tree
Showing 17 changed files with 896 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 4,
"include": [
"ChibiOS/BrainPad2/CMakePresets.json",
"ChibiOS/GHI_FEZ_CERB40_NF/CMakePresets.json",
"ChibiOS/I2M_ELECTRON_NF/CMakePresets.json",
"ChibiOS/I2M_OXYGEN_NF/CMakePresets.json",
"ChibiOS/MBN_QUAIL/CMakePresets.json",
"ChibiOS/NETDUINO3_WIFI/CMakePresets.json",
"ChibiOS/PybStick2x/CMakePresets.json",
"ChibiOS/ST_NUCLEO64_F401RE_NF/CMakePresets.json",
"ChibiOS/ST_NUCLEO64_F411RE_NF/CMakePresets.json",
"ChibiOS/ST_NUCLEO144_F412ZG_NF/CMakePresets.json",
"ChibiOS/ST_NUCLEO144_F439ZI/CMakePresets.json",
"ChibiOS/ST_NUCLEO144_F746ZG/CMakePresets.json",
"ChibiOS/ST_STM32F4_DISCOVERY/CMakePresets.json",
"ChibiOS/ST_STM32F411_DISCOVERY/CMakePresets.json",
"ChibiOS/WEACT_F411CE/CMakePresets.json",
"TI_SimpleLink/TI_CC1352P1_LAUNCHXL/CMakePresets.json"
]
}
54 changes: 54 additions & 0 deletions ChibiOS/BrainPad2/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "BrainPad2",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
"STM32_CUBE_PACKAGE_REQUIRED": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "OFF",
"USE_RNG": "OFF",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_SDCARD": "OFF",
"SWO_OUTPUT": "OFF",
"NF_BUILD_RTM": "OFF",
"API_System.Math": "ON",
"API_Hardware.Stm32": "ON",
"API_System.Device.Gpio": "ON",
"API_System.Device.Spi": "ON",
"API_System.Device.I2c": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_System.Device.Adc": "ON",
"API_nanoFramework.Devices.OneWire": "OFF",
"API_nanoFramework.Device.Can": "OFF",
"API_nanoFramework.ResourceManager": "ON",
"API_nanoFramework.System.Collections": "ON",
"API_nanoFramework.System.Text": "ON"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "BrainPad2",
"displayName": "BrainPad2",
"configurePreset": "BrainPad2"
}
]
}
53 changes: 53 additions & 0 deletions ChibiOS/GHI_FEZ_CERB40_NF/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "GHI_FEZ_CERB40_NF",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"USE_RNG": "ON",
"DP_FLOATINGPOINT": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "OFF",
"SWO_OUTPUT": "OFF",
"NF_BUILD_RTM": "OFF",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_CONFIG_BLOCK": "OFF",
"NF_FEATURE_USE_FILESYSTEM": "OFF",
"NF_NETWORKING_SNTP": "OFF",
"API_Hardware.Stm32": "ON",
"API_nanoFramework.Device.Can": "OFF",
"API_nanoFramework.Device.OneWire": "OFF",
"API_System.Math": "ON",
"API_System.Net": "OFF",
"API_System.Device.Adc": "ON",
"API_System.Device.Gpio": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_System.Device.Spi": "ON",
"API_Windows.Storage": "OFF"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "GHI_FEZ_CERB40_NF",
"displayName": "GHI_FEZ_CERB40_NF",
"configurePreset": "GHI_FEZ_CERB40_NF"
}
]
}
58 changes: 58 additions & 0 deletions ChibiOS/I2M_ELECTRON_NF/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "I2M_ELECTRON_NF",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"USE_FPU": "ON",
"USE_RNG": "OFF",
"DP_FLOATINGPOINT": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "OFF",
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
"SWO_OUTPUT": "OFF",
"NF_BUILD_RTM": "OFF",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_CONFIG_BLOCK": "OFF",
"NF_FEATURE_HAS_SDCARD": "OFF",
"NF_FEATURE_HAS_USB_MSD": "OFF",
"NF_NETWORKING_SNTP": "OFF",
"API_Hardware.Stm32": "ON",
"API_nanoFramework.Device.Can": "OFF",
"API_nanoFramework.Device.OneWire": "OFF",
"API_System.Math": "ON",
"API_System.Net": "OFF",
"API_System.Device.Adc": "ON",
"API_System.Devices.Dac": "OFF",
"API_System.Device.Gpio": "ON",
"API_System.Device.I2c": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_System.Device.Spi": "ON",
"API_Windows.Storage": "OFF"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "I2M_ELECTRON_NF",
"displayName": "I2M_ELECTRON_NF",
"configurePreset": "I2M_ELECTRON_NF"
}
]
}
56 changes: 56 additions & 0 deletions ChibiOS/I2M_OXYGEN_NF/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "I2M_OXYGEN_NF",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"USE_RNG": "OFF",
"DP_FLOATINGPOINT": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "OFF",
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
"SWO_OUTPUT": "OFF",
"NF_BUILD_RTM": "OFF",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_CONFIG_BLOCK": "OFF",
"NF_FEATURE_HAS_SDCARD": "OFF",
"NF_FEATURE_HAS_USB_MSD": "OFF",
"NF_NETWORKING_SNTP": "OFF",
"API_Hardware.Stm32": "ON",
"API_nanoFramework.Device.Can": "OFF",
"API_nanoFramework.Device.OneWire": "OFF",
"API_System.Math": "ON",
"API_System.Net": "OFF",
"API_System.Device.Adc": "ON",
"API_System.Device.Gpio": "ON",
"API_System.Device.I2c": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_System.Device.Spi": "ON",
"API_Windows.Storage": "OFF"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "I2M_OXYGEN_NF",
"displayName": "I2M_OXYGEN_NF",
"configurePreset": "I2M_OXYGEN_NF"
}
]
}
49 changes: 49 additions & 0 deletions ChibiOS/MBN_QUAIL/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "MBN_QUAIL",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
"STM32_CUBE_PACKAGE_REQUIRED": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "ON",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_BUILD_RTM": "OFF",
"API_System.Math": "ON",
"API_Hardware.Stm32": "ON",
"API_System.Device.Gpio": "ON",
"API_System.Device.Spi": "ON",
"API_System.Device.I2c": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_nanoFramework.Device.OneWire": "ON",
"API_nanoFramework.ResourceManager": "ON",
"API_nanoFramework.System.Collections": "ON",
"API_nanoFramework.System.Text": "ON"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "MBN_QUAIL",
"displayName": "MBN_QUAIL",
"configurePreset": "MBN_QUAIL"
}
]
}
52 changes: 52 additions & 0 deletions ChibiOS/NETDUINO3_WIFI/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": 4,
"include": [
"../../../CMake/arm-gcc.json",
"../../../config/user-tools-repos.json",
"../../../config/user-prefs.json"
],
"configurePresets": [
{
"name": "NETDUINO3_WIFI",
"inherits": [
"arm-gcc-cortex-preset",
"user-tools-repos",
"user-prefs"
],
"hidden": false,
"cacheVariables": {
"TARGET_BOARD": "${presetName}",
"RTOS": "ChibiOS",
"TARGET_SERIES": "STM32F4xx",
"CHIBIOS_CONTRIB_REQUIRED": "OFF",
"STM32_CUBE_PACKAGE_REQUIRED": "OFF",
"SUPPORT_ANY_BASE_CONVERSION": "ON",
"NF_FEATURE_DEBUGGER": "ON",
"NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_SDCARD": "ON",
"SWO_OUTPUT": "OFF",
"NF_BUILD_RTM": "OFF",
"API_System.Math": "ON",
"API_Hardware.Stm32": "ON",
"API_System.Device.Gpio": "ON",
"API_System.Device.Spi": "ON",
"API_System.Device.I2c": "ON",
"API_System.Device.Pwm": "ON",
"API_System.IO.Ports": "ON",
"API_System.Device.Adc": "ON",
"API_nanoFramework.Device.OneWire": "ON",
"API_nanoFramework.ResourceManager": "ON",
"API_nanoFramework.System.Collections": "ON",
"API_nanoFramework.System.Text": "ON"
}
}
],
"buildPresets": [
{
"inherits": "base-user",
"name": "NETDUINO3_WIFI",
"displayName": "NETDUINO3_WIFI",
"configurePreset": "NETDUINO3_WIFI"
}
]
}
Loading

0 comments on commit d118a2e

Please sign in to comment.