Skip to content

Commit 754a208

Browse files
s07641069andy31415
andauthored
[Telink]: Added OTA and update every image to 0.5.98 (#22209)
* [Telink] Added OTA implementation and ota-requestor-app * [Telink] Update every image to 0.5.98 * [Telink] Added path to imgtool * [Telink] Fixed typo * [Telink] Fix for the Cirque workflow * [Telink] Fix for the Cirque workflow * [Telink] TC-LVL-2.1 fixed light max level value * [Telink] TC-DGGEN-2.2 Enable getting reboot reasons information * [Telink] TC-LCFG-2.1 Added DeviceInfoProvider * [Telink] TC-I-2.3 Added simple Identify functionality * [Telink] Restyled * [Telink] Updated OTA Readme * Switch to latest CI image: 0.5.99 instead of 0.5.98 * Remove cirque yaml safe directory set: that one is already done by checkout_submodules. Some other path needs updating * Add cirque safe directory for updated git version * Another attempt at safe directory add. Unclear if ownership actually works * More submodule safe directory workarounds * More changes: it looks like safe directory is needed for binary build as well * More changes: it looks like safe directory is needed for binary build as well * More safe submodules updated ... this is tedious * More safe submodules updated ... this is tedious * Mark safe directory as a wildcard to not need to mark every subdir * Fix quotes * More quotes fixes * Remove extra safe directory add Co-authored-by: Andrei Litvin <[email protected]>
1 parent f8499f4 commit 754a208

Some content is hidden

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

70 files changed

+1891
-73
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": {
1818
"dockerfile": "Dockerfile",
1919
"args": {
20-
"BUILD_VERSION": "0.5.89"
20+
"BUILD_VERSION": "0.5.99"
2121
}
2222
},
2323
"remoteUser": "vscode",

.github/workflows/bloat_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
container:
33-
image: connectedhomeip/chip-build:0.5.91
33+
image: connectedhomeip/chip-build:0.5.99
3434

3535
steps:
3636
- uses: Wandalen/[email protected]

.github/workflows/build.yaml

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

3434
container:
35-
image: connectedhomeip/chip-build:0.5.91
35+
image: connectedhomeip/chip-build:0.5.99
3636
volumes:
3737
- "/tmp/log_output:/tmp/test_logs"
3838
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -133,7 +133,7 @@ jobs:
133133
if: github.actor != 'restyled-io[bot]'
134134

135135
container:
136-
image: connectedhomeip/chip-build:0.5.91
136+
image: connectedhomeip/chip-build:0.5.99
137137
volumes:
138138
- "/tmp/log_output:/tmp/test_logs"
139139
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: connectedhomeip/chip-build:0.5.91
286+
image: connectedhomeip/chip-build:0.5.99
287287
volumes:
288288
- "/tmp/log_output:/tmp/test_logs"
289289
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0

.github/workflows/chef.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
if: github.actor != 'restyled-io[bot]'
3030

3131
container:
32-
image: connectedhomeip/chip-build:0.5.91
32+
image: connectedhomeip/chip-build:0.5.99
3333
options: --user root
3434

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

5959
container:
60-
image: connectedhomeip/chip-build-esp32:0.5.91
60+
image: connectedhomeip/chip-build-esp32:0.5.99
6161
options: --user root
6262

6363
steps:
@@ -85,7 +85,7 @@ jobs:
8585
if: github.actor != 'restyled-io[bot]'
8686

8787
container:
88-
image: connectedhomeip/chip-build-nrf-platform:0.5.91
88+
image: connectedhomeip/chip-build-nrf-platform:0.5.99
8989
options: --user root
9090

9191
steps:

.github/workflows/cirque.yaml

+18-12
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
timeout-minutes: 75
3030

3131
env:
32-
DOCKER_RUN_VERSION: 0.5.56
32+
DOCKER_RUN_VERSION: 0.5.99
3333
GITHUB_CACHE_PATH: /tmp/cirque-cache/
3434

