Skip to content

Commit 90508ee

Browse files
committed
Merge branch 'master' into nullable_is_std_optional
2 parents 9bb289e + 7bd2409 commit 90508ee

File tree

168 files changed

+5865
-3367
lines changed

Some content is hidden

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

168 files changed

+5865
-3367
lines changed

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ SpacesInSquareBrackets: false
106106
Standard: Cpp11
107107
TabWidth: 8
108108
UseTab: Never
109+
InsertNewlineAtEOF: true
109110
---
110111
Language: ObjC
111112
BasedOnStyle: WebKit

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: Test TV Casting Example
1717
on:
1818
push:
1919
branches-ignore:
20-
- 'dependabot/**'
20+
- "dependabot/**"
2121
pull_request:
2222
merge_group:
2323

@@ -63,6 +63,12 @@ jobs:
6363
./scripts/run_in_build_env.sh \
6464
"scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ out/tv-casting-app"
6565
66+
- name: Test casting from Linux tv-casting-app to Linux tv-app
67+
run: |
68+
./scripts/run_in_build_env.sh \
69+
"python3 ./scripts/tests/run_tv_casting_test.py"
70+
timeout-minutes: 1
71+
6672
- name: Uploading Size Reports
6773
uses: ./.github/actions/upload-size-reports
6874
if: ${{ !env.ACT }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# Build System
1212
out/
13+
/examples/virtual-device-app/android/App/buildSrc/build/
1314
/src/test_driver/nrfconnect/build/
1415
/src/darwin/Framework/build/
1516

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
add_library(gnu17 INTERFACE)
22
target_compile_options(gnu17
33
INTERFACE
4-
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
5-
-D_SYS__PTHREADTYPES_H_)
4+
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>)
65
target_link_libraries(app PRIVATE gnu17)

config/nrfconnect/chip-module/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ else()
168168
endif()
169169

170170
if (CONFIG_CHIP_CRYPTO_PSA)
171-
matter_add_gn_arg_string("chip_crypto" "psa")
171+
matter_add_gn_arg_string("chip_crypto" "psa")
172+
matter_add_gn_arg_bool ("chip_crypto_psa_spake2p" CONFIG_PSA_WANT_ALG_SPAKE2P_MATTER)
172173
endif()
173174

174175
if (BOARD STREQUAL "native_posix")

config/nrfconnect/chip-module/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,9 @@ config CHIP_FACTORY_RESET_ON_KEY_MIGRATION_FAILURE
302302
Perform factory reset of the device if the operational key for Fabric has not been migrated
303303
properly to PSA ITS storage.
304304

305+
config CHIP_PERSISTENT_SUBSCRIPTIONS
306+
default n
307+
# selecting experimental for this feature since there is an issue with multiple controllers.
308+
select EXPERIMENTAL
309+
305310
endif # CHIP

config/nrfconnect/chip-module/Kconfig.defaults

+9-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ if CHIP
2424
# System configuration
2525
# ==============================================================================
2626

27+
choice LIBC_IMPLEMENTATION
28+
default NEWLIB_LIBC
29+
endchoice
30+
2731
config ASSERT
2832
default y
2933

@@ -298,6 +302,7 @@ config MBEDTLS_HEAP_SIZE
298302

299303
config CHIP_CRYPTO_PSA
300304
default y if !CHIP_WIFI
305+
imply PSA_WANT_ALG_SPAKE2P_MATTER
301306

302307
if CHIP_CRYPTO_PSA
303308

@@ -317,13 +322,13 @@ if PSA_CRYPTO_DRIVER_CC3XX && PSA_CRYPTO_DRIVER_OBERON
317322
config PSA_USE_CC3XX_HASH_DRIVER
318323
default n
319324

320-
endif
325+
endif # PSA_CRYPTO_DRIVER_CC3XX && PSA_CRYPTO_DRIVER_OBERON
321326

322327
# Spake2+ support
323328
config MBEDTLS_MD_C
324329
default y
325330

326-
endif
331+
endif # CHIP_CRYPTO_PSA
327332

328333
if !CHIP_CRYPTO_PSA
329334

@@ -366,7 +371,7 @@ config MBEDTLS_ECP_C
366371
config MBEDTLS_ECP_DP_SECP256R1_ENABLED
367372
default y
368373

369-
endif
374+
endif # !CHIP_CRYPTO_PSA
370375

371376
config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
372377
default n if CHIP_WIFI
@@ -486,4 +491,4 @@ config OPENTHREAD_SHELL
486491

