Skip to content

Commit 3158c59

Browse files
[Telink] Enable all examples and update Zephyr
1 parent d96f66a commit 3158c59

File tree

3 files changed

+51
-56
lines changed

3 files changed

+51
-56
lines changed

.github/workflows/chef.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
platform: telink
134134
- name: Update Zephyr to specific revision (for developers purpose)
135135
shell: bash
136-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ff9e4298eed995de8a73c7bc1dad4e9031906b6e"
136+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e40edc8c253550af22eb5e87648bb4cd045aa317"
137137
- name: CI Examples Telink
138138
shell: bash
139139
run: |

.github/workflows/examples-telink.yaml

Lines changed: 49 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
gh-context: ${{ toJson(github) }}
5959

6060
- name: Update Zephyr version 4.1.0 (develop) to specific revision (for developers purpose)
61-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ff9e4298eed995de8a73c7bc1dad4e9031906b6e"
61+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e40edc8c253550af22eb5e87648bb4cd045aa317"
6262

6363
- name: Build example Telink (B92 retention) Air Quality Sensor App
6464
# Run test for master and s07641069 PRs
@@ -74,20 +74,19 @@ jobs:
7474
- name: clean out build output
7575
run: rm -rf ./out
7676

77-
# Disabled due to RAM overflow
78-
#- name: Build example Telink (W91) All Clusters App
77+
- name: Build example Telink (W91) All Clusters App
7978
# Run test for master and s07641069 PRs
80-
# if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
81-
# run: |
82-
# ./scripts/run_in_build_env.sh \
83-
# "./scripts/build/build_examples.py --target 'telink-tlsr9118bdk40d-all-clusters' build"
84-
# .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
85-
# telink tlsr9118bdk40d all-clusters-app \
86-
# out/telink-tlsr9118bdk40d-all-clusters/zephyr/zephyr.elf \
87-
# /tmp/bloat_reports/
88-
89-
#- name: clean out build output
90-
# run: rm -rf ./out
79+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
80+
run: |
81+
./scripts/run_in_build_env.sh \
82+
"./scripts/build/build_examples.py --target 'telink-tlsr9118bdk40d-all-clusters' build"
83+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
84+
telink tlsr9118bdk40d all-clusters-app \
85+
out/telink-tlsr9118bdk40d-all-clusters/zephyr/zephyr.elf \
86+
/tmp/bloat_reports/
87+
88+
- name: clean out build output
89+
run: rm -rf ./out
9190

9291
- name: Build example Telink (B92) All Clusters Minimal App
9392
# Run test for master and s07641069 PRs
@@ -167,40 +166,37 @@ jobs:
167166
- name: clean out build output (keep tools)
168167
run: rm -rf ./out/telink*
169168

