-
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.
Add dockerfile for NuttX platform compile (#31341)
Signed-off-by: zhanghongyu <[email protected]> Co-authored-by: Andrei Litvin <[email protected]>
- Loading branch information
Showing
6 changed files
with
48 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 @@ | ||
39 : [Python] Add ruff Python linter to chip-build | ||
40 : [NuttX] Add support for NuttX SDK |
41 changes: 41 additions & 0 deletions
41
integrations/docker/images/stage-2/chip-build-nuttx/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,41 @@ | ||
ARG VERSION=1 | ||
FROM ghcr.io/project-chip/chip-build:${VERSION} | ||
LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Install prerequisites | ||
RUN set -x \ | ||
&& dpkg --add-architecture i386 \ | ||
&& apt update -y \ | ||
&& apt install -y genromfs xxd libgmp-dev libmpfr-dev libmpc-dev \ | ||
&& : # last line | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Download and build g++-13 | ||
RUN set -x \ | ||
&& ! test -d /opt/nuttx/gcc-13 \ | ||
&& wget -P gcc_build https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.1.0/gcc-13.1.0.tar.gz \ | ||
&& cd gcc_build \ | ||
&& tar xzf gcc-13.1.0.tar.gz \ | ||
&& cd gcc-13.1.0 \ | ||
&& ./configure --prefix=/opt/nuttx/gcc-13 --disable-multilib \ | ||
&& make -j8 \ | ||
&& make install-strip \ | ||
&& rm -rf ../../gcc_build \ | ||
&& : # last line | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Download NuttX SDK | ||
RUN set -x \ | ||
&& cd /opt/nuttx \ | ||
&& wget -q -O nuttx.zip https://codeload.github.com/apache/nuttx/zip/b8e0423 \ | ||
&& unzip -q nuttx.zip \ | ||
&& mv nuttx-b8e0423 nuttx \ | ||
&& rm nuttx.zip | ||
|
||
RUN set -x \ | ||
&& cd /opt/nuttx \ | ||
&& wget -q -O nuttx_app.zip https://codeload.github.com/apache/nuttx-apps/zip/9c48a8d \ | ||
&& unzip -q nuttx_app.zip \ | ||
&& mv nuttx-apps-9c48a8d apps \ | ||
&& rm nuttx_app.zip |
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 |
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 |
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