Skip to content

Commit

Permalink
Add Docker image for NXP imx platform (#13245)
Browse files Browse the repository at this point in the history
* Add Docker image for NXP imx platform

NXP i.MX platform Docker image build supported by this change.

Signed-off-by: Haoran Wang <[email protected]>

* Update integrations/docker/images/chip-build-imx/Dockerfile

Co-authored-by: Victor Morales <[email protected]>

* Update Dockerfile

Signed-off-by: Haoran.Wang <[email protected]>

* Add NXP imx Docker image support for vscode image

Signed-off-by: Haoran.Wang <[email protected]>

Co-authored-by: Victor Morales <[email protected]>
  • Loading branch information
TE-N-ElvenWang and electrocucaracha authored Jan 25, 2022
1 parent f1808b7 commit f5bf5e4
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ RUN chown -R $USERNAME:$USERNAME /opt/ameba/ambd_sdk_with_chip_non_NDA/

# NXP uses a patch_sdk script to change SDK files
RUN chown -R $USERNAME:$USERNAME /opt/sdk/sdks/

RUN chown -R $USERNAME:$USERNAME /opt/fsl-imx-xwayland/5.10-hardknott/
1 change: 1 addition & 0 deletions .github/workflows/docker_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- "-esp32"
- "-esp32-qemu"
- "-infineon"
- "-imx"
- "-k32w"
- "-mbed-os"
- "-nrf-platform"
Expand Down
21 changes: 21 additions & 0 deletions integrations/docker/images/chip-build-imx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION} as build
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \
wget=1.20.3-1ubuntu2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& : # last line
WORKDIR /opt
RUN set -x \
&& wget --quiet -O fsl-l5.10.52-2.1.0-sdk.tar.gz https://www.nxp.com/lgfiles/IMM/fsl-l5.10.52-2.1.0-sdk.tar.gz \
&& tar zxvf fsl-l5.10.52-2.1.0-sdk.tar.gz \
&& ./fsl-imx-xwayland-glibc-x86_64-imx-image-core-cortexa53-crypto-imx8mmevk-toolchain-5.10-hardknott.sh -y \
&& : # last line

FROM connectedhomeip/chip-build:${VERSION}

COPY --from=build /opt/fsl-imx-xwayland /opt/fsl-imx-xwayland

ENV IMX_SDK_ROOT=/opt/fsl-imx-xwayland/5.10-hardknott/
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-imx/build.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-imx/run.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-imx/version
5 changes: 5 additions & 0 deletions integrations/docker/images/chip-build-vscode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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-k32w:${VERSION} AS k32w
FROM connectedhomeip/chip-build-imx:${VERSION} AS imx
FROM connectedhomeip/chip-build:${VERSION}

# qemu-src copied over because qemu directory contains symlinks to the src
Expand Down Expand Up @@ -40,6 +41,9 @@ COPY --from=ameba /opt/ameba /opt/ameba

COPY --from=k32w /opt/sdk/sdks /opt/sdk/sdks

COPY --from=imx /opt/fsl-imx-xwayland /opt/fsl-imx-xwayland


# 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 @@ -67,3 +71,4 @@ 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
ENV NXP_K32W061_SDK_ROOT=/opt/sdk/sdks
ENV IMX_SDK_ROOT=/opt/fsl-imx-xwayland/5.10-hardknott/
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.50 Version bump reason: [Ameba] Support Rotating ID for BLE beaconing
0.5.51 Version bump reason: Add Docker image for NXP imx platform

0 comments on commit f5bf5e4

Please sign in to comment.