Skip to content

Commit

Permalink
Merge pull request #3 from project-chip/master
Browse files Browse the repository at this point in the history
Update Local Master
  • Loading branch information
hnnajh authored Dec 10, 2020
2 parents 1d812b7 + bb9c35c commit 3e1a4b9
Show file tree
Hide file tree
Showing 940 changed files with 110,631 additions and 246,208 deletions.
7 changes: 7 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,11 @@ StatementMacros:
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
---
Language: JavaScript
BasedOnStyle: WebKit
AlignConsecutiveAssignments: true
AllowShortFunctionsOnASingleLine: None
IndentWidth: 2
ColumnLimit: 132
...
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ RUN echo "PATH=/home/$USERNAME/bin:${PATH}" >> /home/$USERNAME/.bashrc
# $USERNAME needs to own the esp-idf and tools for the examples to build
RUN chown -R $USERNAME:$USERNAME /opt/espressif/esp-idf
RUN chown -R $USERNAME:$USERNAME /opt/espressif/tools
# $USERNAME needs to own west configuration to build nRF Connect examples
RUN chown -R $USERNAME:$USERNAME /opt/NordicSemiconductor/nrfconnect/.west
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dockerfile": "Dockerfile",
"args": {
// "BUILD_VERSION": "$(cat integrations/docker/images/chip-build/version)" // trying to get this to work
"BUILD_VERSION": "0.4.11"
"BUILD_VERSION": "0.4.18"
}
},
"remoteUser": "vscode",
Expand Down
42 changes: 42 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Stale config for https://github.com/marketplace/stale
# Issues with these labels will never be considered stale
exemptLabels:
- security
- blocked

# Label to use when marking a pull request as stale
staleLabel: stale

pulls:
# Number of days of inactivity before a pull request becomes stale
daysUntilStale: 7

# Number of days of inactivity before a stale pull request is closed
daysUntilClose: 7

# Comment to post when marking a pull request as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
# Comment to post when closing a stale pull request. Set to `false` to disable
closeComment: >
This stale pull request has been automatically closed.
Thank you for your contributions.
issues:
# Number of days of inactivity before a issue becomes stale
daysUntilStale: 365

# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7

# Comment to post when marking a issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This stale issue has been automatically closed.
Thank you for your contributions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-android:0.4.13
image: connectedhomeip/chip-build-android:0.4.16
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.12
image: connectedhomeip/chip-build:0.4.16

steps:
- name: Checkout
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.12
image: connectedhomeip/chip-build:0.4.16
volumes:
- "/tmp/log_output:/tmp/test_logs"
options:
Expand Down Expand Up @@ -76,8 +76,6 @@ jobs:
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)
- name: Show tree
run: find .
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove dbus binaries for CodeQL Analysis
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-efr32:0.4.11
image: connectedhomeip/chip-build-efr32:0.4.16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down Expand Up @@ -69,8 +69,6 @@ jobs:
path: |
out/lock_app_debug/BRD4161A/chip-efr32-lock-example.out
out/lighting_app_debug/BRD4161A/chip-efr32-lighting-example.out
- name: Show tree
run: find .
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove SiliconLabs binaries for CodeQL Analysis
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-esp32:0.4.12
image: connectedhomeip/chip-build-esp32:0.4.16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand All @@ -51,8 +51,8 @@ jobs:
- name: Copy aside build products
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/wifi-echo/server/esp32/build/chip-wifi-echo.elf \
example_binaries/$BUILD_TYPE-build/chip-wifi-echo.elf
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/action-cond@v1.0.0
Expand All @@ -70,8 +70,6 @@ jobs:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build
- name: Show tree
run: find .
# - name: Remove third_party binaries for CodeQL Analysis
# run: find . -type d -name "third_party" -exec rm -rf {} +
# - name: Remove m5stack-tft binaries for CodeQL Analysis
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.12
image: connectedhomeip/chip-build:0.4.16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand All @@ -58,6 +58,10 @@ jobs:
run:
scripts/examples/gn_build_example.sh examples/shell/standalone
out/shell_debug
- name: Build example Standalone All Clusters Server
run:
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux
out/all_clusters_debug chip_bypass_rendezvous=true
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/action-cond@v1.0.0
Expand All @@ -74,8 +78,6 @@ jobs:
path: |
out/chip_tool_debug/chip-tool
out/shell_debug/chip-shell
- name: Show tree
run: find .
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Remove dbus binaries for CodeQL Analysis
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-nrf-platform:0.4.12
image: connectedhomeip/chip-build-nrf-platform:0.4.16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down Expand Up @@ -78,8 +78,6 @@ jobs:
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build
# https://github.com/project-chip/connectedhomeip/issues/3100
# - name: Show tree
# run: find .
# - name: Remove third_party binaries for CodeQL Analysis
# run: find examples -type d -name "third_party" -exec rm -rf {} +
# - name: Remove nrfxlib binaries for CodeQL Analysis
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/examples-qpg6100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.12
image: connectedhomeip/chip-build:0.4.16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand All @@ -46,6 +46,9 @@ jobs:
- name: Build example QPG6100 Lock App
run: scripts/examples/gn_build_example.sh
examples/lock-app/qpg6100 out/lock_app_debug
- name: Build QPG6100 shell App
run: scripts/examples/gn_build_example.sh
examples/shell/qpg6100 out/shell_app
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/action-cond@v1.0.0
Expand All @@ -61,6 +64,9 @@ jobs:
steps.outsuffix.outputs.value }}
path: |
out/lock_app_debug/chip-qpg6100-lock-example.out
out/shell_app/shell-qpg6100.out
- name: Remove third_party binaries for CodeQL Analysis
run: find out -type d -name "third_party" -exec rm -rf {} +
- name: Perform CodeQL Analysis
if: ${{ github.event_name == 'push' }}
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-esp32-qemu:0.4.12
image: connectedhomeip/chip-build-esp32-qemu:0.4.16
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.12
image: connectedhomeip/chip-build:0.4.16
volumes:
- "/tmp/log_output:/tmp/test_logs"
- "/tmp/happy_test_logs:/tmp/happy_test_logs"
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

