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

Add Docker image for NXP imx platform #13245

Merged
merged 4 commits into from
Jan 25, 2022
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
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/
TE-N-ElvenWang marked this conversation as resolved.
Show resolved Hide resolved
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
TE-N-ElvenWang marked this conversation as resolved.
Show resolved Hide resolved
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