Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Telink] Update Docker image (Zephyr 3.3 & 3.7 support) #37852

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
- "-nxp-zephyr"
- "-nrf-platform"
- "-telink"
- "-telink-zephyr_3_3"
- "-ti"
- "-tizen"
- "-openiotsdk"
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ stm32/ @STYoannZamaron

telink/ @s07641069
chip-build-telink/ @s07641069
chip-build-telink-zephyr_3_3/ @s07641069

webos/ @joonhaengHeo
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ be useful for quick filtering like `[TC-ABC-1.2]` to tag test changes.
Examples of descriptive titles:

- `[Silabs] Fix compile of SiWx917 if LED and BUTTON are disabled`
- `[Telink] Update build Dockerfile with new Zeprhy SHA: c05c4.....`
- `[Telink] Update build Dockerfile with new Zephyr SHA: c05c4.....`
- `General Commissioning Cluster: use AttributeAccessInterface/CommandHandlerInterface for processing`
- `Scenes Management/CopyScene: set access as manage instead of default to match the spec`
- `Fix build errors due to ChipDeviceEvent default constructor not being available`
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 @@
120 : [NXP] Update NXP sdk version
121 : [Telink] Update Docker image (Zephyr 3.3 & 3.7 support)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
ARG VERSION=1
FROM ghcr.io/project-chip/chip-build:${VERSION} as build
LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip

RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \
xz-utils \
&& : # last line

# Setup toolchain
WORKDIR /opt/telink
RUN set -x \
&& curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.0/zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz --output zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
&& tar xvf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
&& rm -rf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
&& zephyr-sdk-0.17.0/setup.sh -t riscv64-zephyr-elf \
&& : # last line

# Setup Zephyr version: 3.3.0; branch: develop_3.3
ARG ZEPHYR_REVISION=fdccaba1ebc147908e9cca653e6c6743def3332b
WORKDIR /opt/telink/zephyrproject
RUN set -x \
&& python3 -m pip install --break-system-packages -U --no-cache-dir west \
&& git init zephyr \
&& cd zephyr \
&& git remote add origin https://github.com/telink-semi/zephyr \
&& git fetch --depth=1 origin ${ZEPHYR_REVISION} \
&& git reset ${ZEPHYR_REVISION} --hard \
&& west init -l \
&& west update -o=--depth=1 -n -f smart \
&& west blobs fetch hal_telink \
&& : # last line

FROM ghcr.io/project-chip/chip-build:${VERSION}

COPY --from=build /opt/telink/zephyr-sdk-0.17.0/ /opt/telink/zephyr-sdk-0.17.0/
COPY --from=build /opt/telink/zephyrproject/ /opt/telink/zephyrproject/

RUN set -x \
&& apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& pip3 install --break-system-packages --no-cache-dir --user -r /opt/telink/zephyrproject/zephyr/scripts/requirements.txt \
&& : # last line

ENV TELINK_ZEPHYR_BASE=/opt/telink/zephyrproject/zephyr
ENV TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.17.0
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ RUN set -x \
&& zephyr-sdk-0.17.0/setup.sh -t riscv64-zephyr-elf \
&& : # last line

# Setup Zephyr
ARG ZEPHYR_REVISION=fdccaba1ebc147908e9cca653e6c6743def3332b
# Setup Zephyr version: 3.7.0; branch: develop
ARG ZEPHYR_REVISION=46b82695b9390d74bcfa4b01a14a009c01b96895
WORKDIR /opt/telink/zephyrproject
RUN set -x \
&& python3 -m pip install --break-system-packages -U --no-cache-dir west \
&& git clone https://github.com/telink-semi/zephyr \
&& git init zephyr \
&& cd zephyr \
&& git remote add origin https://github.com/telink-semi/zephyr \
&& git fetch --depth=1 origin ${ZEPHYR_REVISION} \
&& git reset ${ZEPHYR_REVISION} --hard \
&& west init -l \
&& cd .. \
&& west update -o=--depth=1 -n -f smart \
&& west blobs fetch hal_telink \
&& west zephyr-export \
&& : # last line

FROM ghcr.io/project-chip/chip-build:${VERSION}
Expand Down
Loading