1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00
Commit graph

452 commits

Author SHA1 Message Date
Alberto García Hierro
074c4dec1c [TESTS] Use CMake to build and run tests
Tests are now managed with cmake, with the intention of eventually
moving the whole build system to it. The root Makefile still has
a test target that has been adjusted to call into the appropriate
cmake commands.

Also, GTest library is now downloaded on demand the first time the
tests are run, so we can delete it from the repository.
2020-07-24 21:41:51 +01:00
Michel Pastor
6f76bd5ad9
Add bootloader and firmware update API (#5728)
* Add F765XG MCU support

* Add bootloader and update system

* Fix linker files
2020-07-20 22:46:15 +02:00
Alberto García Hierro
489d2af639 [CI] Trigger CI on PR only
There's no way to trigger CI on push OR PR, since the CI build
on push is triggered immediately and when the PR is created the
push run is already underway.

Also, make some cosmetic changes to the artifact name to include
the date, inav version and git revision.
2020-03-31 21:49:44 +01:00
Alberto García Hierro
67c6e9d6c8 [MAKE] Avoid adding our custom CFLAGS twice
We don't clear CFLAGS becase we want to allow them to be passed
via command line. However, when building a target we add our
custom ones once in the first parsing of the Makefile and then
again a second time when we invoke make recursively for each target.
This breaks compilation with -Werror.

To workaround this, save the initial CFLAGS in a variable, then
pass them to the recursive invocation of make.
2020-03-26 20:20:55 +00:00
Pawel Spychalski (DzikuVx)
9a723680b7 Fix compilation on Mac 2020-03-11 13:18:33 +01:00
Pawel Spychalski (DzikuVx)
0da14f5ad5 Allow for different optimization profiles depending on file and target in Makefile 2020-03-10 20:06:26 +01:00
Pawel Spychalski (DzikuVx)
6753c410c6 support 3 optimization profiles in Makefile 2020-03-10 19:38:52 +01:00
Pawel Spychalski (DzikuVx)
8f963b240e Allow some files to be compiled with -O2 instead of -Os 2020-03-09 21:09:00 +01:00
Alberto García Hierro
44c9867369 [BUILD] Fix build with DEBUG=GDB and semihosting enabled
Kudos to @shellixyz for spotting it
2020-01-15 10:36:37 +00:00
Alberto García Hierro
494cd254d4 [DEVELOPMENT] Add svd Makefile target to generate SVD file for targets
SVD are useful for some IDEs, to be able to see the state of all
peripherals.
2019-12-09 11:23:53 +00:00
Alberto García Hierro
27ae5a3ef9 [MAKE] Add elf target to the Makefile
Builds the .elf for the current target
2019-12-09 11:23:52 +00:00
Alberto García Hierro
987c7bb73e [MAKE/LOG] Add support for semihosting
Semihosting allows printing debug messages via SWD
2019-12-09 11:23:52 +00:00
Alberto García Hierro
b9311541e4 [MAKE] Split makefiles, add support for OpenOCD and GDB
- Move make/local.mk to the top of the Makefile, so it can
set any variables
- Move target and group definitions to make/targets.mk
- Move settings related rules to make/settings.mk
- Move build-stamp rules to make/stamp.mk
- Define STM32 flash offset in a variable in make/mcu/STM32.mk
- Add make/openocd.mk with openocd-run and openocd-flash targets
- Add make/gdb.mk with gdb-openocd target
2019-12-09 11:23:52 +00:00
Paweł Spychalski
e5567da9e3
RPM filters (#5188)
* Empty framework to apply RPM filter

* Init gyro RPM filter

* Entry point for Dterm filter

* RPM filter implementation

* Bugfixes

* Fix Dterm fileter bank

* Save RPM filter configuration in blackbox header

* Debug RPM frequency

* Disable PWM servo driver on all F3 boards

* Move RPM filter to ITCM_RAM

* Disable target COLIBRI_RACE as it's out of RAM

* Drop FEATURE in favor of just settings
2019-12-04 18:55:48 +01:00
Pawel Spychalski (DzikuVx)
7a001b4b16 Disable not used targets 2019-12-03 12:45:32 +01:00
giacomo892
5b1bd3324b Add MATEKF765 to release 2019-11-16 14:42:09 +01:00
Konstantin (DigitalEntity) Sharlaimov
c9ed6334a6 [MAKE] Fix stflash make target 2019-07-14 11:05:03 +02:00
Konstantin Sharlaimov
2756b81fcf
Merge pull request #4920 from iNavFlight/de_local_preferences
[BUILD] Add local preferences
2019-07-10 20:40:56 +02:00
Konstantin Sharlaimov
f53f8de668
Merge pull request #4918 from shellixyz/AIKONF4_test_group
Add AIKONF4 to test group 6
2019-07-09 20:47:42 +02:00
Konstantin (DigitalEntity) Sharlaimov
8bf5ed7fbd [BUILD] Add local preferences 2019-07-09 20:37:11 +02:00
Michel Pastor
44459ffbde Add AIKONF4 to test group 6 2019-07-09 15:42:33 +02:00
Konstantin (DigitalEntity) Sharlaimov
cde7eb6b94 [TOOLS] Make sure settings compiler uses GCC from installed toolchain 2019-07-08 22:38:45 +02:00
Konstantin (DigitalEntity) Sharlaimov
e9c0eb7846 [TOOL] Port Betaflight's toolchain installer 2019-07-08 22:24:04 +02:00
Konstantin (DigitalEntity) Sharlaimov
805c0efe01 [RCC] Fix non-working RCC on F7xx; Create MHZ_VALUE to allow certain F7xx targets to be downclocked to 168MHz 2019-07-01 21:01:27 +02:00
Michel Pastor
683e6525ff Add more target groups (fix CI build timeouts) 2019-05-27 00:51:30 +02:00
Michel Pastor
39d2a956e9
Add targets for more softserial options on OMNIBUSF4V3 (#4541) 2019-05-24 15:35:36 +02:00
Alberto García Hierro
ae01b3453a Enable -Wstrict-prototypes
Also, fix all warnings shown when it's enabled
2019-04-26 15:57:49 +01:00
Konstantin Sharlaimov (DigitalEntity)
d51d61cb5a Disable SPRACINGF3NEO target 2019-04-14 12:05:48 +02:00
Michel Pastor
5cab7d9bc3
Add MAMBAF405 target (#4521) 2019-03-26 23:22:45 +01:00
giacomo892
1542e381ce split builds 2019-03-10 07:37:28 +01:00
Mooiweertje
0ae53f340d Nox board support (#4216) 2019-02-08 22:41:16 +01:00
Alberto García Hierro
1328de1aae Add support for generating debug ASM files during build time
Generation is enabled by setting the environment variable GENERATE_ASM
to 1. To avoid overwriting files generated by -save-objs, we use
file.txt.S as the filename (-save-objs generates a file.s for each
file.c, and using s and S would break on case insensitive filesystems).
2019-01-19 15:22:51 +00:00
Konstantin Sharlaimov (DigitalEntity)
ecd7b2a6fd Re-enable SPRACINGF3NEO for automated builds 2019-01-06 21:39:44 +01:00
Konstantin Sharlaimov
78bc53f3ad
Refactor TIMER/DMA framework (#3833)
* TIM/DMA abstraction
* Migrage F7 TIM/DMA to HAL_LL
* Refactor timers to use conventional HZ
* Refactor PWM ourput code to use highest possible resolution
* Remove TIMER_OUTPUT_ENABLED
* Temporary disable SPRACINGF3NEO due to out of RAM
2018-09-24 15:10:59 +02:00
Konstantin Sharlaimov
31526f205e
Enable -fno-common (#3823)
* Enable -fno-common; Fix compile errors

* Fix RX_SPI
2018-09-04 19:27:05 +02:00
Yoël Cornamusaz
8c8f8324b2
Add KISSFC target 2018-09-04 00:49:42 +02:00
Alberto García Hierro
ee7bb80505 Require test to actually pass when running make test
The Makefile was returning success via || true even if the tests
failed to run.
2018-07-02 21:58:57 +01:00
Alberto García Hierro
78311cba20 Add support for builds with a version suffix
To build setting a release suffix of "rc1" use:

FC_VER_SUFFIX=rc1 make <target>

The generated files will use a - to separate the version from its
suffix, respecting semver.
2018-06-27 09:48:58 +01:00
Alberto García Hierro
bf0f05af5f Move build-stamp and generatic files to obj/main/$(TARGET)
This allows target level parallel builds, since now there are no
shared files between targets.

Fixes #3261
2018-05-25 11:00:12 +01:00
Konstantin Sharlaimov
05ecae9ad2
Merge pull request #3258 from iNavFlight/de_link_mem_usage
Add memory usage to linker output
2018-05-22 21:05:08 +10:00
Konstantin Sharlaimov (DigitalEntity)
4b27c7cb0f Add memory usage to linker output 2018-05-22 18:26:51 +10:00
Konstantin Sharlaimov
f6802fb615
Balance target list (#3254)
* Balance target list for Travis CI
2018-05-22 18:26:12 +10:00
Niccolò Maggioni
b32f4357f5
Revision compatibility with GPG-signed commits
Based on stronnag/mwptools#41 and stronnag/mwptools#42
2018-05-18 15:03:04 +02:00
Konstantin Sharlaimov (DigitalEntity)
0d02112d2a Fix USBFS driver directories 2018-04-26 14:58:30 +10:00
Konstantin Sharlaimov (DigitalEntity)
255c491808 Fix missing target-specific defines in Makefile 2018-04-26 14:04:45 +10:00
Konstantin Sharlaimov
108b619a34
Cleanup build system and unused source files (#3047)
* Initial cut on cleaning up makefile and libraries.
* F3, F4, F7 support
* Add 'make release' to build targets for release
* Introduce BUILD_SUFFIX options; Comment fix
* Fix USB core
* Fix F7 warnings
* Clean up STM32F1 code
* More cleanups of unused files
2018-04-25 10:01:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
2d1aeef3bf Add support for Aitbot boards: ASGARD32F4, FIREWORKSV2, OMNIBUSF7NXT 2018-04-17 15:15:07 +10:00
stronnag
6a3ea094b5
Merge pull request #2954 from alexeystn/matekf405_servos
Move servo from S1 to S6 pin for MATEKF405
2018-04-04 13:47:07 +01:00
Alexey Stankevich
e0138cd85e Update MATEKF405 target 2018-03-27 22:39:04 +03:00
Alexey Stankevich
92433dcab5 Update MATEKF405 target 2018-03-26 20:42:10 +03:00