File tree 6 files changed +48
-1
lines changed
integrations/docker/images
6 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1
- 39 : [Python ] Add ruff Python linter to chip-build
1
+ 40 : [NuttX ] Add support for NuttX SDK
Original file line number Diff line number Diff line change
1
+ ARG VERSION=1
2
+ FROM ghcr.io/project-chip/chip-build:${VERSION}
3
+ LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip
4
+
5
+ # ------------------------------------------------------------------------------
6
+ # Install prerequisites
7
+ RUN set -x \
8
+ && dpkg --add-architecture i386 \
9
+ && apt update -y \
10
+ && apt install -y genromfs xxd libgmp-dev libmpfr-dev libmpc-dev \
11
+ && : # last line
12
+
13
+ # ------------------------------------------------------------------------------
14
+ # Download and build g++-13
15
+ RUN set -x \
16
+ && ! test -d /opt/nuttx/gcc-13 \
17
+ && wget -P gcc_build https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.1.0/gcc-13.1.0.tar.gz \
18
+ && cd gcc_build \
19
+ && tar xzf gcc-13.1.0.tar.gz \
20
+ && cd gcc-13.1.0 \
21
+ && ./configure --prefix=/opt/nuttx/gcc-13 --disable-multilib \
22
+ && make -j8 \
23
+ && make install-strip \
24
+ && rm -rf ../../gcc_build \
25
+ && : # last line
26
+
27
+ # ------------------------------------------------------------------------------
28
+ # Download NuttX SDK
29
+ RUN set -x \
30
+ && cd /opt/nuttx \
31
+ && wget -q -O nuttx.zip https://codeload.github.com/apache/nuttx/zip/b8e0423 \
32
+ && unzip -q nuttx.zip \
33
+ && mv nuttx-b8e0423 nuttx \
34
+ && rm nuttx.zip
35
+
36
+ RUN set -x \
37
+ && cd /opt/nuttx \
38
+ && wget -q -O nuttx_app.zip https://codeload.github.com/apache/nuttx-apps/zip/9c48a8d \
39
+ && unzip -q nuttx_app.zip \
40
+ && mv nuttx-apps-9c48a8d apps \
41
+ && rm nuttx_app.zip
Original file line number Diff line number Diff line change
1
+ ../../../build.sh
Original file line number Diff line number Diff line change
1
+ ../../../run.sh
Original file line number Diff line number Diff line change
1
+ ../../base/chip-build/version
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ FROM ghcr.io/project-chip/chip-build-ti:${VERSION} AS ti
17
17
FROM ghcr.io/project-chip/chip-build-openiotsdk:${VERSION} AS openiotsdk
18
18
FROM ghcr.io/project-chip/chip-build-bouffalolab:${VERSION} AS bouffalolab
19
19
FROM ghcr.io/project-chip/chip-build-asr:${VERSION} AS asr
20
+ FROM ghcr.io/project-chip/chip-build-nuttx:${VERSION} AS nuttx
20
21
FROM ghcr.io/project-chip/chip-build:${VERSION}
21
22
22
23
LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip
@@ -67,6 +68,8 @@ COPY --from=efr32 /opt/silabs/gecko_sdk /opt/silabs/gecko_sdk
67
68
COPY --from=efr32 /opt/silabs/wiseconnect-wifi-bt-sdk /opt/silabs/wiseconnect-wifi-bt-sdk
68
69
COPY --from=efr32 /opt/silabs/wifi_sdk /opt/silabs/wifi_sdk
69
70
71
+ COPY --from=nuttx /opt/nuttx /opt/nuttx
72
+
70
73
# Android license file "acceping" is done by writing license hashes
71
74
# into the 'licenses' subfolder. This allows any user (in particular
72
75
# 'vscode' to accept licenses)
You can’t perform that action at this time.
0 commit comments