Target refactoring and cube update (#161)

* Lib: move cube to libs. Firmware: prepare for code base refactoring, detach from cube, port to cmsis_os2.

* Firmware, target f2: regenerate project with latest cube package, tim17 for os ticks.

* Firmware: unified codebase.

* Core: do not include semaphore on old targets. Firmware: dfu uplaod target.

* CI: submodules, add firmware build.

* CI: proper submodule config.

* refactor build system

* CI: update chain to use new targets. Documentation: update to match current structure.

* CI: clean before rebuild.

* Add local test

docker-compose exec dev make -C firmware TARGET=local TEST=1 run

* Makefile: target specific build directory. CI: updated artifacts path.

* Makefile: init git submodules if they don't exists.

* Makefile: debug rule now doesn't reset MCU, prevent SIGINT propagation to st-util.

* Makefile: proper rebuild sequence in zz and zzz

* Makefile: timestamp tracking for flash and upload commands.

* Apps: modular build. Input: fix flipper hal inline.

* Wiki: proper bootloader link.

* Applications: fix broken build for local targets.

* add st-flash to docker

* fix build

* force rebuild app

* move app force to firmware part

* fix build deps

* qrcode build ok

* fix example display

* add testing routine

* update build instruction

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
あく
2020-10-07 12:37:43 +03:00
committed by GitHub
parent 04bf049612
commit 3c2711102c
2232 changed files with 5937 additions and 2060599 deletions

View File

@@ -14,7 +14,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- uses: satackey/action-docker-layer-caching@v0.0.8
continue-on-error: true
with:
@@ -29,52 +31,37 @@ jobs:
with:
run: /syntax_check.sh
- name: Build target_lo in docker
- name: Build F2 bootloader in docker
uses: ./.github/actions/docker
with:
run: make -C target_lo
run: make -C bootloader TARGET=f2
- name: Build target_f1 in docker
uses: ./.github/actions/docker
with:
run: make -C target_f1
- name: Publish target_f1 artifacts
- name: Publish F2 bootloader artifacts
uses: actions/upload-artifact@v2
with:
name: target_f1
name: bootloader_f2
path: |
target_f1/build/target_prod.elf
target_f1/build/target_prod.bin
target_f1/build/target_prod.hex
bootloader/.obj/f2/bootloader.elf
bootloader/.obj/f2/bootloader.bin
bootloader/.obj/f2/bootloader.hex
if-no-files-found: error
- name: Build target_f2 in docker
- name: Build local testing firmware in docker
uses: ./.github/actions/docker
with:
run: make -C target_f2
run: make -C firmware TARGET=local
- name: Publish target_f2 artifacts
uses: actions/upload-artifact@v2
with:
name: target_f2
path: |
target_f2/build/target_prod.elf
target_f2/build/target_prod.bin
target_f2/build/target_prod.hex
if-no-files-found: error
- name: Build bootloader in docker
- name: Build F2 firmware in docker
uses: ./.github/actions/docker
with:
run: make -C bootloader
run: make -C firmware TARGET=f2
- name: Publish bootloader artifacts
- name: Publish F2 firmware artifacts
uses: actions/upload-artifact@v2
with:
name: bootloader
name: firmware_f2
path: |
bootloader/.obj/bootloader.elf
bootloader/.obj/bootloader.bin
bootloader/.obj/bootloader.hex
firmware/.obj/f2/firmware.elf
firmware/.obj/f2/firmware.bin
firmware/.obj/f2/firmware.hex
if-no-files-found: error