Skip to content

Commit dd34251

Browse files
committed
bootstrap.sh: automatically install Zephyr SDK
This commit adds the command to install the Zephyr SDK using the `west` tool in the `bootstrap.sh` script. This reduces the complexity of the installation process and ensures that the correct version of the SDK is used. Signed-off-by: Luca Burelli <[email protected]>
1 parent f010487 commit dd34251

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/package_core.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,18 @@ jobs:
1717
CORE_ARTIFACT: ${{ env.CORE_ARTIFACT }}
1818
BOARD_VARIANTS: ${{ env.BOARD_VARIANTS }}
1919
steps:
20-
- name: Install toolchain
20+
- name: Install OS dependencies
2121
working-directory: /opt
2222
run: |
2323
sudo apt-get update
2424
sudo apt-get install -y --no-install-recommends git cmake wget python3-pip ninja-build ccache
25-
wget -nv https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/zephyr-sdk-0.16.8_linux-x86_64_minimal.tar.xz
26-
tar xf zephyr-sdk-0.16.8_linux-x86_64_minimal.tar.xz && cd zephyr-sdk-0.16.8 && ./setup.sh -t arm-zephyr-eabi -c
2725
2826
- uses: actions/checkout@v4
2927
with:
3028
fetch-depth: 0
3129
persist-credentials: false
3230

33-
- name: Initialize
31+
- name: Initialize Zephyr environment
3432
run: |
3533
./extra/bootstrap.sh -o=--filter=tree:0
3634
echo "CORE_TAG=$(git describe --always)" >> "$GITHUB_ENV"

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,13 @@ sudo apt install python3-pip python3-setuptools python3-venv build-essential git
118118
cd ArduinoCore-zephyr
119119
./extra/bootstrap.sh
120120
```
121-
### Install the Zephyr SDK
122-
Download and install the Zephyr SDK for your OS from [here](https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.8).
123121

124-
> [!NOTE]
125-
> This core is validated for version v0.16.8. Compatibility with later versions has not been tested yet.
122+
This will take care of installing `west`, the Zephyr build tool. It will then
123+
download all packages required for a Zephyr build in addition to the toolchains
124+
in the Zephyr SDK.
125+
126+
> [!NOTE]
127+
> This core is validated with version v0.17.0. Compatibility with later versions has not been tested yet.
126128
127129
### Build the Loader
128130

extra/bootstrap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ west init -l .
1212
west update "$@"
1313
west zephyr-export
1414
pip install -r ../zephyr/scripts/requirements-base.txt
15-
# download slim toolchain from https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.8
15+
west sdk install --version 0.17.0 -t arm-zephyr-eabi -c
1616

1717
# add here the required blobs based on supported platforms
1818
west blobs fetch hal_nxp

0 commit comments

Comments
 (0)