Skip to content

Commit a208a88

Browse files
[Silabs] Add zephyr container (project-chip#40492)
* Add docker container * fix tag * restyle
1 parent 9f409ce commit a208a88

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
158 : [Android] Fix android NDK path in vscode image
1+
159 : Update docker image container with Zephyr for Silabs
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
ARG VERSION=1
2+
FROM ghcr.io/project-chip/chip-build:${VERSION} AS build
3+
LABEL org.opencontainers.image.source=https://github.com/project-chip/connectedhomeip
4+
5+
WORKDIR /opt/silabs/
6+
7+
RUN set -x \
8+
&& python3 -m venv venv \
9+
&& . venv/bin/activate \
10+
&& pip3 install west \
11+
&& git clone https://github.com/SiliconLabsSoftware/zephyr-silabs.git \
12+
&& cd zephyr-silabs \
13+
&& git checkout 7cfc27d9dc7f24f28d4b375b80abaac22eac31c3 \
14+
# Initialize west with the specific commit of the zephyr-silabs repository
15+
# This commit corresponds to the version of the Zephyr SDK used in the project
16+
&& cd ../ \
17+
&& west init -l ./zephyr-silabs \
18+
&& west update \
19+
&& pip3 install -r zephyr/scripts/requirements.txt \
20+
&& west blobs fetch \
21+
&& mkdir -p /opt/silabs/sdk \
22+
&& cd /opt/silabs/sdk \
23+
&& wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/zephyr-sdk-0.17.2_linux-x86_64_minimal.tar.xz \
24+
&& tar xvf zephyr-sdk-0.17.2_linux-x86_64_minimal.tar.xz \
25+
&& rm zephyr-sdk-0.17.2_linux-x86_64_minimal.tar.xz \
26+
&& cd zephyr-sdk-0.17.2 \
27+
&& ./setup.sh -t arm-zephyr-eabi \
28+
&& export ZEPHYR_SDK_INSTALL_DIR=/opt/silabs/sdk \
29+
&& west zephyr-export \
30+
&& : # last line
31+
32+
FROM ghcr.io/project-chip/chip-build:${VERSION}
33+
34+
COPY --from=build /opt/silabs/ /opt/silabs/
35+
36+
ENV SILABS_ZEPHYR_SDK_PATH=/opt/silabs
37+
ENV ZEPHYR_BASE=/opt/silabs/zephyr
38+
ENV ZEPHYR_SDK_INSTALL_DIR=/opt/silabs/sdk
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../build.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../run.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../base/chip-build/version

0 commit comments

Comments
 (0)