170-
# Disable due to boot_partition overflowing
171-
#- name: Build example Telink (tl321x) Lighting App with OTA (LZMA), Factory Data
169+
- name: Build example Telink (tl321x) Lighting App with OTA (LZMA), Factory Data
172170
# Run test for master and all PRs
173-
# run: |
174-
# ./scripts/run_in_build_env.sh \
175-
# "./scripts/build/build_examples.py --target 'telink-tl3218x-light-ota-compress-lzma-factory-data' build"
176-
# .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
177-
# telink tl3218x light-app-ota-compress-lzma-factory-data \
178-
# out/telink-tl3218x-light-ota-compress-lzma-factory-data/zephyr/zephyr.elf \
179-
# /tmp/bloat_reports/
180-
181-
#- name: clean out build output (keep tools)
182-
# run: rm -rf ./out/telink*
183-
184-
# Disabled due to error section `rodata' will not fit in region `ROM' (`ROM' overflowed by 39656 bytes)
185-
#- name: Build example Telink (tl721x) Lighting App with OTA, Shell, Factory Data
171+
run: |
172+
./scripts/run_in_build_env.sh \
173+
"./scripts/build/build_examples.py --target 'telink-tl3218x-light-ota-compress-lzma-factory-data' build"
174+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
175+
telink tl3218x light-app-ota-compress-lzma-factory-data \
176+
out/telink-tl3218x-light-ota-compress-lzma-factory-data/zephyr/zephyr.elf \
177+
/tmp/bloat_reports/
178+
179+
- name: clean out build output (keep tools)
180+
run: rm -rf ./out/telink*
181+
182+
- name: Build example Telink (tl721x) Lighting App with OTA, Shell, Factory Data
186183
# Run test for master and all PRs
187-
# run: |
188-
# ./scripts/run_in_build_env.sh \
189-
# "./scripts/build/build_examples.py --target 'telink-tl7218x-light-ota-shell-factory-data' build"
190-
# .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
191-
# telink tl7218x light-app-ota-shell-factory-data \
192-
# out/telink-tl7218x-light-ota-shell-factory-data/zephyr/zephyr.elf \
193-
# /tmp/bloat_reports/
194-
195-
#- name: clean out build output (keep tools)
196-
# run: rm -rf ./out/telink*
197-
198-
# Removed compress-lzma due to error boot_partition overflows
184+
run: |
185+
./scripts/run_in_build_env.sh \
186+
"./scripts/build/build_examples.py --target 'telink-tl7218x-light-ota-shell-factory-data' build"
187+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
188+
telink tl7218x light-app-ota-shell-factory-data \
189+
out/telink-tl7218x-light-ota-shell-factory-data/zephyr/zephyr.elf \
190+
/tmp/bloat_reports/
191+
192+
- name: clean out build output (keep tools)
193+
run: rm -rf ./out/telink*
194+
199195
- name: Build example Telink (tl721x retention) Light Switch App with OTA (LZMA), Factory Data
200196
# Run test for master and all PRs
201197
run: |
202198
./scripts/run_in_build_env.sh \
203-
"./scripts/build/build_examples.py --target 'telink-tl7218x_retention-light-switch-ota-factory-data' build"
199+
"./scripts/build/build_examples.py --target 'telink-tl7218x_retention-light-switch-ota-compress-lzma-factory-data' build"
204200
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
205201
telink tl7218x_retention light-switch-app-ota-factory-data \
206202
out/telink-tl7218x_retention-light-switch-ota-factory-data/zephyr/zephyr.elf \
@@ -209,19 +205,18 @@ jobs:
209205
- name: clean out build output (keep tools)
210206
run: rm -rf ./out/telink*
211207

212-
# Commented due to boot_partition overflows and ROM overflow without compress-lzma
213-
#- name: Build example Telink (B92) Light Switch App with OTA (LZMA), Shell, Factory Data
208+
- name: Build example Telink (B92) Light Switch App with OTA (LZMA), Shell, Factory Data
214209
# Run test for master and all PRs
215-
# run: |
216-
# ./scripts/run_in_build_env.sh \
217-
# "./scripts/build/build_examples.py --target 'telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data' build"
218-
# .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
219-
# telink tlsr9528a light-switch-app-ota-compress-lzma-shell-factory-data \
220-
# out/telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data/zephyr/zephyr.elf \
221-
# /tmp/bloat_reports/
222-
223-
#- name: clean out build output
224-
# run: rm -rf ./out
210+
run: |
211+
./scripts/run_in_build_env.sh \
212+
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data' build"
213+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
214+
telink tlsr9528a light-switch-app-ota-compress-lzma-shell-factory-data \
215+
out/telink-tlsr9528a-light-switch-ota-compress-lzma-shell-factory-data/zephyr/zephyr.elf \
216+
/tmp/bloat_reports/
217+
218+
- name: clean out build output
219+
run: rm -rf ./out
225220

226221
- name: Build example Telink (B92) Lock App with DFU
227222
# Run test for master and s07641069 PRs

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN set -x \
1818
&& : # last line
1919

2020
# Setup Zephyr version: 4.1.0; branch: develop
21-
ARG ZEPHYR_REVISION=eff83ae8b6e5bfdda87bcdb96760a938317e8c3c
21+
ARG ZEPHYR_REVISION=ed037d7de7c23eb14c908453d2d481cdf782796a
2222
WORKDIR /opt/telink/zephyrproject
2323
RUN set -x \
2424
&& python3 -m pip install --break-system-packages -U --no-cache-dir west \

0 commit comments

Comments
 (0)