From 46acbe47a776894a93ff6417cb756ee559c78f70 Mon Sep 17 00:00:00 2001 From: Alex Tsitsiura Date: Tue, 29 Nov 2022 16:46:21 +0200 Subject: [PATCH] [Telink] Update Telink Docker with latest Telink Zephyr (SDK 0.15.2). --- .../images/chip-build-telink/Dockerfile | 21 +++++++++++++------ .../images/chip-build-vscode/Dockerfile | 4 ++-- integrations/docker/images/chip-build/version | 2 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/integrations/docker/images/chip-build-telink/Dockerfile b/integrations/docker/images/chip-build-telink/Dockerfile index 5f6b08c5b04ad8..3d0680db445357 100644 --- a/integrations/docker/images/chip-build-telink/Dockerfile +++ b/integrations/docker/images/chip-build-telink/Dockerfile @@ -11,13 +11,19 @@ RUN set -x \ # Setup toolchain RUN set -x \ - && wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.13.2/zephyr-toolchain-riscv64-0.13.2-linux-x86_64-setup.run -O /tmp/zephyr-toolchain-riscv64-setup.run \ - && chmod +x /tmp/zephyr-toolchain-riscv64-setup.run \ - && /tmp/zephyr-toolchain-riscv64-setup.run -- -d /opt/telink/zephyr-sdk-0.13.2 \ + && mkdir /opt/telink \ + && cd /opt/telink \ + && wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.15.2/zephyr-sdk-0.15.2_linux-x86_64.tar.gz \ + && wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.15.2/sha256.sum | shasum --check --ignore-missing \ + && tar xvf zephyr-sdk-0.15.2_linux-x86_64.tar.gz \ + && rm -rf zephyr-sdk-0.15.2_linux-x86_64.tar.gz \ + && cd zephyr-sdk-0.15.2 \ + && ./setup.sh -t riscv64-zephyr-elf -h -c \ + && cd / \ && : # last line # Setup Zephyr -ARG ZEPHYR_REVISION=dac17979d626bb820268660b4272a56d04d8083b +ARG ZEPHYR_REVISION=2901439a086f8202e63dc6f66a590021bb8e15d3 WORKDIR /opt/telink/zephyrproject RUN set -x \ && python3 -m pip install -U --no-cache-dir \ @@ -29,16 +35,19 @@ RUN set -x \ && west init -l \ && cd .. \ && west update -o=--depth=1 -n -f smart \ + && cd modules/hal/telink \ + && git submodule update --init \ + && cd ../../../ \ && west zephyr-export \ && : # last line FROM connectedhomeip/chip-build:${VERSION} -COPY --from=build /opt/telink/zephyr-sdk-0.13.2/ /opt/telink/zephyr-sdk-0.13.2/ +COPY --from=build /opt/telink/zephyr-sdk-0.15.2/ /opt/telink/zephyr-sdk-0.15.2/ COPY --from=build /opt/telink/zephyrproject/ /opt/telink/zephyrproject/ ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr -ENV ZEPHYR_SDK_INSTALL_DIR=/opt/telink/zephyr-sdk-0.13.2 +ENV ZEPHYR_SDK_INSTALL_DIR=/opt/telink/zephyr-sdk-0.15.2 RUN set -x \ && apt-get update \ diff --git a/integrations/docker/images/chip-build-vscode/Dockerfile b/integrations/docker/images/chip-build-vscode/Dockerfile index 755bc4f316a795..f1c7eda65965ed 100644 --- a/integrations/docker/images/chip-build-vscode/Dockerfile +++ b/integrations/docker/images/chip-build-vscode/Dockerfile @@ -34,7 +34,7 @@ COPY --from=mbedos /opt/openocd/ /opt/openocd/ COPY --from=p6 /opt/ModusToolbox /opt/ModusToolbox COPY --from=telink /opt/telink/zephyrproject /opt/telink/zephyrproject -COPY --from=telink /opt/telink/zephyr-sdk-0.13.2 /opt/telink/zephyr-sdk-0.13.2 +COPY --from=telink /opt/telink/zephyr-sdk-0.15.2 /opt/telink/zephyr-sdk-0.15.2 COPY --from=tizen /opt/tizen-sdk /opt/tizen-sdk @@ -102,7 +102,7 @@ ENV QEMU_ESP32=/opt/espressif/qemu/xtensa-softmmu/qemu-system-xtensa ENV QEMU_ESP32_DIR=/opt/espressif/qemu ENV SYSROOT_AARCH64=/opt/ubuntu-21.04-aarch64-sysroot ENV TELINK_ZEPHYR_BASE=/opt/telink/zephyrproject/zephyr -ENV TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.13.2 +ENV TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.15.2 ENV TI_SYSCONFIG_ROOT=/opt/ti/sysconfig_1.13.0 ENV ZEPHYR_BASE=/opt/NordicSemiconductor/nrfconnect/zephyr ENV ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb diff --git a/integrations/docker/images/chip-build/version b/integrations/docker/images/chip-build/version index e0ef95541880f0..59a2cbb31394e4 100644 --- a/integrations/docker/images/chip-build/version +++ b/integrations/docker/images/chip-build/version @@ -1 +1 @@ -0.6.14 Version bump reason: Add checking and verification support for includes using IWYU +0.6.15 Version bump reason: [Telink] Update Telink Docker with latest Telink Zephyr (SDK 0.15.2).