Skip to content

Commit

Permalink
add asr docker image (#26531)
Browse files Browse the repository at this point in the history
Co-authored-by: weicheng <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Dec 7, 2023
1 parent afb49e3 commit 94eaeab
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
20 changes: 20 additions & 0 deletions integrations/docker/images/chip-build-asr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION}

# Setup ASR
ARG ASR_DIR=/opt/asr
RUN set -x \
&& apt-get update \
&& apt-get install -y git git-lfs \
&& mkdir ${ASR_DIR} \
&& cd ${ASR_DIR} \
&& git clone --depth=1 https://github.com/asriot/Tools.git \
&& cd Tools \
&& git lfs pull \
&& cd toolchain \
&& tar -jxvf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 \
&& mkdir -p asr_riscv_gnu_toolchain_10.2_ubuntu-16.04 \
&& tar -jxvf asr_riscv_gnu_toolchain_10.2_ubuntu-16.04.tar.bz2 -C asr_riscv_gnu_toolchain_10.2_ubuntu-16.04/ \
&& : # last line

ENV ASR_TOOLCHAIN_PATH=${ASR_DIR}/Tools/toolchain/gcc-arm-none-eabi-9-2019-q4-major/bin/
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-asr/build.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-asr/run.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-asr/version
4 changes: 4 additions & 0 deletions integrations/docker/images/chip-build-vscode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ FROM connectedhomeip/chip-build-imx:${VERSION} AS imx
FROM connectedhomeip/chip-build-ti:${VERSION} AS ti
FROM connectedhomeip/chip-build-openiotsdk:${VERSION} AS openiotsdk
FROM connectedhomeip/chip-build-bouffalolab:${VERSION} AS bouffalolab
FROM connectedhomeip/chip-build-asr:${VERSION} AS asr
FROM connectedhomeip/chip-build:${VERSION}

# qemu-src copied over because qemu directory contains symlinks to the src
Expand Down Expand Up @@ -54,6 +55,8 @@ COPY --from=openiotsdk /opt/FVP_Corstone_SSE-300/ /opt/FVP_Corstone_SSE-300/

COPY --from=bouffalolab /opt/bouffalolab_sdk /opt/bouffalolab_sdk

COPY --from=asr /opt/asr /opt/asr

# Android license file "acceping" is done by writing license hashes
# into the 'licenses' subfolder. This allows any user (in particular
# 'vscode' to accept licenses)
Expand Down Expand Up @@ -116,3 +119,4 @@ ENV TIZEN_SDK_SYSROOT $TIZEN_SDK_ROOT/platforms/tizen-$TIZEN_VERSION/mobile/root

ENV FVP_CORSTONE_300_PATH=/opt/FVP_Corstone_SSE-300
ENV BOUFFALOLAB_SDK_ROOT=/opt/bouffalolab_sdk
ENV ASR_TOOLCHAIN_PATH=/opt/asr/Tools/toolchain/gcc-arm-none-eabi-9-2019-q4-major/bin/
2 changes: 1 addition & 1 deletion integrations/docker/images/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.5 Version bump reason: [OIS] Remove GCC toolchain
0.7.6 Version bump reason: [ASR] add ASR docker image

0 comments on commit 94eaeab

Please sign in to comment.