Skip to content

Commit

Permalink
[Silabs] Adds updated WiseConnect SDK and docker pre-installed WiFi S…
Browse files Browse the repository at this point in the history
…DKs (#29646)

* Adds chages to docker image and build scripts

* Adds fix for alignment

* Adds bugfix for change directory

* Removes changes from other PR

* Adds book keeping version checks

* Reverts changes to be added after docker update

* Adds updated SDK as per release

* Updates wiseconnect-wifi-bt-sdk to 2.8.1

* Adds updated docker images

* Adds update of WiSeConnect 2 SDK 2.8.2

* Adds requirements file for pip freeze

---------

Co-authored-by: Rohan Sahay <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 28, 2023
1 parent 2ff1a91 commit 577b477
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 26 deletions.
14 changes: 7 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,18 @@
[submodule "third_party/silabs/gecko_sdk"]
path = third_party/silabs/gecko_sdk
url = https://github.com/SiliconLabs/gecko_sdk.git
branch = v4.2.3
branch = v4.3.2
platforms = efr32
[submodule "third_party/silabs/wiseconnect-wifi-bt-sdk"]
path = third_party/silabs/wiseconnect-wifi-bt-sdk
url = https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git
branch = 2.7.1-Matter
branch = 2.8.2
platforms = efr32,silabs_docker
[submodule "third_party/silabs/wifi_sdk"]
path = third_party/silabs/wifi_sdk
url = https://github.com/SiliconLabs/wiseconnect.git
branch = v3.1.0
platforms = efr32
[submodule "editline"]
path = third_party/editline/repo
url = https://github.com/troglobit/editline.git
Expand Down Expand Up @@ -314,11 +319,6 @@
url = https://github.com/asriot/ASR550X_Freertos.git
branch = matter
platforms = asr
[submodule "third_party/silabs/wifi_sdk"]
path = third_party/silabs/wifi_sdk
url = https://github.com/SiliconLabs/wiseconnect
branch = master
platforms = efr32
[submodule "third_party/st/STM32CubeWB"]
path = third_party/st/STM32CubeWB
url = https://github.com/STMicroelectronics/STM32CubeWB.git
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker/images/base/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16 : [Telink] Update Docker image (Zephyr update)
17 : [Silabs] Update Docker image (WiseConnect and GECKO SDK(s) update)
34 changes: 17 additions & 17 deletions integrations/docker/images/stage-2/chip-build-efr32/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ RUN set -x \
&& : # last line


# Clone Gecko SDK 4.3.1 (2ba59bf)
RUN git clone --depth=1 --branch=v4.3.1 https://github.com/SiliconLabs/gecko_sdk.git /tmp/gecko_sdk && \
# Clone Gecko SDK 4.3.2 (1228a95)
RUN git clone --single-branch --depth=1 --branch=v4.3.2 https://github.com/SiliconLabs/gecko_sdk.git /tmp/gecko_sdk && \
cd /tmp/gecko_sdk && \
rm -rf .git \
&& : # last line

# Clone Wiseconnect SDK 3.1.0-MatterCert (f84bf66)
RUN git clone --depth=1 --branch=MatterCert https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \
# Clone WiSeConnect Wi-Fi and Bluetooth Software 2.8.2 (4fa5c5f)
RUN git clone --depth=1 --branch=2.8.2 https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git /tmp/wiseconnect-wifi-bt-sdk && \
cd /tmp/wiseconnect-wifi-bt-sdk && \
rm -rf .git \
&& : # last line

# Clone WiSeConnect SDK 3.1.0 (58a2404)
RUN git clone --depth=1 --branch=v3.1.0 https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \
cd /tmp/wifi_sdk && \
rm -rf .git \
&& : # last line
Expand All @@ -35,35 +41,29 @@ RUN wget https://www.silabs.com/documents/login/software/slc_cli_linux.zip && \
# Final SDK container for compiling using Silabs SDK
FROM ghcr.io/project-chip/chip-build:${VERSION}

ADD requirements.txt /tmp/requirements.txt

# GNU ARM Embedded toolchain, cross compiler for various platform builds
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \
gcc-arm-none-eabi \
binutils-arm-none-eabi \
openjdk-17-jdk-headless \
python3-sphinx \
ccache \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
# Install Python Packages
&& pip3 install \
# codegen.py build requirements
# TODO: why are these added here instead of build-env?
lark \
jinja2 \
stringcase \
# Sphinx dependencies (for slc-cli)
myst_parser \
sphinx_rtd_theme \
sphinx_tabs \
linkify-it-py \
&& pip3 install -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt \
&& : # last line

ENV GSDK_ROOT=/opt/silabs/gecko_sdk/
ENV WISECONNECT_PATH=/opt/silabs/wifi_sdk/
ENV WISECONNECT_SDK_ROOT=/opt/silabs/wiseconnect-wifi-bt-sdk/
ENV WIFI_SDK_ROOT=/opt/silabs/wifi_sdk/
ENV PATH="${PATH}:/opt/silabs/slc_cli/"

COPY --from=build /tmp/gecko_sdk /opt/silabs/gecko_sdk
COPY --from=build /tmp/wiseconnect-wifi-bt-sdk/ /opt/silabs/wiseconnect-wifi-bt-sdk/
COPY --from=build /tmp/wifi_sdk /opt/silabs/wifi_sdk
COPY --from=build /tmp/slc_cli /opt/silabs/slc_cli
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ COPY --from=bouffalolab /opt/bouffalolab_sdk /opt/bouffalolab_sdk
COPY --from=asr /opt/asr /opt/asr

COPY --from=efr32 /opt/silabs/gecko_sdk /opt/silabs/gecko_sdk
COPY --from=efr32 /opt/silabs/wiseconnect-wifi-bt-sdk /opt/silabs/wiseconnect-wifi-bt-sdk
COPY --from=efr32 /opt/silabs/wifi_sdk /opt/silabs/wifi_sdk

# Android license file "acceping" is done by writing license hashes
Expand Down Expand Up @@ -103,7 +104,8 @@ ENV ANDROID_NDK_HOME=/opt/android/android-ndk-r23c
ENV CY_TOOLS_PATHS="/opt/ModusToolbox/tools_2.4"
ENV SILABS_BOARD=BRD4161A
ENV GSDK_ROOT=/opt/silabs/gecko_sdk/
ENV WISECONNECT_PATH=/opt/silabs/wifi_sdk
ENV WISECONNECT_SDK_ROOT=/opt/silabs/wiseconnect-wifi-bt-sdk/
ENV WIFI_SDK_ROOT=/opt/silabs/wifi_sdk
ENV IDF_PATH=/opt/espressif/esp-idf/
ENV IDF_TOOLS_PATH=/opt/espressif/tools
ENV IMX_SDK_ROOT=/opt/fsl-imx-xwayland/6.1-langdale
Expand Down
10 changes: 10 additions & 0 deletions scripts/setup/requirements.silabs_docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# codegen.py build requirements
Jinja2==3.1.2
lark==1.1.7
stringcase==1.2.0
# Sphinx dependencies (for slc-cli)
linkify-it-py==2.0.2
myst-parser==2.0.0
Sphinx==7.2.6
sphinx-rtd-theme==1.3.0
sphinx-tabs==3.4.1

0 comments on commit 577b477

Please sign in to comment.