Skip to content

Commit 0ac2c2e

Browse files
Merge remote-tracking branch 'origin/merge/v1.4.2_to_release_2.6-1.4' into fix_history_1.4.2_merge
2 parents 93ad619 + e50ddbb commit 0ac2c2e

File tree

10,178 files changed

+1206041
-626286
lines changed

Some content is hidden

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

10,178 files changed

+1206041
-626286
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Checks: >
4646
-clang-analyzer-security.insecureAPI.rand,
4747
-clang-analyzer-security.insecureAPI.strcpy,
4848
-clang-analyzer-unix.Malloc,
49+
-clang-analyzer-webkit.NoUncountedMemberChecker,
4950
-clang-diagnostic-implicit-int-conversion,
5051
-clang-diagnostic-missing-template-arg-list-after-template-kw
5152
WarningsAsErrors: '*'

.devcontainer/Dockerfile

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LABEL org.opencontainers.image.source https://github.com/project-chip/connectedh
2222
ARG USERNAME=vscode
2323
ARG USER_UID=1000
2424
ARG USER_GID=$USER_UID
25-
ENV LANG en_US.utf8
25+
ENV LANG=en_US.utf8
2626

2727

2828
# These are installed for terminal/dev convenience. If more tooling for build is required, please
@@ -37,9 +37,14 @@ RUN apt-get update \
3737
valgrind \
3838
docker.io \
3939
iputils-ping \
40+
icecc \
4041
&& :
4142

42-
RUN groupadd -g $USER_GID $USERNAME \
43+
RUN (getent passwd $USER_UID && userdel -f $(getent passwd $USER_UID | cut -d: -f1) || true) \
44+
&& (getent group $USER_GID && groupdel -f $(getent group $USER_GID | cut -d: -f1) || true) \
45+
&& (getent passwd $USERNAME && userdel -f $USERNAME || true) \
46+
&& (getent group $USERNAME && groupdel -f $USERNAME || true) \
47+
&& groupadd -g $USER_GID $USERNAME \
4348
&& useradd --no-log-init -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
4449
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4550
&& chmod 0440 /etc/sudoers.d/$USERNAME \
@@ -49,25 +54,20 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
4954
&& chmod +x /usr/local/bin/restyle-path \
5055
&& :
5156

52-
RUN mkdir -p /opt/sdk/sdks/ \
57+
RUN mkdir -p /opt/android/sdk \
5358
&& chown -R $USERNAME:$USERNAME \
54-
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
5559
$ANDROID_HOME \
5660
$IDF_TOOLS_PATH \
57-
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
58-
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59-
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60-
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61-
&& chmod -R +x \
62-
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
61+
&& find $AMEBA_PATH \
62+
-name "inc_lp" -print0 -or \
63+
-name "inc_hp" -print0 -or \
64+
-name "project_lp" -print0 -or \
65+
-name "project_hp" -print0 \
66+
| xargs -0 -I {} sh -c 'chown -R $USERNAME:$USERNAME {}; chmod -R +w {}' \
67+
&& find $ANDROID_HOME/cmdline-tools/ -type d -name bin | xargs chmod -R +x `# sdkmanager for accepting licenses` \
6368
&& chmod -R +w \
6469
$IDF_TOOLS_PATH \
65-
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
66-
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
67-
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
68-
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
69-
# Safe directory is preffered over chown.
70-
&& git config --global --add safe.directory "*" \
70+
&& git config --global --add safe.directory "*" `# Safe directory is preferred over chown.` \
7171
&& :
7272

7373
# Fix Tizen SDK paths for new user
@@ -76,7 +76,17 @@ RUN sed -i '/^TIZEN_SDK_DATA_PATH/d' $TIZEN_SDK_ROOT/sdk.info \
7676
&& ln -sf /home/$USERNAME/.tizen-cli-config $TIZEN_SDK_ROOT/tools/.tizen-cli-config \
7777
&& : # last line
7878

79-
ENV TIZEN_ROOTFS /tizen_rootfs
79+
ENV TIZEN_ROOTFS=/tizen_rootfs
8080

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

.devcontainer/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
HERE="$(dirname "$0")"
2020
CHIP_ROOT="$(realpath "$HERE"/..)"
21-
BUILD_VERSION="latest"
21+
BUILD_VERSION=$(sed 's/ .*//' "$CHIP_ROOT/integrations/docker/images/base/chip-build/version")
2222
IMAGE_TAG="matter-dev-environment:local"
2323
USER_UID=$UID
2424

@@ -32,7 +32,7 @@ Options:
3232
-h,--help Show this help
3333
-t,--tag Image tag - default is matter-dev-environment:local
3434
-u,--uid User UIDa - default is the current user ID
35-
-v,--version Build version - default is the latest
35+
-v,--version Build version - default is the version of the base chip-build docker image
3636
EOF
3737
}
3838

.devcontainer/devcontainer.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
22
"name": "CHIP Ubuntu Development Environment",
33
"runArgs": [
4-
"--cap-add=SYS_PTRACE",
5-
"--security-opt",
6-
"seccomp=unconfined",
74
"--network=host",
8-
"--privileged",
9-
"-v",
10-
"/dev/bus/usb:/dev/bus/usb:ro",
115
"--device-cgroup-rule=a 189:* rmw",
126
"--add-host=host.docker.internal:host-gateway"
137
],
8+
"privileged": true,
9+
"capAdd": ["SYS_PTRACE"],
10+
"securityOpt": ["seccomp=unconfined"],
1411
"mounts": [
15-
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
12+
{
13+
"source": "/var/run/docker.sock",
14+
"target": "/var/run/docker.sock",
15+
"type": "bind"
16+
},
17+
{
18+
"source": "/dev/bus/usb",
19+
"target": "/dev/bus/usb",
20+
"type": "bind"
21+
}
1622
],
17-
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
23+
"initializeCommand": "bash .devcontainer/build.sh",
1824
"image": "matter-dev-environment:local",
1925
"remoteUser": "vscode",
2026
"containerEnv": {

.gemini/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
have_fun: false
2+
code_review:
3+
disable: false
4+
comment_severity_threshold: MEDIUM
5+
max_review_comments: -1
6+
pull_request_opened:
7+
help: false
8+
summary: false
9+
code_review: true

.gemini/styleguide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Gemini Code Review Instructions
2+
3+
- Do not comment on content for XML files or .matter content for clusters
4+
- Assume the matter specification is unknown and out of scope. Do not make uninformed assumptions about the Matter specification, or its contents.
5+
- Do not comment unless a change is probably desirable
6+
- Do not repeat yourself. Be concise without losing meaning
7+
- Do not over-explain what you see in the code. Only describe code if there are specific questions or concerns (or if a question is asked)
8+
- Ensure that extensions or fixes to existing code should match the prevailing style of the original code
9+
- Look for common typos and suggest fixes

0 commit comments

Comments
 (0)