Skip to content

Commit 4224d70

Browse files
delete unnecessary files from the docker image (#36237)
1 parent d814ce7 commit 4224d70

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
86 : [Tizen] Pass runner's path as QEMU argument
1+
87 : [Silabs] Delete SDK files to reduce the amount of flash consummed

integrations/docker/images/stage-2/chip-build-efr32/Dockerfile

+10-3
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,28 @@ RUN wget https://github.com/SiliconLabs/simplicity_sdk/releases/download/v2024.6
1818
&& unzip /tmp/simplicity_sdk.zip -d /tmp/simplicity_sdk \
1919
&& rm -rf /tmp/simplicity_sdk.zip \
2020
# Deleting files that are not needed to save space
21-
&& rm -rf /tmp/simplicity_sdk/protocol/flex /tmp/simplicity_sdk/protocol/z-wave /tmp/simplicity_sdk/protocol/zigbee /tmp/simplicity_sdk/protocol/wisun \
21+
&& rm -rf /tmp/simplicity_sdk/protocol/flex /tmp/simplicity_sdk/protocol/z-wave /tmp/simplicity_sdk/protocol/zigbee /tmp/simplicity_sdk/protocol/wisun /tmp/simplicity_sdk/util/third_party/tensorflow_extra \
22+
/tmp/simplicity_sdk/util/third_party/sqlite /tmp/simplicity_sdk/util/third_party/ot-br-posix /tmp/simplicity_sdk/util/third_party/tflite-micro /tmp/simplicity_sdk/util/third_party/tflite-fatfs /tmp/simplicity_sdk/util/third_party/unity_test_framework \
23+
/tmp/simplicity_sdk/platform/radio/efr32_multiphy_configurator \
2224
&& find /tmp/simplicity_sdk/protocol/bluetooth /tmp/simplicity_sdk/platform -name "*.a" -type f -delete \
2325
&& find /tmp/simplicity_sdk/protocol/openthread -name "*efr32mg21*" -delete \
26+
&& find /tmp/simplicity_sdk \( -name "libsl_platform_ftd_efr32mg2*" -o -name "libsl_ot_stack_mtd_efr32mg2*" \) -type f -delete \
27+
&& find /tmp/simplicity_sdk/hardware/board/config -mindepth 1 -maxdepth 1 -type d ! \( -name '*brd4186c*' -o -name '*brd4187c*' -o -name '*brd4186a*' -o -name '*brd4187a*' -o -name '*brd2601b*' -o -name '*brd2703a*' -o -name '*brd2704a*' \
28+
-o -name '*brd4316a*' -o -name '*brd4317a*' -o -name '*brd4318a*' -o -name '*brd4319a*' -o -name '*brd4116a*' -o -name '*brd4117a*' -o -name '*brd4118a*' -o -name '*brd2608a*' \) -exec rm -rf {} + \
29+
&& find /tmp/simplicity_sdk/platform/Device/SiliconLabs -mindepth 1 -maxdepth 1 -type d ! \( -name 'EFR32MG24' -o -name 'EFR32MG26' -o -name 'MGM24' \) -exec rm -rf {} + \
30+
&& find /tmp/simplicity_sdk -name "*.slc*" -type f -delete \
2431
&& : # last line
2532

2633
# Clone WiSeConnect Wi-Fi and Bluetooth Software 2.10.3 (b6d6cb5)
2734
RUN git clone --depth=1 --single-branch --branch=2.10.3 https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git /tmp/wiseconnect-wifi-bt-sdk && \
2835
cd /tmp/wiseconnect-wifi-bt-sdk && \
29-
rm -rf .git \
36+
rm -rf .git examples \
3037
&& : # last line
3138

3239
# Clone WiSeConnect SDK v3.3.3 (a6390dd)
3340
RUN git clone --depth=1 --single-branch --branch=v3.3.3 https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \
3441
cd /tmp/wifi_sdk && \
35-
rm -rf .git \
42+
rm -rf .git examples components/device/stm32 \
3643
&& : # last line
3744

3845
# SLC-cli install

0 commit comments

Comments
 (0)