1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 19:40:27 +03:00
Commit graph

21 commits

Author SHA1 Message Date
Pawel Spychalski (DzikuVx)
be12abf69f Version bump to 5.0 2021-11-10 13:56:28 +01:00
Pawel Spychalski (DzikuVx)
cade2bd41d Bump version to 4.0 2021-09-15 18:16:44 +02:00
Pawel Spychalski (DzikuVx)
2800d11392 Version bump to 3.1 2021-05-15 08:54:01 +02:00
Michel Pastor
fc0e5e2741
Get setting default values from settings.yaml (#6595)
* Get setting default values from settings.yaml

* settings: Make the generator more robust and versatile

- Add support for resolving types and values in multiple compilers
- Add support for resolving types and values in clang 10
- Add support for using the host compiler for resolving the settings

This allows us to run the generator for the unit tests, since they now
need the settings_generated.h file to get the default setting values
from it.

* Fix regexps in settings.rb and add execution bit

* Fix git revision issue

* Fix issue with settings validation

* Fix issue with targets not defining USE_MAG

Co-authored-by: Alberto García Hierro <alberto@garciahierro.com>
2021-04-07 17:48:09 +02:00
Pawel Spychalski (DzikuVx)
91a5a51cc0 Version bump to 3.0 2021-03-29 12:08:39 +02:00
Alberto García Hierro
930a60006a build: deduplicate version number
Make the version in the CMakeLists.txt the canonical one. Instead
of redefining it in version.h, use command line flags to pass
-DFC_VERSION_{MAJOR,MINOR,PATCH_LEVEL}
2020-12-04 20:13:02 +00:00
Konstantin (DigitalEntity) Sharlaimov
6caf713a54 Bump cmake version 2020-12-04 21:02:05 +01:00
Alberto García Hierro
9712376a22 [CMAKE] Support cmake 3.13 and up
3.13 is what ships with current Debian stable, so it seems like
a reasonable baseline
2020-08-26 21:20:33 +01:00
Alberto García Hierro
4db3889160 [CMAKE] Increase project number in CMakeLists.txt to 2.6.0 2020-08-26 16:03:03 +01:00
Alberto García Hierro
9ac514c107 [CMAKE] Run all CI jobs using CMake
- Fix compilation on case sensitive filesystems
- Fix case sensitive paths in F7 drivers
- Fix warnings related to MSC redefinition
- Fix invalid dual gyro definition in FOXEERF722V2
- Remove FURYF3, KFC32F3_INAV and SPRACINGF3EVO from releases
- Always use usbd_storage_sd_spi.c for SDCARD + MSC
- Add targets for SPEEDYBEEF7, FRSKYPILOT and FRSKY_ROVERF7
- Add BUILD_SUFFIX configure-time option
- Add COMPILER_VERSION_CHECK boolean option defaulting to ON
2020-08-26 15:40:14 +01:00
Alberto García Hierro
e689bbef95 [CMAKE] Add support for automatically downloading the arm compiler 2020-08-25 18:19:43 +01:00
Alberto García Hierro
7575cd44e8 [CMAKE] Use GetGitRevisionDescription.cmake to retrieve git rev
This way the git revision is automatically regenerated when the
revision changes without having to re-run cmake's configuration
step.
2020-08-25 18:19:43 +01:00
Alberto García Hierro
15777844ac [CMAKE] Allow running tests from the main source build
When no alternative toolchain is provided, we explicitely include
the src/tests directory, so the check target (which builds and runs
tests) is available from a main source build without having to
build specifically the src/tests directory
2020-08-25 18:19:43 +01:00
Alberto García Hierro
d0938cc21f [CMAKE] Add support for bootloader targets
- Rename function for target name definitions to include full MCU
names, so we can support multiple size variants of the same MCU
cleanly
- Add cmake targets for .bin/.hex files from .elf files
- Add targets for bootloader generation
- Add targets for combining the bootloader with the main firmware
2020-08-25 18:19:43 +01:00
Alberto García Hierro
fd42e03f04 [BUILD] Add more compile options for stm32
WARNIGNS_AS_ERRORS, DEBUG_HARDFAULTS and SEMIHOSTING can now be
turned on/off
2020-08-25 18:19:43 +01:00
Alberto García Hierro
93723d0ad0 [BUILD] Add support for svd generation with cmake
Used for IDE-based debugging
2020-08-25 18:19:42 +01:00
Alberto García Hierro
d6177e6933 [BUILD] Add support for openocd helpers with cmake
- Add openocd_<target>: runs openocd for the target
- Add openocd_flash_<target>: flashes the target using openocd.
 It works with both an already running openocd instance as well
 as launching its own one. Uses a helper tool that requires python.
- Add openocd_cfg_<target>: generates openocd config for target. Used
 for generating an openocd config automatically when launching
 a debug session from an IDE.
2020-08-25 18:19:42 +01:00
Alberto García Hierro
fb9f61a583 [BUILD] Use -Os for F3, -O2 for F4/F7 with cmake 2020-08-25 18:19:42 +01:00
Alberto García Hierro
518e8243cb [BUILD] Refactor cmake macros and variable names
Make them a bit more generic
2020-08-25 18:19:42 +01:00
Alberto García Hierro
57e21bf310 [BUILD] Fix .hex and .map generation with cmake 2020-08-25 18:19:42 +01:00
Alberto García Hierro
8035a59639 [BUILD] Initial and very basic support for CMake
Only F411 based targets have been ported for now
2020-07-24 21:41:51 +01:00