-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NXP] Add docker image for Zephyr examples (#34206)
- Loading branch information
Showing
6 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
62 : Fix ESP32 qemu build | ||
63 : [NXP] Add docker image for Zephyr examples |
32 changes: 32 additions & 0 deletions
32
integrations/docker/images/stage-2/chip-build-nxp-zephyr/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG VERSION=1 | ||
FROM ghcr.io/project-chip/chip-build:${VERSION} AS build | ||
LABEL org.opencontainers.image.source=https://github.com/project-chip/connectedhomeip | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
xz-utils \ | ||
&& : # last line | ||
|
||
WORKDIR /opt/nxp-zephyr | ||
RUN set -x \ | ||
&& wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5/zephyr-sdk-0.16.5_linux-x86_64_minimal.tar.xz \ | ||
&& tar xvf zephyr-sdk-0.16.5_linux-x86_64_minimal.tar.xz \ | ||
&& rm -rf zephyr-sdk-0.16.5_linux-x86_64_minimal.tar.xz \ | ||
&& zephyr-sdk-0.16.5/setup.sh -t arm-zephyr-eabi \ | ||
&& pip3 install -U --no-cache-dir west \ | ||
&& west init zephyrproject -m https://github.com/nxp-zephyr-ear/zephyr.git --mr zephyr_rw61x_v3.6_RFP \ | ||
&& cd zephyrproject/zephyr \ | ||
&& west update -o=--depth=1 -n \ | ||
&& west zephyr-export \ | ||
&& : # last line | ||
|
||
FROM ghcr.io/project-chip/chip-build:${VERSION} | ||
|
||
COPY --from=build /opt/nxp-zephyr/zephyr-sdk-0.16.5/ /opt/nxp-zephyr/zephyr-sdk-0.16.5/ | ||
COPY --from=build /opt/nxp-zephyr/zephyrproject/ /opt/nxp-zephyr/zephyrproject/ | ||
|
||
WORKDIR /opt/nxp-zephyr | ||
|
||
ENV ZEPHYR_NXP_BASE=/opt/nxp-zephyr/zephyrproject/zephyr | ||
ENV ZEPHYR_NXP_SDK_INSTALL_DIR=/opt/nxp-zephyr/zephyr-sdk-0.16.5 |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/stage-2/chip-build-nxp-zephyr/build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../build.sh |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/stage-2/chip-build-nxp-zephyr/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../run.sh |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/stage-2/chip-build-nxp-zephyr/version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../base/chip-build/version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters