Skip to content

Commit c05110f

Browse files
s07641069serhiiSalamakharestyled-commits
authored
[Telink] Add OTA LZMA image compression & Update builds to docker version 90 (#36356)
* [Telink] Decrease MCUboot RAM usage for LZMA compression * [Telink] Update process_binaries script for LZMA compression * [Telink] Optimize MCUboot flash usage for LZMA * [Telink] BOOT_BOOTSTRAP is not needed with BOOT_UPGRADE_ONLY mode * [Telink] Enable support LZMA compression * [Telink] Remove LZMA properties for RAW * [Telink] image update initiation via button press * [Telink] Increase heap size * [Telink] Use DEBUG log level as default * [Telink] Add Flash overay to test LZMA slot-1 smaller then slot-0 * Revert "[Telink] Add Flash overay to test LZMA" This reverts commit 88ec4cb. * [Telink] Fix matter.ota regenaration without remove build folder * [Telink] Add LZMA CI build * [Telink] Temporarry use latest Zephyr to check CI builds * Restyled by autopep8 * Restyled by isort * [Telink] Update builds to docker version 90 * [Telink] Fix targets * [Telink] use compress-lzma instead of compress_lzma --------- Co-authored-by: Serhii Salamakha <serhii.salamakha@gmail.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 123570c commit c05110f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+270
-89
lines changed

.github/workflows/bloat_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
container:
37-
image: ghcr.io/project-chip/chip-build:81
37+
image: ghcr.io/project-chip/chip-build:90
3838

3939
steps:
4040
- name: Checkout

.github/workflows/build.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: github.actor != 'restyled-io[bot]'
4444

4545
container:
46-
image: ghcr.io/project-chip/chip-build:81
46+
image: ghcr.io/project-chip/chip-build:90
4747
volumes:
4848
- "/:/runner-root-volume"
4949
- "/tmp/log_output:/tmp/test_logs"
@@ -139,7 +139,7 @@ jobs:
139139
if: github.actor != 'restyled-io[bot]'
140140

141141
container:
142-
image: ghcr.io/project-chip/chip-build:81
142+
image: ghcr.io/project-chip/chip-build:90
143143
volumes:
144144
- "/:/runner-root-volume"
145145
- "/tmp/log_output:/tmp/test_logs"
@@ -308,7 +308,7 @@ jobs:
308308
if: github.actor != 'restyled-io[bot]'
309309

310310
container:
311-
image: ghcr.io/project-chip/chip-build:81
311+
image: ghcr.io/project-chip/chip-build:90
312312
volumes:
313313
- "/:/runner-root-volume"
314314
- "/tmp/log_output:/tmp/test_logs"
@@ -371,7 +371,7 @@ jobs:
371371
if: github.actor != 'restyled-io[bot]'
372372

373373
container:
374-
image: ghcr.io/project-chip/chip-build:81
374+
image: ghcr.io/project-chip/chip-build:90
375375
volumes:
376376
- "/:/runner-root-volume"
377377
- "/tmp/log_output:/tmp/test_logs"
@@ -490,7 +490,7 @@ jobs:
490490
if: github.actor != 'restyled-io[bot]'
491491

492492
container:
493-
image: ghcr.io/project-chip/chip-build:81
493+
image: ghcr.io/project-chip/chip-build:90
494494
volumes:
495495
- "/:/runner-root-volume"
496496
- "/tmp/log_output:/tmp/test_logs"

.github/workflows/chef.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: github.actor != 'restyled-io[bot]'
3737

3838
container:
39-
image: ghcr.io/project-chip/chip-build:81
39+
image: ghcr.io/project-chip/chip-build:90
4040
options: --user root
4141

4242
steps:
@@ -57,7 +57,7 @@ jobs:
5757
if: github.actor != 'restyled-io[bot]'
5858

5959
container:
60-
image: ghcr.io/project-chip/chip-build-esp32:81
60+
image: ghcr.io/project-chip/chip-build-esp32:90
6161
options: --user root
6262

6363
steps:
@@ -78,7 +78,7 @@ jobs:
7878
if: github.actor != 'restyled-io[bot]'
7979

8080
container:
81-
image: ghcr.io/project-chip/chip-build-nrf-platform:81
81+
image: ghcr.io/project-chip/chip-build-nrf-platform:90
8282
options: --user root
8383

8484
steps:
@@ -99,7 +99,7 @@ jobs:
9999
if: github.actor != 'restyled-io[bot]'
100100

101101
container:
102-
image: ghcr.io/project-chip/chip-build-telink:81
102+
image: ghcr.io/project-chip/chip-build-telink:90
103103
options: --user root
104104

105105
steps:
@@ -111,7 +111,7 @@ jobs:
111111
platform: telink
112112
# - name: Update Zephyr to specific revision (for developers purpose)
113113
# shell: bash
114-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 3ed7686a9378de6be1368c912f9a42f998bbfb18"
114+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py f762f1a1027284e63e338e6d83deeade62f355b0"
115115
- name: CI Examples Telink
116116
shell: bash
117117
run: |

.github/workflows/doxygen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
runs-on: ubuntu-latest
8686
container:
87-
image: ghcr.io/project-chip/chip-build-doxygen:81
87+
image: ghcr.io/project-chip/chip-build-doxygen:90
8888

8989
if: github.actor != 'restyled-io[bot]'
9090

.github/workflows/examples-ameba.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.actor != 'restyled-io[bot]'
4040

4141
container:
42-
image: ghcr.io/project-chip/chip-build-ameba:81
42+
image: ghcr.io/project-chip/chip-build-ameba:90
4343
options: --user root
4444

4545
steps:

.github/workflows/examples-asr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build-asr:81
40+
image: ghcr.io/project-chip/chip-build-asr:90
4141
options: --user root
4242

4343
steps:

.github/workflows/examples-bouffalolab.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: github.actor != 'restyled-io[bot]'
3939

4040
container:
41-
image: ghcr.io/project-chip/chip-build-bouffalolab:81
41+
image: ghcr.io/project-chip/chip-build-bouffalolab:90
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
steps:

.github/workflows/examples-cc13xx_26xx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: github.actor != 'restyled-io[bot]'
4343

4444
container:
45-
image: ghcr.io/project-chip/chip-build-ti:81
45+
image: ghcr.io/project-chip/chip-build-ti:90
4646
volumes:
4747
- "/tmp/bloat_reports:/tmp/bloat_reports"
4848
steps:

.github/workflows/examples-cc32xx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: github.actor != 'restyled-io[bot]'
4242

4343
container:
44-
image: ghcr.io/project-chip/chip-build-ti:81
44+
image: ghcr.io/project-chip/chip-build-ti:90
4545
volumes:
4646
- "/tmp/bloat_reports:/tmp/bloat_reports"
4747
steps:

.github/workflows/examples-efr32.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: github.actor != 'restyled-io[bot]'
4242

4343
container:
44-
image: ghcr.io/project-chip/chip-build-efr32:89
44+
image: ghcr.io/project-chip/chip-build-efr32:90
4545
volumes:
4646
- "/tmp/bloat_reports:/tmp/bloat_reports"
4747
steps:

.github/workflows/examples-esp32.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build-esp32:81
40+
image: ghcr.io/project-chip/chip-build-esp32:90
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

@@ -124,7 +124,7 @@ jobs:
124124
if: github.actor != 'restyled-io[bot]' && github.repository_owner == 'espressif'
125125

126126
container:
127-
image: ghcr.io/project-chip/chip-build-esp32:81
127+
image: ghcr.io/project-chip/chip-build-esp32:90
128128
volumes:
129129
- "/tmp/bloat_reports:/tmp/bloat_reports"
130130

.github/workflows/examples-infineon.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: github.actor != 'restyled-io[bot]'
3939

4040
container:
41-
image: ghcr.io/project-chip/chip-build-infineon:81
41+
image: ghcr.io/project-chip/chip-build-infineon:90
4242
env:
4343
# TODO: this should probably be part of the dockerfile itself
4444
CY_TOOLS_PATHS: /opt/Tools/ModusToolbox/tools_3.2

.github/workflows/examples-linux-arm.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build-crosscompile:81
40+
image: ghcr.io/project-chip/chip-build-crosscompile:90
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-linux-imx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build-imx:81
40+
image: ghcr.io/project-chip/chip-build-imx:90
4141

4242
steps:
4343
- name: Checkout

.github/workflows/examples-linux-standalone.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build:81
40+
image: ghcr.io/project-chip/chip-build:90
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-linux-tv-casting-app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build:81
40+
image: ghcr.io/project-chip/chip-build:90
4141

4242
steps:
4343
- name: Checkout

.github/workflows/examples-mw320.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build:81
43+
image: ghcr.io/project-chip/chip-build:90
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:

.github/workflows/examples-nrfconnect.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build-nrf-platform:81
43+
image: ghcr.io/project-chip/chip-build-nrf-platform:90
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646

.github/workflows/examples-nuttx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: github.actor != 'restyled-io[bot]'
3939

4040
container:
41-
image: ghcr.io/project-chip/chip-build-nuttx:81
41+
image: ghcr.io/project-chip/chip-build-nuttx:90
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
steps:

.github/workflows/examples-nxp.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build-nxp:81
43+
image: ghcr.io/project-chip/chip-build-nxp:90
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:
@@ -240,7 +240,7 @@ jobs:
240240
if: github.actor != 'restyled-io[bot]'
241241

242242
container:
243-
image: ghcr.io/project-chip/chip-build-nxp-zephyr:81
243+
image: ghcr.io/project-chip/chip-build-nxp-zephyr:90
244244

245245
steps:
246246
- name: Checkout

.github/workflows/examples-openiotsdk.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: github.actor != 'restyled-io[bot]'
3737

3838
container:
39-
image: ghcr.io/project-chip/chip-build-openiotsdk:81
39+
image: ghcr.io/project-chip/chip-build-openiotsdk:90
4040
volumes:
4141
- "/tmp/bloat_reports:/tmp/bloat_reports"
4242
options: --privileged

.github/workflows/examples-qpg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build:81
43+
image: ghcr.io/project-chip/chip-build:90
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:

.github/workflows/examples-stm32.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: github.actor != 'restyled-io[bot]'
4242

4343
container:
44-
image: ghcr.io/project-chip/chip-build:81
44+
image: ghcr.io/project-chip/chip-build:90
4545
volumes:
4646
- "/tmp/bloat_reports:/tmp/bloat_reports"
4747
steps:

.github/workflows/examples-telink.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.actor != 'restyled-io[bot]'
4040

4141
container:
42-
image: ghcr.io/project-chip/chip-build-telink:81
42+
image: ghcr.io/project-chip/chip-build-telink:90
4343
volumes:
4444
- "/tmp/bloat_reports:/tmp/bloat_reports"
4545

@@ -58,7 +58,7 @@ jobs:
5858
gh-context: ${{ toJson(github) }}
5959

6060
# - name: Update Zephyr to specific revision (for developers purpose)
61-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 3ed7686a9378de6be1368c912f9a42f998bbfb18"
61+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py f762f1a1027284e63e338e6d83deeade62f355b0"
6262

6363
- name: Build example Telink (B92 retention) Air Quality Sensor App
6464
# Run test for master and s07641069 PRs
@@ -167,14 +167,14 @@ jobs:
167167
- name: clean out build output (keep tools)
168168
run: rm -rf ./out/telink*
169169

170-
- name: Build example Telink (B92) Light Switch App with OTA, Shell, Factory Data
170+
- name: Build example Telink (B92) Light Switch App with OTA (LZMA), Shell, Factory Data
171171
# Run test for master and all PRs
172172
run: |
173173
./scripts/run_in_build_env.sh \
174-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-light-switch-ota-shell-factory-data' build"
174+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data' build"
175175
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
176-
telink tlsr9528a light-switch-app-ota-shell-factory-data \
177-
out/telink-tlsr9528a-light-switch-ota-shell-factory-data/zephyr/zephyr.elf \
176+
telink tlsr9528a light-switch-app-ota-compress-lzma-shell-factory-data \
177+
out/telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data/zephyr/zephyr.elf \
178178
/tmp/bloat_reports/
179179
180180
- name: clean out build output

.github/workflows/examples-tizen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build-tizen:81
40+
image: ghcr.io/project-chip/chip-build-tizen:90
4141
options: --user root
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"

.github/workflows/full-android.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.actor != 'restyled-io[bot]'
4040

4141
container:
42-
image: ghcr.io/project-chip/chip-build-android:81
42+
image: ghcr.io/project-chip/chip-build-android:90
4343
volumes:
4444
- "/tmp/log_output:/tmp/test_logs"
4545

.github/workflows/fuzzing-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
if: github.actor != 'restyled-io[bot]'
3434

3535
container:
36-
image: ghcr.io/project-chip/chip-build:81
36+
image: ghcr.io/project-chip/chip-build:90
3737
volumes:
3838
- "/tmp/log_output:/tmp/test_logs"
3939

.github/workflows/java-tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444

4545
container:
46-
image: ghcr.io/project-chip/chip-build-java:81
46+
image: ghcr.io/project-chip/chip-build-java:90
4747
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
4848
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
4949

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: github.actor != 'restyled-io[bot]'
3737

3838
container:
39-
image: ghcr.io/project-chip/chip-build:81
39+
image: ghcr.io/project-chip/chip-build:90
4040

4141
steps:
4242
- name: Checkout

.github/workflows/minimal-build.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
container:
37-
image: ghcr.io/project-chip/chip-build-minimal:81
37+
image: ghcr.io/project-chip/chip-build-minimal:90
3838

3939
steps:
4040
- name: Checkout
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: ubuntu-latest
5757

5858
container:
59-
image: ghcr.io/project-chip/chip-build-minimal:81
59+
image: ghcr.io/project-chip/chip-build-minimal:90
6060

6161
steps:
6262
- name: Checkout

0 commit comments

Comments
 (0)