Commit Graph

109 Commits

Author SHA1 Message Date
Kenn Sebesta 3d966c1e4f [Utils][Unit test] Point the unit test toward the new math_utils.c/.h 2022-03-23 20:25:37 -04:00
Kenn Sebesta 802b88ae37 [Make] use proper powershell script block formatting.
- See `powershell -help` "-command" section.
- C.f. https://github.com/PowerShell/PowerShell/issues/10842
2022-03-21 08:12:57 -04:00
Benjamin Vedder 91eedcd21f
Merge pull request #446 from kubark42/windows_unit_testing
Windows unit testing
2022-03-21 10:20:43 +01:00
Kenn Sebesta c0460e4d58 [Make] add `.dep` to `_clean` make targets
This directory is created by ChibiOS.
2022-03-18 08:24:41 -04:00
Kenn Sebesta faa2cecd8a [gtest][Windows] Resolve unit testing runtime issues
It had previously worked only on bash shells.
2022-03-16 10:41:09 -04:00
Benjamin Vedder 1d8ce02bc2
Merge pull request #442 from kubark42/windows_powershell_fixes
Windows powershell fixes
2022-03-13 17:22:42 +01:00
Benjamin Vedder 870bfa3f20 Fixed multi-core build of single firmware on linux 2022-03-13 17:21:07 +01:00
Kenn Sebesta 37068c70a9 [Make][Windows] Replace `pwsh` by `powershell`
This calls the "Powershell for Windows" instead of the "MS Powershell"
console.
2022-03-13 10:11:28 -04:00
Kenn Sebesta ed1229477f [Makefile] Use the $(PYTHON) variable, instead of hardcoded `python3` 2022-03-12 13:23:01 -05:00
Kenn Sebesta ed1e9eb33e [Make] Fix missing `-f` in all_fw_package_clean 2022-03-07 10:21:08 -05:00
Benjamin Vedder 8c8a56eab2
Merge pull request #433 from kubark42/make_package_delete_prior_files
`make all_fw_package` delete prior files and improve console output
2022-03-07 15:31:52 +01:00
Kenn Sebesta 2f3bbcd006 [Makefile] `make all_fw_package` target tweaks
- Comments which are not tab-justified do not print to console
- Add a teensy bit of console output
2022-03-07 09:13:58 -05:00
Kenn Sebesta b186478bff [Makefile] `make all_fw_package_clean` target
This uses the package_firmware.py script to package all the firmware, and
then deletes the several GB of build cruft.

NOT TESTED ON WINDOWS
2022-03-07 09:12:59 -05:00
Benjamin Vedder 26d6f51fa5
Merge pull request #432 from kubark42/fix_makefile_typo
[Makefile] Fully specify the root target directory
2022-03-07 14:58:00 +01:00
Benjamin Vedder 3526ea811f
Merge pull request #431 from kubark42/makefile_package_target
[Makefile] Create `make package` target
2022-03-07 14:57:35 +01:00
Kenn Sebesta a00f3e05ed [Makefile] Fully specify the root target directory 2022-03-07 08:45:29 -05:00
Kenn Sebesta 6a28d76161 [Makefile] Create `make package` target
This uses the package_firmware.py script to package all the firmware, and
then deletes the several GB of build cruft.
2022-03-07 08:43:57 -05:00
Kenn Sebesta 5da38dfedf [Make] Capture git branch, commit, dirty state, and arm compiler
This code pushes those strings into #defines which are available inside the
firmware.
2022-03-06 19:07:15 -05:00
Benjamin Vedder e42dfecc51 Updated package script 2022-03-06 00:09:11 +01:00
Kenn Sebesta f926673417 [Makefile][Hw] Look for `no_limits` tag 2022-03-02 16:56:18 -05:00
Kenn Sebesta d732a503f2 [Makefile] Scan all hw_conf directories for hw_*.h targets
This will look for all targets which match hw_"*.h, except for hw_*_core.h
files.
2022-03-02 16:56:18 -05:00
Kenn Sebesta b7f1d9db41 [Make][Qt] Add `qt_install` recipe 2022-03-02 16:56:18 -05:00
Kenn Sebesta 8ca667a4e0 [Make] Include Qt SDK install in help 2022-03-02 16:56:18 -05:00
Kenn Sebesta a65b4dae49 [Makefile][OS-agnostic] Configure makefiles for macOS/Linux/Windows 2022-03-02 16:56:18 -05:00
Kenn Sebesta bf3f6409e4 [Makefile] programmatically build and flash binaries 2022-03-02 16:56:18 -05:00
Kenn Sebesta 146bc62073 [Makefile] Rename TARGET_NAMES-->ALL_BOARD_NAMES 2022-03-02 16:56:18 -05:00
Kenn Sebesta 463647e8aa [Makefile] Modify output location and name
Build each binary in its own directory, and label them with their git hash,
and signalling if it is dirty.
2022-03-02 16:56:18 -05:00
Kenn Sebesta 73bcf7f57f [Makefile] Print build target 2022-03-02 16:56:18 -05:00
Kenn Sebesta 4046eec756 [Makefile][ALL] Add rule for making all targets
Note, the artifacts from these targets are not preserved.
2022-03-02 16:56:18 -05:00
Kenn Sebesta 02dba21647 [Makefile] Update firmware rules to autogenerate build targets 2022-03-02 16:56:17 -05:00
Kenn Sebesta 455e0a67f3 [Makefile] Add support for `size` Makefile recipe
Untested.

