Skip to content

Commit 93ad619

Browse files
Revert "Merge CSA V1.4 branch in our release_2.6-1.4 (#549)"
This reverts commit dc2a1c6.
1 parent 6d645ba commit 93ad619

File tree

10,176 files changed

+625423
-1202618
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,176 files changed

+625423
-1202618
lines changed

.clang-tidy

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

.devcontainer/Dockerfile

Lines changed: 18 additions & 28 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,14 +37,9 @@ RUN apt-get update \
3737
valgrind \
3838
docker.io \
3939
iputils-ping \
40-
icecc \
4140
&& :
4241

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 \
42+
RUN groupadd -g $USER_GID $USERNAME \
4843
&& useradd --no-log-init -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
4944
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
5045
&& chmod 0440 /etc/sudoers.d/$USERNAME \
@@ -54,20 +49,25 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5449
&& chmod +x /usr/local/bin/restyle-path \
5550
&& :
5651

57-
RUN mkdir -p /opt/android/sdk \
52+
RUN mkdir -p /opt/sdk/sdks/ \
5853
&& chown -R $USERNAME:$USERNAME \
54+
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
5955
$ANDROID_HOME \
6056
$IDF_TOOLS_PATH \
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` \
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`\
6863
&& chmod -R +w \
6964
$IDF_TOOLS_PATH \
70-
&& git config --global --add safe.directory "*" `# Safe directory is preferred over chown.` \
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 "*" \
7171
&& :
7272

7373
# Fix Tizen SDK paths for new user
@@ -76,17 +76,7 @@ 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
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
82+
ENV FAST_MODEL_PLUGINS_PATH /opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3

.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=$(sed 's/ .*//' "$CHIP_ROOT/integrations/docker/images/base/chip-build/version")
21+
BUILD_VERSION="latest"
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 version of the base chip-build docker image
35+
-v,--version Build version - default is the latest
3636
EOF
3737
}
3838

.devcontainer/devcontainer.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
{
22
"name": "CHIP Ubuntu Development Environment",
33
"runArgs": [
4+
"--cap-add=SYS_PTRACE",
5+
"--security-opt",
6+
"seccomp=unconfined",
47
"--network=host",
8+
"--privileged",
9+
"-v",
10+
"/dev/bus/usb:/dev/bus/usb:ro",
511
"--device-cgroup-rule=a 189:* rmw",
612
"--add-host=host.docker.internal:host-gateway"
713
],
8-
"privileged": true,
9-
"capAdd": ["SYS_PTRACE"],
10-
"securityOpt": ["seccomp=unconfined"],
1114
"mounts": [
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-
}
15+
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
2216
],
23-
"initializeCommand": "bash .devcontainer/build.sh",
17+
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
2418
"image": "matter-dev-environment:local",
2519
"remoteUser": "vscode",
2620
"containerEnv": {

.gemini/config.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.gemini/styleguide.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)