487492
endif # SHELL
488493

489-
endif
494+
endif # CHIP

config/nrfconnect/chip-module/Kconfig.features

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ config CHIP_WIFI
4242

4343
config CHIP_QSPI_NOR
4444
bool "Enable QSPI NOR feature set"
45+
imply NORDIC_QSPI_NOR
4546
help
4647
Enables QSPI NOR flash with a set of options for configuring pages and
4748
buffer sizes.
4849

4950
if CHIP_QSPI_NOR
5051

51-
config NORDIC_QSPI_NOR
52-
default y
53-
5452
config NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE
5553
default 16
5654

config/nrfconnect/chip-module/Kconfig.mcuboot.defaults

+1-16
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,7 @@
1919
config MAIN_STACK_SIZE
2020
default 10240
2121

22-
config BOOT_SWAP_SAVE_ENCTLV
23-
default n
24-
25-
config BOOT_ENCRYPT_RSA
26-
default n
27-
28-
config BOOT_ENCRYPT_EC256
29-
default n
30-
31-
config BOOT_ENCRYPT_X25519
22+
config BOOT_ENCRYPT_IMAGE
3223
default n
3324

3425
config BOOT_BOOTSTRAP
@@ -53,9 +44,6 @@ if BOARD_NRF7002DK_NRF5340_CPUAPP
5344
config SPI
5445
default y
5546

56-
config SPI_NOR
57-
default y
58-
5947
choice SPI_NOR_SFDP
6048
default SPI_NOR_SFDP_DEVICETREE
6149
endchoice
@@ -74,9 +62,6 @@ endif
7462
# All boards beside nRF7002DK use QSPI NOR external flash
7563
if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840
7664

77-
config NORDIC_QSPI_NOR
78-
default y
79-
8065
config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE
8166
default 4096
8267

config/zephyr/Kconfig

+5-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ config CHIP_PROJECT_CONFIG
309309

310310
config CHIP_ENABLE_DNSSD_SRP
311311
bool "OpenThread Service Registration Protocol"
312-
default y if NET_L2_OPENTHREAD
312+
default y
313+
depends on NET_L2_OPENTHREAD
313314
imply OPENTHREAD_ECDSA
314315
imply OPENTHREAD_SRP_CLIENT
315316
help
@@ -318,7 +319,8 @@ config CHIP_ENABLE_DNSSD_SRP
318319

319320
config CHIP_ENABLE_DNS_CLIENT
320321
bool "OpenThread DNS client"
321-
default y if NET_L2_OPENTHREAD
322+
default y
323+
depends on NET_L2_OPENTHREAD
322324
imply OPENTHREAD_DNS_CLIENT
323325
help
324326
Enables using the OpenThread DNS client for the Matter service discovery.
@@ -413,6 +415,7 @@ config CHIP_THREAD_SSED
413415

414416
config CHIP_OPENTHREAD_CONFIG
415417
string "Custom OpenThread configuration file"
418+
depends on NET_L2_OPENTHREAD
416419
help
417420
Provides a path to an OpenThread configuration file. The path can be
418421
either absolute or relative to the application directory. When this option

examples/chef/common/clusters/door-lock/chef-lock-manager.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
#include <iostream>
1918
#include <lib/support/logging/CHIPLogging.h>
2019

2120
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
2221
#include "chef-lock-manager.h"
2322

23+
#include <algorithm>
24+
#include <iostream>
25+
2426
using chip::to_underlying;
2527

2628
LockManager LockManager::instance;

examples/chef/common/clusters/door-lock/chef-lock-manager.h

+2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
#include "chef-lock-endpoint.h"
2222
#include <app/clusters/door-lock-server/door-lock-server.h>
23+
2324
#include <cstdint>
25+
#include <vector>
2426