C.f. https://github.com/vedderb/bldc/pull/377/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R45
2022-03-02 16:56:17 -05:00
Kenn Sebesta 96fd43f8bf [Make] Add unit testing
This adds the Makefile scaffolding, as well as the tool installer.
2022-03-02 16:56:17 -05:00
Kenn Sebesta 44c355fdbf [Make] Create new Makefile which can be used to manage the project
Before, the Makefile only built the firmware
2022-03-02 16:56:17 -05:00
Kenn Sebesta e64c404dba [Make] Move makefile to a firmware specific makefile 2022-03-02 16:56:17 -05:00
Benjamin Vedder 2e0a95e5ea Renaming and refactoring 2022-02-19 21:00:52 +01:00
Benjamin Vedder 468c4f6353
Merge branch 'encoder_split' into master 2022-02-19 15:21:13 +01:00
rodale75 48875f2a78 Makefile: Added newline separations on openocd commands.
This to reduce the line-lengths and also prefixed the openocd
invoking with "@" (suppress the command line in make).
2022-02-10 13:27:20 +01:00
dnordahl83 324d2d4a29 makefile: Added make rule to perform stm32 mass erase.
Also, removed some trailing spaces in makefile.
2022-02-10 13:27:14 +01:00
Benjamin Vedder 9527f94cf8 First lisp integration with vesc tool and enabled lisp by default 2022-01-29 03:36:34 +01:00
Jakub Tomczak da4b3e0edd Merge branch 'master' into dev_fw_5_03 2022-01-21 15:07:44 +01:00
Benjamin Vedder 4f0388d507 Added lispbm test module (disabled by default) 2022-01-13 14:50:19 +01:00
Benjamin Vedder 16385f1706 Renamed compression to lzo, added observer offset parameter 2022-01-12 12:27:45 +01:00
Jakub Tomczak 2a120615be encoders to encoder refactor 2022-01-09 17:10:40 +01:00
Jakub Tomczak 4743194894 old encoder files deleted 2021-12-20 14:18:51 +01:00
Jakub Tomczak cc769c858b TS5700N8501 added 2021-12-17 13:13:11 +01:00
Jakub Tomczak 6507a47bf1 SINCOS added 2021-12-15 16:48:23 +01:00
Jakub Tomczak ce7b3f7805 makefile sources 2021-12-15 13:41:33 +01:00
Björn Mellström 18398553d6 make: Added size-rule.
Change-Id: I78fe451e994832850c138b757bc5911c9f53b7ee
2021-11-12 11:10:15 +01:00
Björn Mellström 5b73873b74 make: Default to non-verbose compilation output.
Change-Id: Ic08eef4ba9771789e31cb24f87c6143ea6d1cf05
2021-11-12 11:10:06 +01:00
Benjamin Vedder f81093922a Added event logging 2021-06-15 12:56:38 +02:00