Skip to content

Commit 90e059a

Browse files
authored
Merge branch 'master' into update_sysconfig_to_v_1_18_1
2 parents 98c0f54 + ff2ab2b commit 90e059a

File tree

151 files changed

+2845
-1339
lines changed

Some content is hidden

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

151 files changed

+2845
-1339
lines changed

.github/workflows/examples-efr32.yaml

+24-19
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
./scripts/run_in_build_env.sh \
6666
"./scripts/build/build_examples.py \
6767
--enable-flashbundle \
68-
--target efr32-brd4187c-thermostat-openthread_mtd \
69-
--target efr32-brd4187c-switch-shell-use_ot_coap_lib \
68+
--target efr32-brd4187c-thermostat-openthread-mtd \
69+
--target efr32-brd4187c-switch-shell-use-ot-coap-lib \
7070
--target efr32-brd4187c-unit-test \
7171
build \
7272
--copy-artifacts-to out/artifacts \
@@ -78,9 +78,9 @@ jobs:
7878
./scripts/run_in_build_env.sh \
7979
"./scripts/build/build_examples.py \
8080
--enable-flashbundle \
81-
--target efr32-brd4187c-light-use_ot_lib \
81+
--target efr32-brd4187c-light-use-ot-lib \
8282
--target efr32-brd4187c-pump \
83-
--target efr32-brd4187c-lock-shell-enable_heap_monitoring \
83+
--target efr32-brd4187c-lock-shell-heap-monitoring \
8484
build \
8585
--copy-artifacts-to out/artifacts \
8686
"
@@ -91,7 +91,7 @@ jobs:
9191
./scripts/run_in_build_env.sh \
9292
"./scripts/build/build_examples.py \
9393
--enable-flashbundle \
94-
--target efr32-brd4187c-window-covering-additional_data_advertising \
94+
--target efr32-brd4187c-window-covering-additional-data-advertising \
9595
--target efr32-brd4187c-light-rpc \
9696
build \
9797
--copy-artifacts-to out/artifacts \
@@ -104,34 +104,39 @@ jobs:
104104
/tmp/bloat_reports/
105105
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
106106
efr32 BRD4187C window-app \
107-
out/efr32-brd4187c-window-covering-additional_data_advertising/matter-silabs-window-example.out \
107+
out/efr32-brd4187c-window-covering-additional-data-advertising/matter-silabs-window-example.out \
108108
/tmp/bloat_reports/
109109
- name: Clean out build output
110110
run: rm -rf ./out
111-
- name: Build BRD4338A variants
111+
- name: Build BRD4338A WiFi Soc variants
112112
run: |
113113
./scripts/run_in_build_env.sh \
114114
"./scripts/build/build_examples.py \
115115
--enable-flashbundle \
116-
--target efr32-brd4338a-light-wifi-917_soc-skip_rps_generation \
117-
--target efr32-brd4338a-lock-wifi-917_soc-skip_rps_generation \
116+
--target efr32-brd4338a-light-skip-rps-generation \
117+
--target efr32-brd4338a-lock-skip-rps-generation \
118118
build \
119119
--copy-artifacts-to out/artifacts \
120120
"
121-
- name: Clean out build output
122-
run: rm -rf ./out
123-
- name: Build example EFR32+WF200 WiFi Lock app for BRD4161A
121+
- name: Prepare bloat report for brd4338a lock app
124122
run: |
125-
scripts/examples/gn_silabs_example.sh examples/lock-app/silabs out/lock_app_wifi_wf200 BRD4161A is_debug=false chip_logging=false --wifi wf200 --docker
126-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+wf200 lock-app \
127-
out/lock_app_wifi_wf200/BRD4161A/matter-silabs-lock-example.out /tmp/bloat_reports/
123+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
124+
efr32 BRD4338a lock-app \
125+
out/efr32-brd4338a-lock-skip-rps-generation/matter-silabs-lock-example.out \
126+
/tmp/bloat_reports/
128127
- name: Clean out build output
129128
run: rm -rf ./out
130-
- name: Build example EFR32+RS9116 WiFi Lighting app for BRD4161A
129+
- name: Build EFR32 with WiFi NCP
131130
run: |
132-
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs out/lighting_app_wifi_rs9116 BRD4161A --wifi rs9116 --docker
133-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rs9116 lighting-app \
134-
out/lighting_app_wifi_rs9116/BRD4161A/matter-silabs-lighting-example.out /tmp/bloat_reports/
131+
./scripts/run_in_build_env.sh \
132+
"./scripts/build/build_examples.py \
133+
--enable-flashbundle \
134+
--target efr32-brd4187c-lock-wifi-siwx917 \
135+
--target efr32-brd4187c-light-wifi-rs9116 \
136+
--target efr32-brd4187c-lock-wifi-wf200 \
137+
build \
138+
--copy-artifacts-to out/artifacts \
139+
"
135140
- name: Clean out build output
136141
run: rm -rf ./out
137142
- name: Uploading Size Reports
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Copyright (c) 2024 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Test TV Casting Example
16+
17+
on:
18+
push:
19+
pull_request:
20+
merge_group:
21+
22+
concurrency:
23+
group:
24+
${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
25+
'pull_request' && github.event.number) || (github.event_name ==
26+
'workflow_dispatch' && github.run_number) || github.sha }}
27+
cancel-in-progress: true
28+
29+
jobs:
30+
Linux-test:
31+
name: Linux Test
32+
33+
runs-on: ubuntu-latest
34+
if: github.actor != 'restyled-io[bot]'
35+
36+
container:
37+
image: ghcr.io/project-chip/chip-build:41
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
43+
- name: Checkout submodules & Bootstrap
44+
uses: ./.github/actions/checkout-submodules-and-bootstrap
45+
with:
46+
platform: linux
47+
48+
- name: Set Up Environment for Size Reports
49+
uses: ./.github/actions/setup-size-reports
50+
if: ${{ !env.ACT }}
51+
with:
52+
gh-context: ${{ toJson(github) }}
53+
54+
- name: Build Linux tv-app
55+
run: |
56+
./scripts/run_in_build_env.sh \
57+
"scripts/examples/gn_build_example.sh examples/tv-app/linux/ out/tv-app"
58+
59+
- name: Build Linux tv-casting-app
60+
run: |
61+
./scripts/run_in_build_env.sh \
62+
"scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ out/tv-casting-app"
63+
64+
- name: Uploading Size Reports
65+
uses: ./.github/actions/upload-size-reports
66+
if: ${{ !env.ACT }}
67+
with:
68+
platform-name: Linux

