-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Summary First implementation of Dimos, as per spec'd by [SW-39](https://ubcformulaelectric.atlassian.net/browse/SW-39). ### TODO Once merged, send message to software channel on slack that `DPLATFORM=firmware` and `DTARGET` is old `DPLATFORM` - Use -DPLATFORM to specify the platform you are building to, whether `firmware` or `dimos` - Use -DTARGET to specify the target you are building to, between `dev`, `test`, `deploy` in dimos, and `arm` and `x86` in firmware. ### Changelist - [x] Dimos QT Build - [x] JSONCAN integration - [x] Try to move project to lower files (move things out of the top level) - [x] CMake better OS condition - [x] Refactor matrix upwards ### Testing Done - Local testing on Windows, Mac, Linux - Testing on CI servers ### Checklist *Please change `[ ]` to `[x]` when you are ready.* - [x] I have read and followed the code conventions detailed in [README.md](../README.md) (*This will save time for both you and the reviewer!*). - [x] If this pull request is longer then **500** lines, I have provided *explicit* justification in the summary above explaining why I *cannot* break this up into multiple pull requests (*Small PR's are faster and less painful for everyone involved!*). [SW-39]: https://ubcformulaelectric.atlassian.net/browse/SW-39?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
52 changed files
with
1,164 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build Firmware Binaries Action | ||
description: Builds the bianry for a given board | ||
inputs: | ||
board: | ||
description: The board for which to build a binary | ||
required: true | ||
build_dir: | ||
required: false | ||
description: The directory in which to build the binary | ||
default: build_fw_deploy | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Fix to ensure that commands like git status work in child directories | ||
# for gitpython in git_commit_info | ||
- name: Setup git | ||
shell: bash | ||
run: git config --global --add safe.directory $(realpath .) | ||
|
||
# xvfb-run is required to prefix any commands that run STM32CubeMX | ||
# It fakes out a display, since STM32CubeMX throws an error if it doesn't detect a display | ||
# Don't use Pipenv for Cmake since python packages are installed system-wide in the container | ||
- name: Build | ||
shell: bash | ||
run: | | ||
cmake -B ${{ inputs.build_dir }} -DPLATFORM=firmware -DTARGET=deploy -DHANDLE_DEPS=OFF | ||
xvfb-run make --directory=${{ inputs.build_dir }} -j`nproc` ${{ inputs.board }}.elf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
platform: | ||
default: arm | ||
choices: | ||
arm: | ||
short: Embedded | ||
firmware_deploy: | ||
short: Firmware Deploy | ||
settings: | ||
PLATFORM: arm | ||
PLATFORM: firmware | ||
TARGET: deploy | ||
env: | ||
PLATFORM: arm | ||
BUILD_DIR: build_fw_deploy | ||
buildType: Debug | ||
x86: | ||
short: Tests | ||
firmware_test: | ||
short: Firmware Tests | ||
settings: | ||
PLATFORM: x86 | ||
PLATFORM: firmware | ||
TARGET: test | ||
env: | ||
PLATFORM: x86 | ||
BUILD_DIR: build_fw_test | ||
buildType: Debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.