Skip to content

Commit

Permalink
Add Dockerfile for Ameba platform (#10316)
Browse files Browse the repository at this point in the history
* Add Dockerfile for Ameba platform

* Add Ameba into vscode and amend the ENV

* Modify Dockerfile and update version
  • Loading branch information
pankore authored Oct 18, 2021
1 parent f0b6cbc commit 16d1879
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
17 changes: 17 additions & 0 deletions integrations/docker/images/chip-build-ameba/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION}

# Setup Ameba
ARG AMEBA_DIR=/opt/ameba
RUN set -x \
&& apt-get update \
&& apt-get --no-install-recommends -y install python2 \
&& mkdir ${AMEBA_DIR} \
&& cd ${AMEBA_DIR} \
&& git clone --depth 1 --progress -b cmake_build https://github.com/pankore/ambd_sdk_with_chip_non_NDA.git \
&& cd ambd_sdk_with_chip_non_NDA \
&& git pull \
&& git submodule update --depth 1 --init --progress \
&& : # last line

ENV AMEBA_PATH=${AMEBA_DIR}/ambd_sdk_with_chip_non_NDA
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-ameba/build.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-ameba/run.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-ameba/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 @@ -8,6 +8,7 @@ FROM connectedhomeip/chip-build-telink:${VERSION} AS telink
FROM connectedhomeip/chip-build-infineon:${VERSION} AS p6
FROM connectedhomeip/chip-build-tizen:${VERSION} AS tizen
FROM connectedhomeip/chip-build-crosscompile:${VERSION} AS crosscompile
FROM connectedhomeip/chip-build-ameba:${VERSION} AS ameba
FROM connectedhomeip/chip-build:${VERSION}

# qemu-src copied over because qemu directory contains symlinks to the src
Expand All @@ -34,6 +35,8 @@ COPY --from=tizen /opt/tizen_sdk /opt/tizen_sdk

COPY --from=crosscompile /opt/ubuntu-21.04-aarch64-sysroot /opt/ubuntu-21.04-aarch64-sysroot

COPY --from=ameba /opt/ameba /opt/ameba

# 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 All @@ -59,3 +62,4 @@ ENV TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.13.0
ENV CY_TOOLS_PATHS="/opt/ModusToolbox/tools_2.3"
ENV TIZEN_HOME /opt/tizen_sdk
ENV SYSROOT_AARCH64=/opt/ubuntu-21.04-aarch64-sysroot
ENV AMEBA_PATH=/opt/ameba/ambd_sdk_with_chip_non_NDA
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.5.16
0.5.17 Version bump reason: Add for Ameba platform

0 comments on commit 16d1879

Please sign in to comment.