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

89 commits

Author SHA1 Message Date
Martin Luessi
89b59146c0 Add RAM and Ext Flash config streamer to F3, F4, F7, H7 2021-08-06 15:32:53 -07:00
Pawel Spychalski (DzikuVx)
375938cf37 Merge branch 'master' into update_compiler_10_2_1 2021-07-28 08:52:22 +02:00
bkleiner
d42fb4314e h7: add adc implementation 2021-05-31 17:48:26 +02:00
bkleiner
87c8205f69 import dma impl for h7 2021-05-29 20:54:42 +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
Jonathan Hudson
d95a1f83a8 set -Os for F411 2021-03-27 09:52:20 +00:00
Jonathan Hudson
bb102e3ce5 update compiler version 2021-03-25 18:45:21 +00:00
Alberto García Hierro
fa660aaacd build: Use -Os for F7 targets with flash <= 512K
As requested by @dzikuvx ;-)
2021-01-31 16:45:03 +00:00
Konstantin Sharlaimov
c8c8564767
Merge pull request #6374 from iNavFlight/agh_deduplicate_version
build: deduplicate version number
2020-12-05 10:12:37 +01:00
Konstantin (DigitalEntity) Sharlaimov
9fa9ee514f [BUILD] Update the toolchain to gcc-9.3.1 2020-12-04 21:24:31 +01: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
e72e70209e [H7] Add preliminary support for H7 CPUs 2020-11-07 14:28:14 +01:00
Niccolò Maggioni
15eaeba4e8
Docker CMake support 2020-10-02 16:21:23 +02:00
Alberto García Hierro
a88aaca74b [CMAKE] Override .hex start address with 0x08000000
The configurator does rely on the .hex start address being set to
0x08000000. I'm not sure this is actually required and we should
fix the configurator instead. However, in order to allow older
versions of configurator to flash newer firmwares, we should
the .hex files built with cmake compatible for at least some
releases.
2020-09-20 21:02:40 +01:00
Alberto García Hierro
2e3000798b [CMAKE] Change clean_* targets to call <backend> clean
Removing CMAKE_CURRENT_BINARY_DIR directly is problematic, since it
also removes files generated by cmake and can cause errors that will
require regenerating the build system files.

Instead, call <backend> clean (e.g. make clean or ninja clean) in
CMAKE_CURRENT_BINARY_DIR. This ensures all the files generated by
the build system are removed, but any files generated as a part of
cmake's configuration step are preserved.
2020-09-20 17:17:07 +01:00
Alberto García Hierro
427933c5ad [CMAKE] Make the with_bl targets depend on targets instead of files
While depending in the output files of other targets work fine with
cmake 3.17+ and/or ninja, it fails with cmake 3.14 and make. This
way works fine with all the combinations of cmake+backend we do
care about.
2020-09-14 22:27:29 +01:00
Alberto García Hierro
888763f59e [CMAKE] Cosmetic changes
- Make sure all the new files are terminated with newlines
- Fix typos
2020-08-27 12:30:51 +01:00
Alberto García Hierro
056489d856 [CMAKE] Add workaround for cmake -E rm with versions prior to 3.17 2020-08-26 22:40:28 +01:00
Alberto García Hierro
227c4e1243 [CMAKE] Prepend local compiler installation to PATH instead of appending
Also, use the proper pathlist separator on Windows
2020-08-26 22:40:06 +01:00
Alberto García Hierro
d3fcadac05 [CMAKE] Add support for using Linux compiler binaries on FreeBSD 2020-08-26 21:26:34 +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
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
8f62efb43b [CMAKE] Cleanup semihosting support 2020-08-25 18:19:43 +01:00
Alberto García Hierro
bd490a52f3 [CMAKE] Add support for having targets that are not part of the release
Add a SKIP_RELEASES target argument
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
49b9347b10 [BUILD] Print the number of targets for the current toolchain with cmake 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
65c04ae234 [BUILD] Build F7 based targets with cmake 2020-08-25 18:19:42 +01:00
Alberto García Hierro
fedabef03e [BUILD] Add support for building F3 targets with cmake 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
0811839935 [BUILD] Port all f405 and f427 targets to 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