3535
runs-on: ubuntu-latest
@@ -38,7 +38,7 @@ jobs:
3838
# need to run with privilege, which isn't supported by job.XXX.contaner
3939
# https://github.com/actions/container-action/issues/2
4040
# container:
41-
# image: connectedhomeip/chip-build-cirque:0.5.91
41+
# image: connectedhomeip/chip-build-cirque:0.5.99
4242
# volumes:
4343
# - "/tmp:/tmp"
4444
# - "/dev/pts:/dev/pts"
@@ -81,7 +81,10 @@ jobs:
8181
--env GITHUB_ACTION_RUN=1 \
8282
--env GITHUB_CACHE_PATH=${{ env.GITHUB_CACHE_PATH }} \
8383
--volume /tmp:/tmp \
84-
-- scripts/build/gn_bootstrap.sh
84+
-- sh -c '\
85+
git config --global --add safe.directory "*" \
86+
&& scripts/build/gn_bootstrap.sh \
87+
'
8588
8689
- name: Cirque Bootstrap
8790
timeout-minutes: 15
@@ -106,15 +109,18 @@ jobs:
106109
--env GITHUB_ACTION_RUN=1 \
107110
--env GITHUB_CACHE_PATH=${{ env.GITHUB_CACHE_PATH }} \
108111
--volume /tmp:/tmp \
109-
-- ./gn_build.sh \
110-
chip_build_tests=false \
111-
chip_enable_wifi=false \
112-
chip_im_force_fabric_quota_check=true \
113-
enable_default_builds=false \
114-
enable_host_gcc_build=true \
115-
enable_standalone_chip_tool_build=true \
116-
enable_linux_all_clusters_app_build=true \
117-
enable_linux_lighting_app_build=true
112+
-- sh -c '\
113+
git config --global --add safe.directory "*" \
114+
&& ./gn_build.sh \
115+
chip_build_tests=false \
116+
chip_enable_wifi=false \
117+
chip_im_force_fabric_quota_check=true \
118+
enable_default_builds=false \
119+
enable_host_gcc_build=true \
120+
enable_standalone_chip_tool_build=true \
121+
enable_linux_all_clusters_app_build=true \
122+
enable_linux_lighting_app_build=true \
123+
'
118124
- name: Run Tests
119125
timeout-minutes: 25
120126
run: |

.github/workflows/doxygen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
runs-on: ubuntu-20.04
8484
container:
85-
image: connectedhomeip/chip-build-doxygen:0.5.91
85+
image: connectedhomeip/chip-build-doxygen:0.5.99
8686

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

.github/workflows/examples-ameba.yaml

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

3434
container:
35-
image: connectedhomeip/chip-build-ameba:0.5.91
35+
image: connectedhomeip/chip-build-ameba:0.5.99
3636
options: --user root
3737

3838
steps:

.github/workflows/examples-cc13x2x7_26x2x7.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: connectedhomeip/chip-build-ti:0.5.91
37+
image: connectedhomeip/chip-build-ti:0.5.99
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040
steps:

.github/workflows/examples-efr32.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: connectedhomeip/chip-build-efr32:0.5.91
38+
image: connectedhomeip/chip-build-efr32:0.5.99
3939
volumes:
4040
- "/tmp/bloat_reports:/tmp/bloat_reports"
4141
steps:

.github/workflows/examples-esp32.yaml

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

3333
container:
34-
image: connectedhomeip/chip-build-esp32:0.5.96
34+
image: connectedhomeip/chip-build-esp32:0.5.99
3535
volumes:
3636
- "/tmp/bloat_reports:/tmp/bloat_reports"
3737

@@ -117,7 +117,7 @@ jobs:
117117
if: github.actor != 'restyled-io[bot]'
118118

119119
container:
120-
image: connectedhomeip/chip-build-esp32:0.5.96
120+
image: connectedhomeip/chip-build-esp32:0.5.99
121121
volumes:
122122
- "/tmp/bloat_reports:/tmp/bloat_reports"
123123

.github/workflows/examples-infineon.yaml

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

3434
container:
35-
image: connectedhomeip/chip-build-infineon:0.5.91
35+
image: connectedhomeip/chip-build-infineon:0.5.99
3636
volumes:
3737
- "/tmp/bloat_reports:/tmp/bloat_reports"
3838
steps:

.github/workflows/examples-k32w.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: connectedhomeip/chip-build-k32w:0.5.89
37+
image: connectedhomeip/chip-build-k32w:0.5.99
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040
steps:

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

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

3333
container:
34-
image: connectedhomeip/chip-build-crosscompile:0.5.91
34+
image: connectedhomeip/chip-build-crosscompile:0.5.99
3535
volumes:
3636
- "/tmp/bloat_reports:/tmp/bloat_reports"
3737

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

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

3333
container:
34-
image: connectedhomeip/chip-build-imx:0.5.85
34+
image: connectedhomeip/chip-build-imx:0.5.99
3535

3636
steps:
3737
- uses: Wandalen/[email protected]

.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: connectedhomeip/chip-build:0.5.91
37+
image: connectedhomeip/chip-build:0.5.99
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
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: connectedhomeip/chip-build-mbed-os:0.5.91
40+
image: connectedhomeip/chip-build-mbed-os:0.5.99
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-mw320.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: connectedhomeip/chip-build:0.5.91
37+
image: connectedhomeip/chip-build:0.5.99
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040
steps:

.github/workflows/examples-nrfconnect.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: connectedhomeip/chip-build-nrf-platform:0.5.91
37+
image: connectedhomeip/chip-build-nrf-platform:0.5.99
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040

