Skip to content

Commit 3822b0f

Browse files
s07641069serhiiSalamakhamishadeshandriy-bilynskyyrestyled-commits
authored
[Telink] Add retention target & Update builds to docker version 25 (#30271)
* [Telink] Add tlsr9528a retention overlay * [Telink]: Fixed -wundef for CONFIG_BT option Fixed undef error for CONFIG_BT option Signed-off-by: Misha Tkachenko <misha.tkachenko@telink-semi.com> * [Telink]: Extended common heap size Extended common heap size (COMMON_LIBC_MALLOC_ARENA_SIZE) to 12288 bytes Signed-off-by: Misha Tkachenko <misha.tkachenko@telink-semi.com> * [Telink]: Added Thread-only mode Added Thread-only mode for testing Signed-off-by: Misha Tkachenko <misha.tkachenko@telink-semi.com> * [Telink] Fix after rebase * [Telink] Use base board without retention for mcuboot build * [Telink] Add retention board to CI * [Telink] Disable LEDs for retention board * [Telink] Add script for update Telink Zephyr to specific revision * [Telink] Fix crash/hang during factory reset * [Telink] Disable Update Zephyr to specific revision by default * [Telink] Update builds to docker version 25 * Restyled by whitespace * Restyled by clang-format --------- Signed-off-by: Misha Tkachenko <misha.tkachenko@telink-semi.com> Co-authored-by: Serhii Salamakha <serhii.salamakha@gmail.com> Co-authored-by: Misha Tkachenko <misha.tkachenko@telink-semi.com> Co-authored-by: Andrii Bilynskyi <andrii.bilynskyi@telink-semi.com> Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 937866d commit 3822b0f

File tree

78 files changed

+288
-218
lines changed

Some content is hidden

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

78 files changed

+288
-218
lines changed

.github/workflows/bloat_check.yaml

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

3535
container:
36-
image: ghcr.io/project-chip/chip-build:24
36+
image: ghcr.io/project-chip/chip-build:25
3737

3838
steps:
3939
- name: Checkout

.github/workflows/build.yaml

+5-5
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:24
43+
image: ghcr.io/project-chip/chip-build:25
4444
volumes:
4545
- "/tmp/log_output:/tmp/test_logs"
4646
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -135,7 +135,7 @@ jobs:
135135
if: github.actor != 'restyled-io[bot]'
136136

137137
container:
138-
image: ghcr.io/project-chip/chip-build:24
138+
image: ghcr.io/project-chip/chip-build:25
139139
volumes:
140140
- "/tmp/log_output:/tmp/test_logs"
141141
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -283,7 +283,7 @@ jobs:
283283
if: github.actor != 'restyled-io[bot]'
284284

285285
container:
286-
image: ghcr.io/project-chip/chip-build:24
286+
image: ghcr.io/project-chip/chip-build:25
287287
volumes:
288288
- "/tmp/log_output:/tmp/test_logs"
289289
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -343,7 +343,7 @@ jobs:
343343
if: github.actor != 'restyled-io[bot]'
344344

345345
container:
346-
image: ghcr.io/project-chip/chip-build:24
346+
image: ghcr.io/project-chip/chip-build:25
347347
volumes:
348348
- "/tmp/log_output:/tmp/test_logs"
349349
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -451,7 +451,7 @@ jobs:
451451
if: github.actor != 'restyled-io[bot]'
452452

453453
container:
454-
image: ghcr.io/project-chip/chip-build:24
454+
image: ghcr.io/project-chip/chip-build:25
455455
volumes:
456456
- "/tmp/log_output:/tmp/test_logs"
457457
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0

.github/workflows/chef.yaml

+7-4
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:24
36+
image: ghcr.io/project-chip/chip-build:25
3737
options: --user root
3838

3939
steps:
@@ -54,7 +54,7 @@ jobs:
5454
if: github.actor != 'restyled-io[bot]'
5555

5656
container:
57-
image: ghcr.io/project-chip/chip-build-esp32:24
57+
image: ghcr.io/project-chip/chip-build-esp32:25
5858
options: --user root
5959

6060
steps:
@@ -75,7 +75,7 @@ jobs:
7575
if: github.actor != 'restyled-io[bot]'
7676

7777
container:
78-
image: ghcr.io/project-chip/chip-build-nrf-platform:24
78+
image: ghcr.io/project-chip/chip-build-nrf-platform:25
7979
options: --user root
8080

8181
steps:
@@ -96,7 +96,7 @@ jobs:
9696
if: github.actor != 'restyled-io[bot]'
9797

9898
container:
99-
image: ghcr.io/project-chip/chip-build-telink:24
99+
image: ghcr.io/project-chip/chip-build-telink:25
100100
options: --user root
101101

102102
steps:
@@ -106,6 +106,9 @@ jobs:
106106
uses: ./.github/actions/checkout-submodules-and-bootstrap
107107
with:
108108
platform: telink
109+
# - name: Update Zephyr to specific revision (for developers purpose)
110+
# shell: bash
111+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e6a32f41ccec55c2233631406842b71ff270089d"
109112
- name: CI Examples Telink
110113
shell: bash
111114
run: |

.github/workflows/cirque.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# need to run with privilege, which isn't supported by job.XXX.contaner
4141
# https://github.com/actions/container-action/issues/2
4242
# container:
43-
# image: ghcr.io/project-chip/chip-build-cirque:24
43+
# image: ghcr.io/project-chip/chip-build-cirque:25
4444
# volumes:
4545
# - "/tmp:/tmp"
4646
# - "/dev/pts:/dev/pts"

.github/workflows/doxygen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181

8282
runs-on: ubuntu-latest
8383
container:
84-
image: ghcr.io/project-chip/chip-build-doxygen:24
84+
image: ghcr.io/project-chip/chip-build-doxygen:25
8585

8686
if: github.actor != 'restyled-io[bot]'
8787

.github/workflows/examples-ameba.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-ameba:24
39+
image: ghcr.io/project-chip/chip-build-ameba:25
4040
options: --user root
4141

4242
steps:

.github/workflows/examples-asr.yaml

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build-asr:24
37+
image: ghcr.io/project-chip/chip-build-asr:25
3838
options: --user root
3939

4040
steps:

.github/workflows/examples-bouffalolab.yaml

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

3737
container:
38-
image: ghcr.io/project-chip/chip-build-bouffalolab:24
38+
image: ghcr.io/project-chip/chip-build-bouffalolab:25
3939
volumes:
4040
- "/tmp/bloat_reports:/tmp/bloat_reports"
4141
steps:

.github/workflows/examples-cc13x2x7_26x2x7.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-ti:24
39+
image: ghcr.io/project-chip/chip-build-ti:25
4040
volumes:
4141
- "/tmp/bloat_reports:/tmp/bloat_reports"
4242
steps:

.github/workflows/examples-cc32xx.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-ti:24
40+
image: ghcr.io/project-chip/chip-build-ti:25
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343
steps:

.github/workflows/examples-efr32.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-efr32:24
41+
image: ghcr.io/project-chip/chip-build-efr32:25
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
steps:

.github/workflows/examples-esp32.yaml

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build-esp32:24
37+
image: ghcr.io/project-chip/chip-build-esp32:25
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040

@@ -130,7 +130,7 @@ jobs:
130130
if: github.actor != 'restyled-io[bot]'
131131

132132
container:
133-
image: ghcr.io/project-chip/chip-build-esp32:24
133+
image: ghcr.io/project-chip/chip-build-esp32:25
134134
volumes:
135135
- "/tmp/bloat_reports:/tmp/bloat_reports"
136136

.github/workflows/examples-infineon.yaml

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

3737
container:
38-
image: ghcr.io/project-chip/chip-build-infineon:24
38+
image: ghcr.io/project-chip/chip-build-infineon:25
3939
volumes:
4040
- "/tmp/bloat_reports:/tmp/bloat_reports"
4141
steps:

.github/workflows/examples-k32w.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-k32w:24
40+
image: ghcr.io/project-chip/chip-build-k32w:25
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343
steps:

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

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build-crosscompile:24
37+
image: ghcr.io/project-chip/chip-build-crosscompile:25
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040

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

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build-imx:24
37+
image: ghcr.io/project-chip/chip-build-imx:25
3838

3939
steps:
4040
- name: Checkout

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

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build:24
37+
image: ghcr.io/project-chip/chip-build:25
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040

.github/workflows/examples-mbed.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-mbed-os:24
43+
image: ghcr.io/project-chip/chip-build-mbed-os:25
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646

.github/workflows/examples-mw320.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:24
40+
image: ghcr.io/project-chip/chip-build:25
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343
steps:

.github/workflows/examples-nrfconnect.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-nrf-platform:24
40+
image: ghcr.io/project-chip/chip-build-nrf-platform:25
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-openiotsdk.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-openiotsdk:24
41+
image: ghcr.io/project-chip/chip-build-openiotsdk:25
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
options: --privileged

.github/workflows/examples-qpg.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:24
40+
image: ghcr.io/project-chip/chip-build:25
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343
steps:

.github/workflows/examples-stm32.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:24
41+
image: ghcr.io/project-chip/chip-build:25
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
steps:

.github/workflows/examples-telink.yaml

+24-21
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-telink:24
39+
image: ghcr.io/project-chip/chip-build-telink:25
4040
volumes:
4141
- "/tmp/bloat_reports:/tmp/bloat_reports"
4242

@@ -54,13 +54,16 @@ jobs:
5454
with:
5555
gh-context: ${{ toJson(github) }}
5656

57-
- name: Build example Telink (B92) Air Quality Sensor App
57+
# - name: Update Zephyr to specific revision (for developers purpose)
58+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e6a32f41ccec55c2233631406842b71ff270089d"
59+
60+
- name: Build example Telink (B92 retention) Air Quality Sensor App
5861
run: |
5962
./scripts/run_in_build_env.sh \
60-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-air-quality-sensor' build"
63+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-air-quality-sensor' build"
6164
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
62-
telink tlsr9528a air-quality-sensor-app \
63-
out/telink-tlsr9528a-air-quality-sensor/zephyr/zephyr.elf \
65+
telink tlsr9528a_retention air-quality-sensor-app \
66+
out/telink-tlsr9528a_retention-air-quality-sensor/zephyr/zephyr.elf \
6467
/tmp/bloat_reports/
6568
6669
- name: clean out build output
@@ -102,13 +105,13 @@ jobs:
102105
- name: clean out build output
103106
run: rm -rf ./out
104107

105-
- name: Build example Telink (B92) Contact Sensor App
108+
- name: Build example Telink (B92 retention) Contact Sensor App
106109
run: |
107110
./scripts/run_in_build_env.sh \
108-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-contact-sensor' build"
111+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-contact-sensor' build"
109112
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
110-
telink tlsr9528a contact-sensor-app \
111-
out/telink-tlsr9528a-contact-sensor/zephyr/zephyr.elf \
113+
telink tlsr9528a_retention contact-sensor-app \
114+
out/telink-tlsr9528a_retention-contact-sensor/zephyr/zephyr.elf \
112115
/tmp/bloat_reports/
113116
114117
- name: clean out build output
@@ -148,13 +151,13 @@ jobs:
148151
- name: clean out build output
149152
run: rm -rf ./out
150153

151-
- name: Build example Telink (B92) Lock App with DFU
154+
- name: Build example Telink (B92 retention) Lock App with DFU
152155
run: |
153156
./scripts/run_in_build_env.sh \
154-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-lock-dfu' build"
157+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-lock-dfu' build"
155158
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
156-
telink tlsr9528a lock-app-dfu \
157-
out/telink-tlsr9528a-lock-dfu/zephyr/zephyr.elf \
159+
telink tlsr9528a_retention lock-app-dfu \
160+
out/telink-tlsr9528a_retention-lock-dfu/zephyr/zephyr.elf \
158161
/tmp/bloat_reports/
159162
160163
- name: clean out build output
@@ -220,25 +223,25 @@ jobs:
220223
- name: clean out build output
221224
run: rm -rf ./out
222225

223-
- name: Build example Telink (B92) Smoke CO Alarm App
226+
- name: Build example Telink (B92 retention) Smoke CO Alarm App
224227
run: |
225228
./scripts/run_in_build_env.sh \
226-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-smoke-co-alarm' build"
229+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-smoke-co-alarm' build"
227230
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
228-
telink tlsr9528a smoke_co_alarm-app \
229-
out/telink-tlsr9528a-smoke-co-alarm/zephyr/zephyr.elf \
231+
telink tlsr9528a_retention smoke_co_alarm-app \
232+
out/telink-tlsr9528a_retention-smoke-co-alarm/zephyr/zephyr.elf \
230233
/tmp/bloat_reports/
231234
232235
- name: clean out build output
233236
run: rm -rf ./out
234237

235-
- name: Build example Telink (B92) Temperature Measurement App
238+
- name: Build example Telink (B92 retention) Temperature Measurement App
236239
run: |
237240
./scripts/run_in_build_env.sh \
238-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-temperature-measurement' build"
241+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-temperature-measurement' build"
239242
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
240-
telink tlsr9528a temperature-measurement-app \
241-
out/telink-tlsr9528a-temperature-measurement/zephyr/zephyr.elf \
243+
telink tlsr9528a_retention temperature-measurement-app \
244+
out/telink-tlsr9528a_retention-temperature-measurement/zephyr/zephyr.elf \
242245
/tmp/bloat_reports/
243246
244247
- name: clean out build output

.github/workflows/examples-tizen.yaml

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

3636
container:
37-
image: ghcr.io/project-chip/chip-build-tizen:24
37+
image: ghcr.io/project-chip/chip-build-tizen:25
3838
options: --user root
3939
volumes:
4040
- "/tmp/bloat_reports:/tmp/bloat_reports"

0 commit comments

Comments
 (0)