.github/workflows/examples-k32w.yaml .github/workflows/examples-nxp.yaml

+19-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Build example - K32W
15+
name: Build example - NXP
1616

1717
on:
1818
push:
@@ -58,33 +58,36 @@ jobs:
5858
run: |
5959
scripts/run_in_build_env.sh "\
6060
./scripts/build/build_examples.py \
61-
--target k32w-k32w0-light-crypto-platform-tokenizer \
62-
--target k32w-k32w0-contact-crypto-platform-tokenizer \
63-
--target k32w-k32w0-contact-crypto-platform-low-power-nologs \
64-
--target k32w-k32w1-light-crypto-platform-openthread-ftd \
65-
--target k32w-k32w1-contact-crypto-platform-low-power-nologs \
61+
--target nxp-k32w0-lighting \
62+
--target nxp-k32w0-lighting-factory \
63+
--target nxp-k32w0-lighting-rotating-id \
64+
--target nxp-k32w0-contact-sensor \
65+
--target nxp-k32w0-contact-sensor-low-power \
66+
--target nxp-k32w0-contact-sensor-low-power-factory \
67+
--target nxp-k32w1-lighting \
68+
--target nxp-k32w1-contact-sensor-low-power \
6669
build \
6770
--copy-artifacts-to out/artifacts \
6871
"
69-
- name: Get light size stats
72+
- name: Get lighting app size stats
7073
run: |
7174
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
72-
k32w k32w0+release light \
73-
out/artifacts/k32w-k32w0-light-crypto-platform-tokenizer/chip-k32w0x-light-example.elf \
75+
nxp k32w0+release light \
76+
out/artifacts/nxp-k32w0-lighting/chip-k32w0x-light-example.elf \
7477
/tmp/bloat_reports/
7578
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
76-
k32w k32w1+release light \
77-
out/artifacts/k32w-k32w1-light-crypto-platform-openthread-ftd/chip-k32w1-light-example.elf \
79+
nxp k32w1+release light \
80+
out/artifacts/nxp-k32w1-lighting/chip-k32w1-light-example.elf \
7881
/tmp/bloat_reports/
79-
- name: Get contact size stats
82+
- name: Get contact sensor size stats
8083
run: |
8184
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
82-
k32w k32w0+release contact \
83-
out/artifacts/k32w-k32w0-contact-crypto-platform-tokenizer/chip-k32w0x-contact-example.elf \
85+
nxp k32w0+release contact \
86+
out/artifacts/nxp-k32w0-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
8487
/tmp/bloat_reports/
8588
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
86-
k32w k32w1+release contact \
87-
out/artifacts/k32w-k32w1-contact-crypto-platform-low-power-nologs/chip-k32w1-contact-example.elf \
89+
nxp k32w1+release contact \
90+
out/artifacts/nxp-k32w1-contact-sensor-low-power/chip-k32w1-contact-example.elf \
8891
/tmp/bloat_reports/
8992
- name: Uploading Size Reports
9093
uses: ./.github/actions/upload-size-reports

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

-72
This file was deleted.

.github/workflows/full-android.yaml

