Skip to content

Commit 3a41a90

Browse files
authored
Merge branch 'master' into bugfix/fix-arm64-build-failure-with-bluetooth-in-linux-platofrm
2 parents a003111 + dcb4444 commit 3a41a90

File tree

7,883 files changed

+888394
-445525
lines changed

Some content is hidden

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

7,883 files changed

+888394
-445525
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

.clang-tidy

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Checks: >
1212
readability-redundant-string-init,
1313
-bugprone-assignment-in-if-condition,
1414
-bugprone-branch-clone,
15+
-bugprone-casting-through-void, #TODO remove this after fixing issues in source code, issue 34008
1516
-bugprone-copy-constructor-init,
1617
-bugprone-easily-swappable-parameters,
1718
-bugprone-forward-declaration-namespace,
@@ -23,6 +24,7 @@ Checks: >
2324
-bugprone-multi-level-implicit-pointer-conversion,
2425
-bugprone-narrowing-conversions,
2526
-bugprone-not-null-terminated-result,
27+
-bugprone-pointer-arithmetic-on-polymorphic-object,
2628
-bugprone-reserved-identifier,
2729
-bugprone-signed-char-misuse,
2830
-bugprone-suspicious-include,
@@ -44,6 +46,7 @@ Checks: >
4446
-clang-analyzer-security.insecureAPI.rand,
4547
-clang-analyzer-security.insecureAPI.strcpy,
4648
-clang-analyzer-unix.Malloc,
47-
-clang-diagnostic-implicit-int-conversion
49+
-clang-diagnostic-implicit-int-conversion,
50+
-clang-diagnostic-missing-template-arg-list-after-template-kw
4851
WarningsAsErrors: '*'
4952
HeaderFilterRegex: '(src|examples|zzz_generated|credentials).*(?<!third_party.*repo)'

.devcontainer/Dockerfile

+34-17
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,24 @@ ARG USER_UID=1000
2424
ARG USER_GID=$USER_UID
2525
ENV LANG en_US.utf8
2626

27-
# these are installed for terminal/dev convenience. If more tooling for build is required, please
28-
# add them to chip-build (in integrations/docker/images/chip-build)
27+
28+
# These are installed for terminal/dev convenience. If more tooling for build is required, please
29+
# add them to chip-build (in integrations/docker/images/chip-build).
2930
RUN apt-get update \
3031
&& apt-get install -y locales \
3132
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
32-
&& apt-get -fy install git vim emacs sudo \
33+
&& apt-get -fy install vim emacs sudo \
3334
apt-utils dialog zsh \
34-
iproute2 procps lsb-release \
35+
lsb-release \
3536
bash-completion \
36-
build-essential cmake cppcheck valgrind \
37-
wget curl telnet \
37+
valgrind \
3838
docker.io \
39-
iputils-ping net-tools \
40-
libncurses5 \
41-
libncursesw5 \
42-
libpython2.7 \
39+
iputils-ping \
40+
icecc \
4341
&& :
4442

4543
RUN groupadd -g $USER_GID $USERNAME \
46-
&& useradd -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
44+
&& useradd --no-log-init -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
4745
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4846
&& chmod 0440 /etc/sudoers.d/$USERNAME \
4947
&& :
@@ -55,13 +53,22 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5553
RUN mkdir -p /opt/sdk/sdks/ \
5654
&& chown -R $USERNAME:$USERNAME \
5755
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
58-
/opt/NordicSemiconductor/nrfconnect/ `# $USERNAME needs to own west configuration to build nRF Connect examples` \
59-
$IDF_PATH `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
56+
$ANDROID_HOME \
57+
$IDF_TOOLS_PATH \
58+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
62+
&& chmod -R +x \
63+
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
64+
&& chmod -R +w \
6065
$IDF_TOOLS_PATH \
61-
$SYSROOT_AARCH64 `# allow read/write access to header and libraries` \
62-
$ANDROID_HOME `# allow licenses to be accepted` \
63-
$AMEBA_PATH `# AmebaD requires access to change build_info.h` \
64-
$IMX_SDK_ROOT \
66+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
67+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
68+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
69+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
70+
# Safe directory is preffered over chown.
71+
&& git config --global --add safe.directory "*" \
6572
&& :
6673

6774
# Fix Tizen SDK paths for new user
@@ -74,3 +81,13 @@ ENV TIZEN_ROOTFS /tizen_rootfs
7481

