File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed
integrations/docker/images
stage-2/chip-build-silabs-zephyr Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1- 158 : [Android] Fix android NDK path in vscode image
1+ 159 : Update docker image container with Zephyr for Silabs
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ ../../../build.sh
Original file line number Diff line number Diff line change 1+ ../../../run.sh
Original file line number Diff line number Diff line change 1+ ../../base/chip-build/version
You can’t perform that action at this time.
0 commit comments