+30-4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,30 @@ jobs:
7373
"./scripts/build/build_examples.py --target android-arm-chip-tool build"
7474
- name: Clean out build output
7575
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
76+
- name: Build Android arm-tv-casting-app
77+
run: |
78+
./scripts/run_in_build_env.sh \
79+
"./scripts/build/build_examples.py --target android-arm-tv-casting-app build"
80+
- name: Clean out build output
81+
run: rm -rf ./out examples/tv-casting-app/android/App/app/libs/jniLibs/* examples/tv-casting-app/android/App/app/libs/*.jar
82+
- name: Build Android arm-tv-server
83+
run: |
84+
./scripts/run_in_build_env.sh \
85+
"./scripts/build/build_examples.py --target android-arm-tv-server build"
86+
- name: Clean out build output
87+
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
88+
- name: Build Android arm64-tv-casting-app
89+
run: |
90+
./scripts/run_in_build_env.sh \
91+
"./scripts/build/build_examples.py --target android-arm64-tv-casting-app build"
92+
- name: Clean out build output
93+
run: rm -rf ./out examples/tv-casting-app/android/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
94+
- name: Build Android arm64-tv-server
95+
run: |
96+
./scripts/run_in_build_env.sh \
97+
"./scripts/build/build_examples.py --target android-arm64-tv-server build"
98+
- name: Clean out build output
99+
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
76100
- name: Build Android arm64-chip-tool
77101
run: |
78102
./scripts/run_in_build_env.sh \
@@ -83,7 +107,9 @@ jobs:
83107
"ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test"
84108
- name: Clean out build output
85109
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
86-
# - name: Build Android Studio build (arm64 only)
87-
# run: |
88-
# ./scripts/run_in_build_env.sh \
89-
# "./scripts/build/build_examples.py --target android-androidstudio-arm64-chip-tool build"
110+
- name: Build Android arm64-chip-test
111+
run: |
112+
./scripts/run_in_build_env.sh \
113+
"./scripts/build/build_examples.py --target android-arm64-chip-test build"
114+
- name: Clean out build output
115+
run: rm -rf ./out examples/android/CHIPTest/app/libs/jniLibs/* examples/android/CHIPTest/app/libs/*.jar

.github/workflows/lint.yml

+15
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,18 @@ jobs:
285285
if: always()
286286
run: |
287287
git grep -I -n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
288+
289+
# git grep exits with 0 if it finds a match, but we want
290+
# to fail (exit nonzero) on match.
291+
- name: Check for use of "using namespace" outside of a class/function in headers.
292+
if: always()
293+
run: |
294+
# Various platforms have `using namespace chip::Ble` in their BLEManager* headers; just exclude those for now.
295+
#
296+
# Exclude platform openiotsdk bits that do this in their persistent storage header.
297+
#
298+
# Also exclude examples (for now) and third_party, which have various instances of this.
299+
#
300+
# Ignore uses of `System::Clock::Literals`, because that's the only way to have things using _ms32 or whatnot
301+
# in a header file.
302+
git grep -I -n -e '^using namespace' --and --not -e 'System::Clock::Literals' -- './**/*.h' ':(exclude)src/platform/*/BLEManager*.h' ':(exclude)src/platform/openiotsdk/KVPsaPsStore.h' ':(exclude)./examples' ':(exclude)./third_party' && exit 1 || exit 0

.github/workflows/smoketest-android.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@ jobs:
6868
"ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test"
6969
- name: Clean out build output
7070
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
71+
- name: Build Android arm64-tv-casting-app
72+
run: |
73+
./scripts/run_in_build_env.sh \
74+
"./scripts/build/build_examples.py --target android-arm64-tv-casting-app build"
75+
- name: Clean out build output
76+
run: rm -rf ./out examples/tv-casting-app/android/App/app/libs/jniLibs/* examples/tv-casting-app/android/App/app/libs/*.jar
77+
- name: Build Android arm64-tv-server
78+
run: |
79+
./scripts/run_in_build_env.sh \
80+
"./scripts/build/build_examples.py --target android-arm64-tv-server build"
81+
- name: Clean out build output
82+
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar

config/nxp/lib/pw_rpc/BUILD.gn

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ static_library("pw_rpc") {
2424
"$dir_pw_rpc:server",
2525
"$dir_pw_rpc/nanopb:echo_service",
2626
"${chip_root}/examples/platform/nxp/pw_sys_io:pw_sys_io_nxp",
27-
"${dir_pigweed}/pw_hdlc:pw_rpc",
2827
dir_pw_assert,
2928
dir_pw_hdlc,
3029
dir_pw_log,

config/zephyr/chip-module/Kconfig.defaults

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ config LOG_DEFAULT_LEVEL
4040

4141
endif
4242

43+
# disable synchronous printk to avoid blocking IRQs which
44+
# may affect time sensitive components
4345
config PRINTK_SYNC
4446
bool
45-
default y
47+
default n
4648

4749
config ASSERT
4850
bool

0 commit comments

Comments
 (0)