7582
# Fast Model GDB plugins path for debugging support
7683
ENV FAST_MODEL_PLUGINS_PATH /opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3
84+
85+
# Set up ccache as a pigweed command launcher when using the scripts/build/build_examples.py
86+
# script. Also, set up icecc as the command prefix for ccache. Such setup allows to benefit
87+
# from compilation caching and distributed compilation at the same time.
88+
#
89+
# NOTE: In order to use distributed compilation with icecc, one should run
90+
# "scripts/icecc.sh start" before starting the build.
91+
ENV CHIP_PW_COMMAND_LAUNCHER ccache
92+
ENV CCACHE_PREFIX icecc
93+
ENV PATH /usr/lib/ccache:$PATH

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"mounts": [
1515
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
1616
],
17-
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 22",
17+
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
1818
"image": "matter-dev-environment:local",
1919
"remoteUser": "vscode",
20+
"containerEnv": {
21+
"PW_ENVIRONMENT_ROOT": "${containerWorkspaceFolder}/.environment-vscode"
22+
},
2023
"customizations": {
2124
"vscode": {
2225
// Add the IDs of extensions you want installed when the container is created in the array below.

.github/.wordlist.txt

+34-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ AdvSendAdvert
3737
AE
3838
aef
3939
AES
40+
AFL
4041
AIDL
4142
algs
4243
alloc
@@ -340,6 +341,7 @@ datamodel
340341
DataModelRevision
341342
dataset
342343
datasets
344+
datastore
343345
DataVersion
344346
dbf
345347
DBG
@@ -369,6 +371,7 @@ DelayedActionTime
369371
delayedApplyActionTimeSec
370372
delayedQueryActionTimeSec
371373
delayQuery
374+
deliverables
372375
demangle
373376
deployable
374377
depottools
@@ -401,6 +404,7 @@ DevKitM
401404
devtype
402405
df
403406
dfe
407+
DFILE
404408
dfu
405409
DgDxsfHx
406410
dhclient
@@ -449,13 +453,16 @@ dpkg
449453
dropdown
450454
dryrun
451455
DS
456+
DSLS
452457
duplicative
453458
DUT
454459
DUTS
460+
DUT's
455461
DV
456462
DVK
457463
dynload
458464
eabi
465+
EAF
459466
EB
460467
ECC
461468
ECD
@@ -546,6 +553,7 @@ feff
546553
ffaa
547554
ffeebaefa
548555
FFF
556+
FFFFFFFFFFFF0102
549557
fffe
550558
fffff
551559
Fi
@@ -560,12 +568,15 @@ forkpty
560568
FOTA
561569
FreeRTOS
562570
FreeRTOSConfig
571+
FS
563572
fsl
564573
fstab
565574
fsync
566575
ftd
567576
fullclean
568577
fuzzer
578+
fuzzers
579+
fuzztest
569580
FW
570581
gbl
571582
gcloud
@@ -585,6 +596,8 @@ GenericWiFiConfigurationManagerImpl
585596
GetDeviceId
586597
GetDeviceInfo
587598
GetDns
599+
getter
600+
getters
588601
GetInDevelopmentTests
589602
GetIP
590603
getManualTests
@@ -643,7 +656,10 @@ HomePods
643656
hostapd
644657
hostname
645658
href
659+
HSM
660+
hsm
646661
HTTPS
662+
Humidistat
647663
HW
648664
hwadr
649665
HydrogenConcentrationMeasurement
@@ -668,6 +684,7 @@ ifdef
668684
ifdefs
669685
IGMP
670686
ihex
687+
Illuminance
671688
IlluminanceMeasurement
672689
IM
673690
imager
@@ -724,6 +741,7 @@ JLink
724741
JLinkExe
725742
JLinkRTTClient
726743
JN
744+
jni
727745
jpg
728746
jre
729747
js
@@ -845,6 +863,7 @@ MbedNewTarget
845863
mbedos
846864
mbedTarget
847865
mbedTLS
866+
MCORE
848867
mcu
849868
MCUboot
850869
mcumgr
@@ -898,12 +917,14 @@ MoveWithOnOff
898917
MPSL
899918
MRP
900919
MTD
920+
MTR
901921
MTU
902922
Multiband
903923
Multicast
904924
multilib
905925
Multiprotocol
906926
multithreaded
927+
mutex
907928
mutexes
908929
mv
909930
MX
@@ -933,8 +954,7 @@ nfds
933954
NitricOxideConcentrationMeasurement
934955
NitrogenDioxideConcentrationMeasurement
935956
nl
936-
NLUnitTest
937-
NLUnitTests
957+
nltest
938958
nmcli
939959
nmtui
940960
noc
@@ -955,6 +975,7 @@ NTP
955975
nullable
956976
nullptr
957977
NUM
978+
NuttX
958979
NVM
959980
NVS
960981
nwdiag
@@ -964,6 +985,7 @@ objcopy
964985
OccupancySensing
965986
OctetString
966987
OECORE
988+
OID
967989
ol
968990
Onboarding
969991
onboardingcodes
@@ -984,12 +1006,15 @@ OpenThreadDemo
9841006
openweave
9851007
OperationalCredentials
9861008
operationalDataset
1009+
operationalstate
9871010
opkg
1011+
OPTIGA
9881012
optionMask
9891013
optionOverride
9901014
optionsMask
9911015
optionsOverride
9921016
orgs
1017+
OSS
9931018
OTA
9941019
OTADownloader
9951020
otaDownloadPath
@@ -1341,6 +1366,7 @@ SVR
13411366
SWD
13421367
SWU
13431368
symlinks
1369+
sysbuild
13441370
sysconfdir
13451371
SysConfig
13461372
sysctl
@@ -1428,6 +1454,7 @@ transitionTime
14281454
TransportMgrBase
14291455
TriggerEffect
14301456
TRNG
1457+
trustm
14311458
TrustedRootCertificates
14321459
tsan
14331460
TSG
@@ -1493,6 +1520,7 @@ utils
14931520
UUID
14941521
ux
14951522
validator
1523+
valgrind
14961524
vcom
14971525
VCP
14981526
Vectorcall
@@ -1509,6 +1537,7 @@ virtualenv
15091537
visualstudio
15101538
vlatest
15111539
VLEDs
1540+
vm
15121541
vn
15131542
vnc
15141543
vous
@@ -1575,6 +1604,7 @@ xFFF
15751604
xFFFF
15761605
xfffff
15771606
xFFFFFFEFFFFFFFFF
1607+
XMLPICSValidator
15781608
xtensa
15791609
xvzf
15801610
xwayland
@@ -1601,3 +1631,5 @@ zhengyaohan
16011631
Zigbee
16021632
zigbeealliance
16031633
zigbeethread
1634+
zsdk
1635+
TBR

.github/CODEOWNERS

-2
This file was deleted.

.github/actions/bootstrap-cache/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
attempt_limit: 3
1212
attempt_delay: 2000
1313
with: |
14-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
14+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**', '/etc/lsb-release') }}
1515
path: |
1616
.environment
1717
build_overrides/pigweed_environment.gni

.github/actions/bootstrap/action.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ runs:
2626
# because the bootstrapped Pigweed environment contains absolute paths.
2727
echo "Calculating bootstrap cache key for '$PWD'"
2828
FILES_HASH="${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}"
29-
FINAL_HASH="$(echo "$PWD:$FILES_HASH" | shasum -a 256 | cut -d' ' -f1)"
29+
case "$RUNNER_OS" in
30+
macOS) OS_HASH="$(sw_vers | shasum -a 256 | cut -d' ' -f1)";;
31+
*) OS_HASH="$(shasum -a 256 /etc/lsb-release | cut -d' ' -f1)";;
32+
esac
33+
PYTHON_HASH="$(python --version | shasum -a 256 | cut -d' ' -f1)"
34+
FINAL_HASH="$(echo "$PWD:$FILES_HASH:$OS_HASH:$PYTHON_HASH" | shasum -a 256 | cut -d' ' -f1)"
3035
echo key="${RUNNER_OS}-${RUNNER_ARCH}-${{ inputs.platform }}-${FINAL_HASH}" | tee -a "$GITHUB_OUTPUT"
3136
3237
# Split caches across backends

