Commit Graph

603 Commits

Author SHA1 Message Date
mikeller e5f98efdfe Fixed 'flash' make rule, added support for DFU flashing (requires 'dfu-util'). 2019-05-14 07:56:54 +12:00
mikeller d529c2ca23 Removed legacy F3 target from 'pre-push' target. 2019-05-05 16:03:12 +12:00
blckmn 4e529e1c25 moved the linker files to the src directory head 2019-04-28 16:04:44 +10:00
Mikolaj Stawiski 51d11bdee8 Improved Makefile by taking out compile_file function for repeated statements. 2019-03-19 09:25:00 +11:00
Michael Keller 022d2708c8
Merge pull request #7623 from betaflight/bf-allow-per-file-compilation-without-optimization
Allow files to compiled without optimization.
2019-03-07 03:29:31 +13:00
Dominic Clifton e35d8a25d3 Allow files to compiled without optimization.
This is required when trying to see what the optimizer is doing to the
assembly or in aiding debugging CPU IMPRECISE bus fault errors.
2019-03-06 10:34:39 +01:00
mikeller d0cb95a7e1 Fix false positives in target independence check. 2019-03-03 03:18:48 +13:00
Michael Keller 337494e700
Merge pull request #7663 from hydra/rebuild-if-linker-script-changes
Rebuild ELF if linker script is changed.
2019-02-27 19:53:33 +13:00
mikeller 35bb19d6d4 Made PRE_PUSH_TARGET_LIST settable from 'make/local.mk'. 2019-02-26 21:02:45 +13:00
Dominic Clifton dbdb6d30fc Rebuild ELF if linker script is changed.
# Conflicts:
#	Makefile
2019-02-25 23:18:20 +01:00
Michael Keller 2b29c2d7d0 Added 'pre-push' build targets, added to pull request instructions. 2019-02-25 15:57:12 +13:00
mikeller fad7ee3464 Fix missing 'platform.h' includes in compilation units, and make them stay away. 2019-02-23 17:49:25 +13:00
Michael Keller b3eedfe6af
Merge pull request #7625 from hydra/bf-rebuild-on-makefile-changes
Ensure target is rebuilt if ANY of the make files changes.
2019-02-22 04:52:25 +13:00
Dominic Clifton f475683366 Ensure target is rebuilt if ANY of the make files changes.
Prior to this, editing say make/source.mk didn't cause a rebuild.
2019-02-20 14:25:28 +01:00
blckmn 1bedb1b911 Moved hal config headers etc to ./src/main/startup 2019-02-20 18:24:16 +11:00
mikeller b329f0d70b Separate out target specific tests into the 'test-all' goal. 2019-02-03 15:54:26 +13:00
Michael Keller b36acf5576
Merge pull request #7490 from mikeller/add_makefile_test_invocations
Added 'test_help' and 'test_<testname>' targets to Makefile.
2019-01-30 00:54:00 +13:00
mikeller 4bd9605d2a Added 'test_help' and 'test_<testname>' targets to Makefile. 2019-01-28 20:39:05 +13:00
mikeller 8c2a896025 Added 'test-representative' make target to run a representative subset of the unit tests. 2019-01-28 00:08:01 +13:00
mikeller 5c4d94457c Added the ability to print lists of targets by MCU type to the Makefile. 2019-01-19 15:09:26 +13:00
mikeller 5b3f54874d First wave of feature cut conversions: CHEBUZZF3, MIDELICF3, and SPRACINGF3EVO. 2019-01-19 00:53:09 +13:00
mikeller 2e000506c8 Renamed to 'FEATURE_CUT_LEVEL', added 'FORCE_FEATURE_CUT_LEVEL' command line option. 2019-01-17 09:03:35 +13:00
Michael Keller 776549785d For discussion: Take a methodical approach to dealing with flash overflows. 2019-01-16 15:56:10 +13:00
Dominic Clifton 2584a90134 Ensure debug symbols are generated for startup code when needed. 2018-12-10 19:50:59 +01:00
mikeller 3be377bde1 Fixes for NRF24 SPI RX drivers. 2018-08-31 00:10:15 +12:00
mikeller 4ec481a843 Added '-fno-common' build option, fixed resulting problems. 2018-08-30 18:58:34 +12:00
mikeller 581628eeb4 Switch to GNU11 language standard. 2018-08-19 10:33:32 +12:00
Michael Keller 2293462324
Added more verbosity. 2018-07-22 12:08:31 +12:00
mikeller 5c16c50826 Added per-MCU-type build targets. 2018-07-22 11:24:07 +12:00
Anders Hoglund 0185018973 Build target groups populated dynamically. 2018-07-16 18:10:03 +02:00
mikeller 7a2192d13e Fixed typo in 'Makefile'. 2018-05-27 10:53:50 +12:00
Andrey Mironov ed72803858 Added FAST_RAM usage correctness check 2018-05-23 14:40:33 +03:00
Andrey Mironov eac01a6ad6 Replaced PCRE with egrep for macOS users 2018-05-22 12:00:16 +03:00
mikeller e823920662 Added memory usage output to linker. 2018-05-16 23:17:03 +12:00
mikeller 3a149dd450 Rebased, fixed regex for target name at end of line. 2018-05-14 19:18:20 +12:00
mikeller 4c11c6666b Fix from review. 2018-05-14 19:13:37 +12:00
mikeller ede204aa81 Removed some target dependencies, and added makefile target 'check-target-independence' to find dependencies. 2018-05-14 19:13:37 +12:00
jflyper 35df29f0bc Use nomk to signify no build target name 2018-05-05 01:13:12 +09:00
Michael Keller f53d79d13f
Changed 'relwithdebinfo' debug option to more memorable name. (#5690) 2018-04-16 23:08:33 +12:00
Andrey Mironov a3f33f996f Added release with debug info DEBUG type 2018-04-12 10:03:50 +03:00
Petr Ledvina eee15e7ca4 Implement minimalistic strcasestr (#5411)
* Implement minimalistic strcasestr

* fixup! Implement minimalistic strcasestr

* Add _GNU_SOURCE

Enable gcc extensions

* fixup! fixup! Implement minimalistic strcasestr
2018-03-15 02:17:23 +13:00
Vishal Verma 2074dbb004
Makefile: fix clean_all trying to cleean SKIP_TARGETS
clean_all or all_clean were trying to clean SKIP_TARGETS too, resulting
in:

    make/targets.mk:15: *** The target specified, ALIENWHOOP, cannot be
        built. Use one of the ALT targets: ALIENWHOOPF4 ALIENWHOOPF7.  Stop.

Remove SKIP_TARGETS from the clean lists.
2018-02-21 11:12:50 -07:00
Anders Hoglund 1605b15cff Clean up the verbosity usage with echo commands in makefiles. 2017-12-30 16:28:52 +01:00
blckmn 7036ad9074 Removed ITCM_RAM warning by defining the region. 2017-12-22 09:20:40 +11:00
Michael Keller 5ae3933db4 Changed make target for 'all' to not include unsupported, added 'all_with_unsupported' (formerly 'all') and 'unsupported' targets. 2017-10-18 09:56:44 +13:00
Michael Keller e6fdd266e0 Removed F1 targets from the target lists used for CI, added warning about deprecation. 2017-10-17 11:34:09 +13:00
Steffen Windoffer 03aa31acdd remove not needed whitespaces 2017-08-24 11:33:39 +02:00
Anders Hoglund ab232e8828 Remove hardcoded unconditional measurement of target build time. 2017-08-17 11:29:17 +02:00
blckmn 2dca6a5bbc Preparation for F4 being LL enabled.
Updated F7 to use latest HAL / LL libraries
2017-07-29 23:02:39 +10:00
fishpepper b57c3ea5d8 adding openocd-gdb command to makefile 2017-07-25 23:24:16 +02:00