2527
class LockManager
2628
{

examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <app/clusters/target-navigator-server/target-navigator-server.h>
2121

22+
#include <list>
2223
#include <string>
2324

2425
class TargetNavigatorManager : public chip::app::Clusters::TargetNavigator::Delegate

examples/chef/esp32/main/QRCodeScreen.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <setup_payload/QRCodeSetupPayloadGenerator.h>
4444

4545
#include <string>
46+
#include <vector>
4647

4748
// TODO need sensible library tag when put in library
4849
extern const char TAG[];

examples/chip-tool/commands/common/RemoteDataModelLogger.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -245,24 +245,24 @@ CHIP_ERROR LogDiscoveredNodeData(const chip::Dnssd::CommissionNodeData & nodeDat
245245
value["port"] = resolutionData.port;
246246
value["numIPs"] = static_cast<uint8_t>(resolutionData.numIPs);
247247

248-
if (resolutionData.mrpRetryIntervalIdle.HasValue())
248+
if (resolutionData.mrpRetryIntervalIdle.has_value())
249249
{
250-
value["mrpRetryIntervalIdle"] = resolutionData.mrpRetryIntervalIdle.Value().count();
250+
value["mrpRetryIntervalIdle"] = resolutionData.mrpRetryIntervalIdle->count();
251251
}
252252

253-
if (resolutionData.mrpRetryIntervalActive.HasValue())
253+
if (resolutionData.mrpRetryIntervalActive.has_value())
254254
{
255-
value["mrpRetryIntervalActive"] = resolutionData.mrpRetryIntervalActive.Value().count();
255+
value["mrpRetryIntervalActive"] = resolutionData.mrpRetryIntervalActive->count();
256256
}
257257

258-
if (resolutionData.mrpRetryActiveThreshold.HasValue())
258+
if (resolutionData.mrpRetryActiveThreshold.has_value())
259259
{
260-
value["mrpRetryActiveThreshold"] = resolutionData.mrpRetryActiveThreshold.Value().count();
260+
value["mrpRetryActiveThreshold"] = resolutionData.mrpRetryActiveThreshold->count();
261261
}
262262

263-
if (resolutionData.isICDOperatingAsLIT.HasValue())
263+
if (resolutionData.isICDOperatingAsLIT.has_value())
264264
{
265-
value["isICDOperatingAsLIT"] = resolutionData.isICDOperatingAsLIT.Value();
265+
value["isICDOperatingAsLIT"] = *(resolutionData.isICDOperatingAsLIT);
266266
}
267267

268268
Json::Value rootValue;

examples/contact-sensor-app/nxp/k32w/k32w0/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,10 @@ This is the list of all supported partitions:
559559
00 -----------------> 0x00 Bootable flag
560560
00 -----------------> 0x00 Image type (0x00 = SSBL)
561561
562-
004000000f020101: Application partition
562+
00400000c9040101: Application partition
563563
564564
00400000 -----------> 0x00004000 Start Address
565-
0f02 ---------------> 0x020f Number of 512-bytes pages
565+
c904 ---------------> 0x04c9 Number of 512-bytes pages
566566
01 -----------------> 0x01 Bootable flag
567567
01 -----------------> 0x01 Image type (0x01 = Application)
568568

examples/lighting-app/nxp/k32w/k32w0/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ This is the list of all supported partitions:
534534
00 -----------------> 0x00 Bootable flag
535535
00 -----------------> 0x00 Image type (0x00 = SSBL)
536536
537-
004000000f020101: Application partition
537+
00400000c9040101: Application partition
538538
539539
00400000 -----------> 0x00004000 Start Address
540-
0f02 ---------------> 0x020f Number of 512-bytes pages
540+
c904 ---------------> 0x04c9 Number of 512-bytes pages
541541
01 -----------------> 0x01 Bootable flag
542542
01 -----------------> 0x01 Image type (0x01 = Application)
543543

examples/lit-icd-app/silabs/src/AppTask.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,15 @@ void AppTask::ButtonEventHandler(uint8_t button, uint8_t btnAction)
170170
// DO NOT COPY for product logic. LIT ICD app is a test app with very simple application logic to enable testing.
171171
void AppTask::OnEnterActiveMode()
172172
{
173+
#ifdef DISPLAY_ENABLED
173174
sAppTask.GetLCD().WriteDemoUI(true);
175+
#endif
174176
}
175177

176178
// DO NOT COPY for product logic. LIT ICD app is a test app with very simple application logic to enable testing.
177179
void AppTask::OnEnterIdleMode()
178180
{
181+
#ifdef DISPLAY_ENABLED
179182
sAppTask.GetLCD().WriteDemoUI(false);
183+
#endif
180184
}

examples/platform/esp32/common/CommonDeviceCallbacks.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ void CommonDeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, i
4141
{
4242
switch (event->Type)
4343
{
44+
case DeviceEventType::kBLEDeinitialized:
45+
ESP_LOGI(TAG, "BLE is deinitialized");
46+
break;
47+
4448
case DeviceEventType::kInternetConnectivityChange:
4549
OnInternetConnectivityChange(event);
4650
break;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
48 : [QEMU] Add QEMU Dockerfile for ble-wifi testing on Linux
1+
49 : [Silabs] Update SDKs to new versions

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN set -x \
1313
&& : # last line
1414

1515

16-
# Clone Gecko SDK 4.4.1 (911f6cd)
17-
RUN wget https://github.com/SiliconLabs/gecko_sdk/releases/download/v4.4.1/gecko-sdk.zip -O /tmp/gecko_sdk.zip \
16+
# Clone Gecko SDK 4.4.2 (e359ba4)
17+
RUN wget https://github.com/SiliconLabs/gecko_sdk/releases/download/v4.4.2/gecko-sdk.zip -O /tmp/gecko_sdk.zip \
1818
&& unzip /tmp/gecko_sdk.zip -d /tmp/gecko_sdk \
1919
&& rm -rf /tmp/gecko_sdk.zip \
2020
# Deleting files that are not needed to save space
@@ -30,8 +30,8 @@ RUN git clone --depth=1 --single-branch --branch=2.8.2 https://github.com/Silico
3030
rm -rf .git \
3131
&& : # last line
3232

33-
# Clone WiSeConnect SDK 3.1.3 (00dd57a)
34-
RUN git clone --depth=1 --single-branch --branch=v3.1.3 https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \
33+
# Clone WiSeConnect SDK 3.1.3-matter-hotfix.4 (aa514d4)
34+
RUN git clone --depth=1 --single-branch --branch=v3.1.3-matter-hotfix.4 https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \
3535
cd /tmp/wifi_sdk && \
3636
rm -rf .git \
3737
&& : # last line

scripts/build/build/target.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def Create(self, name: str, runner, repository_path: str, output_prefix: str,
406406
builder.target = self
407407
builder.identifier = name
408408
builder.output_dir = os.path.join(output_prefix, name)
409-
builder.chip_dir = repository_path
409+
builder.chip_dir = os.path.abspath(repository_path)
410410
builder.options = builder_options
411411

412412
return builder

scripts/build/build/targets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def BuildHostTarget():
177177
target.AppendModifier("ossfuzz", fuzzing_type=HostFuzzingType.OSS_FUZZ).OnlyIfRe(
178178
"-clang").ExceptIfRe('-libfuzzer')
179179
target.AppendModifier('coverage', use_coverage=True).OnlyIfRe(
180-
'-(chip-tool|all-clusters)')
180+
'-(chip-tool|all-clusters|tests)')
181181
target.AppendModifier('dmalloc', use_dmalloc=True)
182182
target.AppendModifier('clang', use_clang=True)
183183
target.AppendModifier('test', extra_tests=True)

scripts/build/builders/host.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -512,19 +512,21 @@ def generate(self):
512512
def PreBuildCommand(self):
513513
if self.app == HostApp.TESTS and self.use_coverage:
514514
self._Execute(['ninja', '-C', self.output_dir, 'default'], title="Build-only")
515-
self._Execute(['find', os.path.join(self.output_dir, 'obj/src/'), '-depth',
516-
'-name', 'tests', '-exec', 'rm -rf {} \\;'], title="Cleanup unit tests")
517515
self._Execute(['lcov', '--initial', '--capture', '--directory', os.path.join(self.output_dir, 'obj'),
516+
'--exclude', os.path.join(self.chip_dir, '**/tests/*'),
518517
'--exclude', os.path.join(self.chip_dir, 'zzz_generated/*'),
519518
'--exclude', os.path.join(self.chip_dir, 'third_party/*'),
519+
'--exclude', os.path.join(self.chip_dir, 'out/*'),
520520
'--exclude', '/usr/include/*',
521521
'--output-file', os.path.join(self.coverage_dir, 'lcov_base.info')], title="Initial coverage baseline")
522522

523523
def PostBuildCommand(self):
524524
if self.app == HostApp.TESTS and self.use_coverage:
525525
self._Execute(['lcov', '--capture', '--directory', os.path.join(self.output_dir, 'obj'),
526+
'--exclude', os.path.join(self.chip_dir, '**/tests/*'),
526527
'--exclude', os.path.join(self.chip_dir, 'zzz_generated/*'),
527528
'--exclude', os.path.join(self.chip_dir, 'third_party/*'),
529+
'--exclude', os.path.join(self.chip_dir, 'out/*'),
528530
'--exclude', '/usr/include/*',
529531
'--output-file', os.path.join(self.coverage_dir, 'lcov_test.info')], title="Update coverage")
530532
self._Execute(['lcov', '--add-tracefile', os.path.join(self.coverage_dir, 'lcov_base.info'),

0 commit comments

Comments
 (0)