.github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ updates:
5050
- dependency-name: "third_party/nlassert/repo"
5151
- dependency-name: "third_party/nlfaultinjection/repo"
5252
- dependency-name: "third_party/nlio/repo"
53-
- dependency-name: "third_party/nlunit-test/repo"
5453
- dependency-name: "third_party/nxp/repo"
5554
- dependency-name: "third_party/open-iot-sdk/repo"
5655
- dependency-name: "third_party/ot-br-posix/repo"
5756
- dependency-name: "third_party/perfetto/repo"
58-
- dependency-name: "third_party/pybind11/repo"
5957
- dependency-name: "third_party/qpg_sdk/repo"
6058
- dependency-name: "third_party/silabs/repo"
6159
- dependency-name: "third_party/simw-top-mini/repo"

.github/issue-labeler.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ darwin:
55
# (like "kiosk" or whatnot), but do allow matching "ios8" and things
66
# like that.
77
#
8+
# Make sure we don't trigger for the string "MAC", which almost
9+
# certainly has nothing to do with Darwin.
10+
#
811
# \\b means "word boundary"
912
# (?![a-z]) means "there is no next char in the range a-z".
10-
- "/(\\bios(?![a-z])|homepod|darwin|\\bmac\\b|macos)/i"
13+
- "/(\\b[Ii][Oo][Ss](?![a-zA-Z])|[Hh][Oo][Mm][Ee][Pp][Oo][Dd]|[Dd][Aa][Rr][Ww][Ii][Nn]|\\bm[Aa][Cc]\\b|\\bMa[Cc]\\b|\\bM[Aa]c\\b|[Mm][Aa][Cc][Oo][Ss])/"
1114

1215
linux:
1316
- "/(linux)/i"

0 commit comments

Comments
 (0)