# Build System
out/
/src/test_driver/nrfconnect/build/

# Environment directory
.environment/

# Temporary Directories
.tmp/
Expand Down
2 changes: 0 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
path = third_party/cirque/repo
url = https://github.com/openweave/cirque.git
branch = master
ignore = dirty
commit = 905112cbeeda504223209798ec23e3754ce43fca
[submodule "happy"]
path = third_party/happy/repo
url = https://github.com/openweave/happy.git
Expand Down
23 changes: 17 additions & 6 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.gcc.json",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++11",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-x64",
"browse": {
"path": ["${workspaceFolder}/out/debug/"],
Expand All @@ -17,7 +17,7 @@
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.clang.json",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++11",
"cppStandard": "gnu++14",
"intelliSenseMode": "clang-x64",
"browse": {
"path": ["${workspaceFolder}/out/debug/"],
Expand All @@ -29,7 +29,7 @@
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.mbedtls.json",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++11",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-x64",
"browse": {
"path": ["${workspaceFolder}/out/debug/"],
Expand All @@ -40,7 +40,7 @@
"name": "Android x64 debug (GN)",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "gcc-x64",
"intelliSenseMode": "clang-x64",
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_x64.json",
"compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang",
"browse": {
Expand All @@ -52,7 +52,7 @@
"name": "Android arm64 debug (GN)",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "gcc-x64",
"intelliSenseMode": "clang-arm64",
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_arm64.json",
"compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang",
"browse": {
Expand All @@ -64,13 +64,24 @@
"name": "EFR32 examples debug (GN)",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "gcc-x64",
"intelliSenseMode": "gcc-arm",
"compileCommands": "${workspaceFolder}/out/debug/compile_commands.efr32.json",
"compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc",
"browse": {
"path": ["${workspaceFolder}/out/debug/"],
"limitSymbolsToIncludedHeaders": true
}
},
{
"name": "nRF Connect examples debug (GN)",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-arm",
"compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc",
"browse": {
"path": ["${workspaceFolder}/out/debug/"],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
Expand Down
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
"queue": "cpp",
"ratio": "cpp",
"set": "cpp",
"stack": "cpp"
"stack": "cpp",
"regex": "cpp"
},
"files.eol": "\n",
"editor.formatOnSave": true,
Expand Down Expand Up @@ -153,5 +154,7 @@
}
],
"clang-format.fallbackStyle": "WebKit",
"files.trimFinalNewlines": true
"files.trimFinalNewlines": true,
"C_Cpp.default.cppStandard": "gnu++14",
"C_Cpp.default.cStandard": "gnu11"
}
Loading

0 comments on commit 3e1a4b9

Please sign in to comment.