Skip to content

Commit

Permalink
Add Infineon CYW30739 platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsusid committed Dec 7, 2021
1 parent 5c70530 commit 64285b9
Show file tree
Hide file tree
Showing 107 changed files with 7,600 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ customizations
cvfJ
cxx
CY
CYW
DAC
DAP
DataFrame
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Bootstrap
timeout-minutes: 10
Expand Down Expand Up @@ -118,6 +119,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
#- name: Initialize CodeQL
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
# uses: github/codeql-action/init@v1
Expand Down Expand Up @@ -210,6 +212,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand All @@ -235,6 +238,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Setup Environment
run: brew install openssl pkg-config
- name: Try to ensure the directory for diagnostic log collection exists
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Get cirque cache key
id: cirque-key
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Setup Environment
run: brew install openssl pkg-config python@3.9
- name: Fix pkgconfig link
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/doxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Generate
run: scripts/helpers/doxygen.sh
- name: Extract branch name
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Build example Ameba All Clusters App
run:
scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target-glob 'ameba-*' build"
73 changes: 73 additions & 0 deletions .github/workflows/examples-cyw30739.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Build example - CYW30739

on:
push:
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
cancel-in-progress: true

jobs:
cyw30739:
name: CYW30739
timeout-minutes: 60

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:latest
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"

- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }} && ${{ !env.ACT }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example CYW30739 Lighting App
timeout-minutes: 10
run: |
scripts/examples/gn_build_example.sh examples/lighting-app/cyw30739 out/lighting_app
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py cyw30739 CYW30739 lighting-app \
out/lighting_app/chip-cyw30739-lighting-example.elf /tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
name: Size,CYW30739-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }}
path: |
/tmp/bloat_reports/
1 change: 1 addition & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-mbed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-qpg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-tizen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Build example Tizen lighting app
run:
scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target-glob 'tizen-*' build"
1 change: 1 addition & 0 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
ref: "${{ github.event.inputs.releaseTag }}"
- name: Bootstrap
timeout-minutes: 25
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
ref: "${{ github.event.inputs.releaseTag }}"
- name: Bootstrap
timeout-minutes: 25
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Try to ensure the directories for core dumping exist and we can write them.
run: |
mkdir /tmp/cores || true
Expand Down Expand Up @@ -124,6 +125,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Setup Environment
# coreutils for stdbuf
run: brew install openssl pkg-config coreutils
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Bootstrap
timeout-minutes: 10
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/zap_regeneration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.MATTER_TOKEN }}
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
Expand Down
19 changes: 19 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
[submodule "third_party/openthread/ot-efr32"]
path = third_party/openthread/ot-efr32
url = https://github.com/openthread/ot-efr32.git
[submodule "third_party/openthread/ot-ifx"]
path = third_party/openthread/ot-ifx
url = git@github.com:Infineon/ot-ifx.git
branch = develop
[submodule "third_party/mbed-os/repo"]
path = third_party/mbed-os/repo
url = https://github.com/ARMmbed/mbed-os.git
Expand Down Expand Up @@ -162,3 +166,18 @@
[submodule "p6/lwip"]
path = third_party/p6/p6_sdk/libs/lwip
url = https://git.savannah.nongnu.org/git/lwip
[submodule "cyw30739_sdk/baselib"]
path = third_party/cyw30739_sdk/repos/30739A0
url = https://github.com/Infineon/MatterCSP
branch = 30739A0
[submodule "cyw30739_sdk/include"]
path = third_party/cyw30739_sdk/repos/btsdk-include
url = https://github.com/Infineon/MatterCSP
branch = btsdk-include
[submodule "cyw30739_sdk/target"]
path = third_party/cyw30739_sdk/repos/CYW930739M2EVB-01
url = https://github.com/Infineon/MatterBSP
branch = CYW930739M2EVB-01
[submodule "cyw30739_sdk/tools"]
path = third_party/cyw30739_sdk/repos/btsdk-tools
url = https://github.com/Infineon/btsdk-tools.git
18 changes: 18 additions & 0 deletions examples/build_overrides/cyw30739_sdk.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

declare_args() {
# Root directory for CYW30739 SDK.
cyw30739_sdk_build_root = "//third_party/connectedhomeip/third_party/cyw30739_sdk"
}
28 changes: 28 additions & 0 deletions examples/lighting-app/cyw30739/.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/build.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"

# CHIP uses angle bracket includes.
check_system_includes = true

default_args = {
target_cpu = "arm"
target_os = "cyw30739"

import("//args.gni")
}
Loading

0 comments on commit 64285b9

Please sign in to comment.