Alberto García Hierro
dd9a831df0
[BUILD] Delete disabled target files from Makefile based build
...
We had several target.mk_ files in order to disable them. With cmake,
those targets are fully defined but we just skip them from CI builds
and releases, so these old files can be safely deleted.
2020-09-18 19:11:24 +01:00
Alberto García Hierro
93f637313a
[CMAKE] Remove old Makefile based build system
2020-09-18 19:07:14 +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
08636297c2
[BOOTLOADER] Fix compilation with cmake
...
The MCU preprocessor defines are slightly different, so these
needed some small tweaking since the page layout selection is
MCU-dependant.
2020-09-07 21:49:57 +01:00
Jonathan Hudson
08874eb94a
clarify cmake usage document / implement review comments
2020-09-06 19:54:24 +01:00
Jonathan Hudson
ab734d9991
document target format
2020-09-06 19:23:47 +01:00
Alberto García Hierro
728769b5bd
[DOC] Update build instructions for macOS to use cmake
2020-09-06 16:58:25 +01:00
Alberto García Hierro
c9b71fc4ea
[CMAKE] Remove BETAFLIGHTF3 target from releases
...
RAM no longer fits
2020-09-06 16:11:46 +01:00
Pawel Spychalski (DzikuVx)
edf94ce7e3
Update WSL for cmake
2020-09-05 13:10:35 +02:00
Jonathan Hudson
bbf994991b
add "Building in FreeBSD Guide"
2020-09-05 10:52:50 +01:00
Jonathan Hudson
1cd4b09696
add dependencies but otherwise disclaim information about unit tests
2020-08-30 10:24:44 +01:00
Jonathan Hudson
75ea5cd210
remove obsolete / erroneous / historic dependency requirements
2020-08-30 09:53:27 +01:00
Jonathan Hudson
6e94916cc4
remove curl from installation requirements
2020-08-28 16:09:51 +01:00
Jonathan Hudson
a0636eb9f8
refine Linux build document
2020-08-28 11:42:56 +01:00
Jonathan Hudson
f216c11b6e
update Linux build documentation for cmake
2020-08-28 11:29:10 +01:00
Jonathan Hudson
7ac4afc46e
rename Linux build documentation
2020-08-28 11:28:21 +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
4db3889160
[CMAKE] Increase project number in CMakeLists.txt to 2.6.0
2020-08-26 16:03:03 +01:00
Alberto García Hierro
fe24e611af
[CMAKE] Consider warnings as errors during CI
2020-08-26 15:50:18 +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
77e3040523
[F4] Remove invalid UTF-8 from system_stm32f4xx.c
2020-08-25 18:19:43 +01:00
Alberto García Hierro
67974ef9ad
[BUILD] Fix linker errors when building with -O0
...
Build didn't fail with -Os or -O2 due to dead code elimination.
Otherwise there were some undefined symbols when USE_OSD or
USE_RX_NRF24 were not defined.
2020-08-25 18:19:43 +01:00
Alberto García Hierro
0041cbcdca
[MISC] Fix warnings found by -Werror
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
b9d3bc5ef7
[BUILD] Add missing headers to main sources list
2020-08-25 18:19:43 +01:00
Alberto García Hierro
bc327ea313
[BUILD] Add missing/renamed sources to cmake sources list
2020-08-25 18:19:43 +01:00
Alberto García Hierro
b9a5f95df9
[BUILD] Add missing targets to cmake
...
FLYWOOF411, FLYWOOF72DUAL, FOXEERF722V2 and IFLIGHTF4_SUCCEXD
2020-08-25 18:19:42 +01:00
Alberto García Hierro
9d054d1be7
[DEVELOPMENT] Update vscode config templates for inav development
2020-08-25 18:19:42 +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
477fcfd52a
[BUILD] Add missing f405 based target ANYFC
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
Michel Pastor
fd24510b71
Improve the settings generator's error reporting ( #6068 )
...
Make the settings generator report when it can't find the values for a
table instead of outputting a cryptic error
2020-08-24 22:27:06 +02:00
Niccolò Maggioni
0115e2e278
Include undocumented settings in docs ( #6061 )
...
* Update autogenerated settings doc
* Include undocumented settings in docs
2020-08-24 22:26:45 +02:00