Move to standard Zephyr T2 workspace structure (star topology)

https://docs.zephyrproject.org/latest/guides/west/workspaces.html

Previously, west manifest and CMake entry point were in zephyr subfolder
as required for PlatformIO. As PlatformIO support was dropped, we can
follow the default Zephyr folder structure more closely.

The application is built and flashed from app subfolder, where as unit
tests are run from tests subfolder.
This commit is contained in:
Martin Jäger
2021-12-12 14:09:05 +01:00
parent 15ee7d8553
commit 8ab8ea244a
57 changed files with 67 additions and 48 deletions
+5 -8
View File
@@ -5,11 +5,9 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: zephyrprojectrtos/ci:v0.18.4
# Zephyr v2.7 requires newest SDK, which is not auto-selected by v0.18.4 docker image. Below
# env setting can be removed again after upgrade of the docker image.
container: zephyrprojectrtos/ci:v0.21.0
env:
ZEPHYR_SDK_INSTALL_DIR: "/opt/toolchains/zephyr-sdk-0.13.1"
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -24,10 +22,9 @@ jobs:
working-directory: charge-controller-firmware
run: |
pip3 install -U west
cd zephyr
west init -l .
west init -l app
west update
pip3 install -r rtos/scripts/requirements-base.txt
pip3 install -r zephyr/scripts/requirements-base.txt
- name: Trailing whitespace check
working-directory: charge-controller-firmware
@@ -37,7 +34,7 @@ jobs:
- name: Build firmware
working-directory: charge-controller-firmware
run: |
cd zephyr
cd app
west build -b mppt_2420_hc@0.2 -p
west build -b mppt_2420_lc -p
west build -b mppt_1210_hus@0.7 -p