@@ -203,14 +203,9 @@ WORKDIR /root/connectedhomeip/
203
203
RUN git checkout ${COMMITHASH}
204
204
RUN ./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
205
205
RUN bash scripts/bootstrap.sh
206
- SHELL ["/bin/bash" , "-c" ]
207
- RUN set -x && \
208
- source scripts/activate.sh \
209
- && gn gen out/debug --args='chip_mdns="platform" chip_inet_config_enable_ipv4=false' \
210
- && ninja -C out/debug
211
206
212
207
# Stage 2: Build.
213
- from chip-build-cert as chip-build-cert-bins
208
+ FROM chip-build-cert as chip-build-cert-bins
214
209
215
210
SHELL ["/bin/bash" , "-c" ]
216
211
@@ -222,6 +217,9 @@ RUN case ${TARGETPLATFORM} in \
222
217
set -x \
223
218
&& source scripts/activate.sh \
224
219
&& scripts/build/build_examples.py \
220
+ --target linux-x64-chip-tool-ipv6only-platform-mdns \
221
+ --target linux-x64-shell-ipv6only-platform-mdns \
222
+ --target linux-x64-chip-cert-ipv6only-platform-mdns \
225
223
--target linux-x64-all-clusters-ipv6only \
226
224
--target linux-x64-all-clusters-minimal-ipv6only \
227
225
--target linux-x64-bridge-ipv6only \
@@ -234,6 +232,9 @@ RUN case ${TARGETPLATFORM} in \
234
232
--target linux-x64-lock-ipv6only \
235
233
--target linux-x64-simulated-app1-ipv6only \
236
234
build \
235
+ && mv out/linux-x64-chip-tool-ipv6only-platform-mdns/chip-tool out/chip-tool \
236
+ && mv out/linux-x64-shell-ipv6only-platform-mdns/chip-shell out/chip-shell \
237
+ && mv out/linux-x64-chip-cert-ipv6only-platform-mdns/chip-cert out/chip-cert \
237
238
&& mv out/linux-x64-all-clusters-ipv6only/chip-all-clusters-app out/chip-all-clusters-app \
238
239
&& mv out/linux-x64-all-clusters-minimal-ipv6only/chip-all-clusters-minimal-app out/chip-all-clusters-minimal-app \
239
240
&& mv out/linux-x64-bridge-ipv6only/chip-bridge-app out/chip-bridge-app \
@@ -250,6 +251,9 @@ RUN case ${TARGETPLATFORM} in \
250
251
set -x \
251
252
&& source scripts/activate.sh \
252
253
&& scripts/build/build_examples.py \
254
+ --target linux-arm64-chip-tool-ipv6only-platform-mdns \
255
+ --target linux-arm64-shell-ipv6only-platform-mdns \
256
+ --target linux-arm64-chip-cert-ipv6only-platform-mdns \
253
257
--target linux-arm64-all-clusters-ipv6only \
254
258
--target linux-arm64-all-clusters-minimal-ipv6only \
255
259
--target linux-arm64-bridge-ipv6only \
@@ -262,6 +266,9 @@ RUN case ${TARGETPLATFORM} in \
262
266
--target linux-arm64-lock-ipv6only \
263
267
--target linux-arm64-simulated-app1-ipv6only \
264
268
build \
269
+ && mv out/linux-arm64-chip-tool-ipv6only-platform-mdns/chip-tool out/chip-tool \
270
+ && mv out/linux-arm64-shell-ipv6only-platform-mdns/chip-shell out/chip-shell \
271
+ && mv out/linux-arm64-chip-cert-ipv6only-platform-mdns/chip-cert out/chip-cert \
265
272
&& mv out/linux-arm64-all-clusters-ipv6only/chip-all-clusters-app out/chip-all-clusters-app \
266
273
&& mv out/linux-arm64-all-clusters-minimal-ipv6only/chip-all-clusters-minimal-app out/chip-all-clusters-minimal-app \
267
274
&& mv out/linux-arm64-bridge-ipv6only/chip-bridge-app out/chip-bridge-app \
@@ -277,7 +284,7 @@ RUN case ${TARGETPLATFORM} in \
277
284
*) ;; \
278
285
esac
279
286
280
- RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true -i no
287
+ RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true
281
288
282
289
# Stage 3: Copy relevant cert bins to a minimal image to reduce size.
283
290
FROM ubuntu:22.04
@@ -287,9 +294,9 @@ RUN apt-get update -y
287
294
RUN apt-get install -y libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev avahi-utils iproute2 libcairo2-dev libgirepository1.0-dev python3-pip
288
295
WORKDIR /root/
289
296
COPY --from=chip-build-cert-bins /root/.sdk-sha-version .sdk-sha-version
290
- COPY --from=chip-build-cert-bins /root/connectedhomeip/out/debug/ chip-tool chip-tool
291
- COPY --from=chip-build-cert-bins /root/connectedhomeip/out/debug/ chip-shell chip-shell
292
- COPY --from=chip-build-cert-bins /root/connectedhomeip/out/debug/ chip-cert chip-cert
297
+ COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-tool chip-tool
298
+ COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-shell chip-shell
299
+ COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-cert chip-cert
293
300
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-all-clusters-app chip-all-clusters-app
294
301
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-all-clusters-minimal-app chip-all-clusters-minimal-app
295
302
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-lighting-app chip-lighting-app
0 commit comments