.github/workflows/examples-qpg.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: connectedhomeip/chip-build:0.5.91
37+
image: connectedhomeip/chip-build:0.5.99
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040
steps:

.github/workflows/examples-telink.yaml

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

3434
container:
35-
image: connectedhomeip/chip-build-telink:0.5.91
35+
image: connectedhomeip/chip-build-telink:0.5.99
3636
volumes:
3737
- "/tmp/bloat_reports:/tmp/bloat_reports"
3838

@@ -64,6 +64,11 @@ jobs:
6464
./scripts/run_in_build_env.sh \
6565
"./scripts/build/build_examples.py --no-log-timestamps --target 'telink-tlsr9518adk80d-light-switch' build"
6666
67+
- name: Build example Telink OTA Requestor App
68+
run: |
69+
./scripts/run_in_build_env.sh \
70+
"./scripts/build/build_examples.py --no-log-timestamps --target 'telink-tlsr9518adk80d-ota-requestor' build"
71+
6772
- name: Get Lighting size stats
6873
run: |
6974
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -78,6 +83,13 @@ jobs:
7883
out/telink-tlsr9518adk80d-light-switch/zephyr/zephyr.elf \
7984
/tmp/bloat_reports/
8085
86+
- name: Get OTA Requestor size stats
87+
run: |
88+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
89+
telink tlsr9518adk80d ota-requestor-app \
90+
out/telink-tlsr9518adk80d-ota-requestor/zephyr/zephyr.elf \
91+
/tmp/bloat_reports/
92+
8193
- name: Uploading Size Reports
8294
uses: actions/upload-artifact@v2
8395
if: ${{ !env.ACT }}

.github/workflows/examples-tizen.yaml

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

3434
container:
35-
image: connectedhomeip/chip-build-tizen:0.5.91
35+
image: connectedhomeip/chip-build-tizen:0.5.99
3636
options: --user root
3737
volumes:
3838
- "/tmp/bloat_reports:/tmp/bloat_reports"

.github/workflows/full-android.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: connectedhomeip/chip-build-android:0.5.91
37+
image: connectedhomeip/chip-build-android:0.5.99
3838
volumes:
3939
- "/tmp/log_output:/tmp/test_logs"
4040

.github/workflows/fuzzing-build.yaml

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

3333
container:
34-
image: connectedhomeip/chip-build:0.5.91
34+
image: connectedhomeip/chip-build:0.5.99
3535
volumes:
3636
- "/tmp/log_output:/tmp/test_logs"
3737

.github/workflows/qemu.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: connectedhomeip/chip-build-esp32-qemu:0.5.91
37+
image: connectedhomeip/chip-build-esp32-qemu:0.5.99
3838
volumes:
3939
- "/tmp/log_output:/tmp/test_logs"
4040

.github/workflows/release_artifacts.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030

3131
container:
32-
image: connectedhomeip/chip-build-esp32:0.5.91
32+
image: connectedhomeip/chip-build-esp32:0.5.99
3333

3434
steps:
3535
- uses: Wandalen/[email protected]
@@ -75,7 +75,7 @@ jobs:
7575
runs-on: ubuntu-latest
7676

7777
container:
78-
image: connectedhomeip/chip-build-efr32:0.5.91
78+
image: connectedhomeip/chip-build-efr32:0.5.99
7979
steps:
8080
- uses: Wandalen/[email protected]
8181
name: Checkout

.github/workflows/smoketest-android.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: connectedhomeip/chip-build-android:0.5.91
37+
image: connectedhomeip/chip-build-android:0.5.99
3838
volumes:
3939
- "/tmp/log_output:/tmp/test_logs"
4040

.github/workflows/tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
container:
47-
image: connectedhomeip/chip-build:0.5.91
47+
image: connectedhomeip/chip-build:0.5.99
4848
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
4949
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
5050

@@ -241,7 +241,7 @@ jobs:
241241
runs-on: ubuntu-latest
242242

243243
container:
244-
image: connectedhomeip/chip-build:0.5.91
244+
image: connectedhomeip/chip-build:0.5.99
245245
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
246246
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
247247

.github/workflows/unit_integration_test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838

3939
container:
40-
image: connectedhomeip/chip-build:0.5.91
40+
image: connectedhomeip/chip-build:0.5.99
4141
volumes:
4242
- "/tmp/log_output:/tmp/test_logs"
4343
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0 net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"

.github/workflows/zap_regeneration.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
runs-on: ubuntu-20.04
3030
container:
31-
image: connectedhomeip/chip-build-zap:0.5.91
31+
image: connectedhomeip/chip-build-zap:0.5.99
3232
defaults:
3333
run:
3434
shell: sh

0 commit comments

Comments
 (0)