Skip to content

Commit

Permalink
[Infineon] Restructure p6 folders under infineon
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenCY committed Aug 17, 2022
1 parent 1939019 commit 5cb8583
Show file tree
Hide file tree
Showing 195 changed files with 417 additions and 406 deletions.
55 changes: 29 additions & 26 deletions .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Build example - Infineon P6
name: Build example - Infineon

on:
push:
Expand All @@ -25,15 +25,16 @@ concurrency:

jobs:
infineon:
name: Infineon examples building
timeout-minutes: 140
name: Infineon examples
timeout-minutes: 200

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

container:
image: connectedhomeip/chip-build-infineon:0.5.91

volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- uses: Wandalen/[email protected]
name: Checkout
Expand All @@ -44,7 +45,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform p6
run: scripts/checkout_submodules.py --shallow --platform infineon

- name: Set up environment for size reports
if: ${{ !env.ACT }}
Expand All @@ -63,65 +64,67 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build lock-app example
- name: Build PSoC6 lock-app example
timeout-minutes: 15
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
--target infineon-p6-lock \
--target infineon-psoc6-lock \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
p6 default lock-app \
out/infineon-p6-lock/chip-p6-lock-example.out
- name: Build all-clusters-app example
psoc6 cy8ckit_062s2_43012 lock \
out/artifacts/infineon-psoc6-lock/chip-psoc6-lock-example.out \
/tmp/bloat_reports/
- name: Build PSoC6 all-clusters-app example
timeout-minutes: 20
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
--target infineon-p6-all-clusters \
--target infineon-psoc6-all-clusters \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
p6 default all-clusters-app \
out/infineon-p6-all-clusters/chip-p6-clusters-example.out
- name: Build all-clusters-minimal-app example
psoc6 cy8ckit_062s2_43012 all-clusters \
out/artifacts/infineon-psoc6-all-clusters/chip-psoc6-clusters-example.out \
/tmp/bloat_reports/
- name: Build PSoC6 all-clusters-minimal-app example
timeout-minutes: 20
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
--target infineon-p6-all-clusters-minimal \
--target infineon-psoc6-all-clusters-minimal \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
p6 default all-clusters-minimal-app \
out/infineon-p6-all-clusters-minimal/chip-p6-clusters-minimal-example.out
- name: Build lighting-app example
psoc6 cy8ckit_062s2_43012 all-clusters-minimal \
out/artifacts/infineon-psoc6-all-clusters-minimal/chip-psoc6-clusters-minimal-example.out \
/tmp/bloat_reports/
- name: Build PSoC6 lighting-app example
timeout-minutes: 15
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
--target infineon-p6-light \
--target infineon-psoc6-light \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
p6 default light-app \
out/infineon-p6-light/chip-p6-lighting-example.out
psoc6 cy8ckit_062s2_43012 light \
out/artifacts/infineon-psoc6-light/chip-psoc6-lighting-example.out \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
name: Size,P6-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
name: Size,Infineon-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
out/infineon-p6-lock/p6-default-lock-app-sizes.json
out/infineon-p6-all-clusters/p6-default-all-clusters-app-sizes.json
out/infineon-p6-all-clusters-minimal/p6-default-all-clusters-minimal-app-sizes.json
out/infineon-p6-light/p6-default-light-app-sizes.json
/tmp/bloat_reports/
98 changes: 49 additions & 49 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
path = third_party/freertos/repo
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
branch = V10.3.1-kernel-only
platforms = ameba,cc13x2_26x2,bl602,efr32,esp32,k32w0,p6,qpg
platforms = ameba,cc13x2_26x2,bl602,efr32,esp32,k32w0,infineon,qpg
[submodule "simw-top-mini"]
path = third_party/simw-top-mini/repo
url = https://github.com/NXP/plug-and-trust.git
Expand Down Expand Up @@ -101,98 +101,98 @@
branch = main
platforms = mbed
[submodule "p6/abstraction-rtos"]
path = third_party/p6/p6_sdk/libs/abstraction-rtos
path = third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos
url = https://github.com/Infineon/abstraction-rtos
platforms = p6
platforms = infineon
[submodule "p6/bluetooth-freertos"]
path = third_party/p6/p6_sdk/libs/bluetooth-freertos
path = third_party/infineon/psoc6/psoc6_sdk/libs/bluetooth-freertos
url = https://github.com/Infineon/bluetooth-freertos
branch = v2.X
platforms = p6
platforms = infineon
[submodule "p6/btstack"]
path = third_party/p6/p6_sdk/libs/btstack
path = third_party/infineon/psoc6/psoc6_sdk/libs/btstack
url = https://github.com/Infineon/btstack
platforms = p6
platforms = infineon
[submodule "p6/clib-support"]
path = third_party/p6/p6_sdk/libs/clib-support
path = third_party/infineon/psoc6/psoc6_sdk/libs/clib-support
url = https://github.com/Infineon/clib-support
platforms = p6
platforms = infineon
[submodule "p6/connectivity-utilities"]
path = third_party/p6/p6_sdk/libs/connectivity-utilities
path = third_party/infineon/psoc6/psoc6_sdk/libs/connectivity-utilities
url = https://github.com/Infineon/connectivity-utilities
platforms = p6
platforms = infineon
[submodule "p6/core-lib"]
path = third_party/p6/p6_sdk/libs/core-lib
path = third_party/infineon/psoc6/psoc6_sdk/libs/core-lib
url = https://github.com/Infineon/core-lib
platforms = p6
platforms = infineon
[submodule "p6/core-make"]
path = third_party/p6/p6_sdk/libs/core-make
path = third_party/infineon/psoc6/psoc6_sdk/libs/core-make
url = https://github.com/Infineon/core-make
platforms = p6
platforms = infineon
[submodule "p6/kv-store"]
path = third_party/p6/p6_sdk/libs/kv-store
path = third_party/infineon/psoc6/psoc6_sdk/libs/kv-store
url = https://github.com/Infineon/kv-store
platforms = p6
platforms = infineon
[submodule "p6/mtb-hal-cat1"]
path = third_party/p6/p6_sdk/libs/mtb-hal-cat1
path = third_party/infineon/psoc6/psoc6_sdk/libs/mtb-hal-cat1
url = https://github.com/Infineon/mtb-hal-cat1
platforms = p6
platforms = infineon
[submodule "p6/mtb-pdl-cat1"]
path = third_party/p6/p6_sdk/libs/mtb-pdl-cat1
path = third_party/infineon/psoc6/psoc6_sdk/libs/mtb-pdl-cat1
url = https://github.com/Infineon/mtb-pdl-cat1
platforms = p6
platforms = infineon
[submodule "p6/psoc6cm0p"]
path = third_party/p6/p6_sdk/libs/psoc6cm0p
path = third_party/infineon/psoc6/psoc6_sdk/libs/psoc6cm0p
url = https://github.com/Infineon/psoc6cm0p
platforms = p6
platforms = infineon
[submodule "p6/whd-bsp-integration"]
path = third_party/p6/p6_sdk/libs/whd-bsp-integration
path = third_party/infineon/psoc6/psoc6_sdk/libs/whd-bsp-integration
url = https://github.com/Infineon/whd-bsp-integration
platforms = p6
platforms = infineon
[submodule "p6/wifi-connection-manager"]
path = third_party/p6/p6_sdk/libs/wifi-connection-manager
path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-connection-manager
url = https://github.com/Infineon/wifi-connection-manager
platforms = p6
platforms = infineon
[submodule "p6/wifi-host-driver"]
path = third_party/p6/p6_sdk/libs/wifi-host-driver
path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver
url = https://github.com/Infineon/wifi-host-driver
platforms = p6
platforms = infineon
[submodule "p6/wifi-mw-core"]
path = third_party/p6/p6_sdk/libs/wifi-mw-core
path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-mw-core
url = https://github.com/Infineon/wifi-mw-core
platforms = p6
platforms = infineon
[submodule "p6/TARGET_CY8CKIT-062S2-43012"]
path = third_party/p6/p6_sdk/libs/TARGET_CY8CKIT-062S2-43012
path = third_party/infineon/psoc6/psoc6_sdk/libs/TARGET_CY8CKIT-062S2-43012
url = https://github.com/Infineon/TARGET_CY8CKIT-062S2-43012
platforms = p6
platforms = infineon
[submodule "p6/freertos"]
path = third_party/p6/p6_sdk/libs/freertos
path = third_party/infineon/psoc6/psoc6_sdk/libs/freertos
url = https://github.com/Infineon/freertos
platforms = p6
platforms = infineon
[submodule "p6/retarget-io"]
path = third_party/p6/p6_sdk/libs/retarget-io
path = third_party/infineon/psoc6/psoc6_sdk/libs/retarget-io
url = https://github.com/Infineon/retarget-io
platforms = p6
platforms = infineon
[submodule "p6/mbedtls"]
path = third_party/p6/p6_sdk/libs/mbedtls
path = third_party/infineon/psoc6/psoc6_sdk/libs/mbedtls
url = https://github.com/ARMmbed/mbedtls
platforms = p6
platforms = infineon
[submodule "p6/secure-sockets"]
path = third_party/p6/p6_sdk/libs/secure-sockets
path = third_party/infineon/psoc6/psoc6_sdk/libs/secure-sockets
url = https://github.com/Infineon/secure-sockets
platforms = p6
platforms = infineon
[submodule "p6/recipe-make-cat1a"]
path = third_party/p6/p6_sdk/libs/recipe-make-cat1a
path = third_party/infineon/psoc6/psoc6_sdk/libs/recipe-make-cat1a
url = https://github.com/Infineon/recipe-make-cat1a
platforms = p6
platforms = infineon
[submodule "third_party/pybind11/repo"]
path = third_party/pybind11/repo
url = https://github.com/pybind/pybind11
branch = stable
[submodule "p6/lwip"]
path = third_party/p6/p6_sdk/libs/lwip
path = third_party/infineon/psoc6/psoc6_sdk/libs/lwip
url = https://github.com/lwip-tcpip/lwip.git
platforms = p6
platforms = infineon
[submodule "third_party/jsoncpp/repo"]
path = third_party/jsoncpp/repo
url = https://github.com/open-source-parsers/jsoncpp.git
Expand All @@ -213,17 +213,17 @@
url = https://github.com/Infineon/btsdk-tools.git
platforms = cyw30739
[submodule "third_party/p6/p6_sdk/libs/anycloud-ota"]
path = third_party/p6/p6_sdk/libs/anycloud-ota
path = third_party/infineon/psoc6/psoc6_sdk/libs/anycloud-ota
url = https://github.com/Infineon/anycloud-ota
platforms = p6
platforms = infineon
[submodule "third_party/mbed-mcu-boot/repo"]
path = third_party/mbed-mcu-boot/repo
url = https://github.com/ATmobica/mcuboot.git
platforms = mbed
[submodule "p6/serial-flash"]
path = third_party/p6/p6_sdk/libs/serial-flash
path = third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash
url = https://github.com/Infineon/serial-flash
platforms = p6
platforms = infineon
[submodule "third_party/telink_sdk/repo"]
path = third_party/telink_sdk/repo
url = https://github.com/telink-semi/telink_b91_ble_single_connection_sdk_matter
Expand Down
8 changes: 4 additions & 4 deletions build_overrides/p6.gni → build_overrides/psoc6.gni
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.

declare_args() {
# Root directory for p6 SDK build files.
p6_sdk_build_root = "//third_party/p6"
# Root directory for psoc6 SDK build files.
psoc6_sdk_build_root = "//third_party/infineon/psoc6"
}

declare_args() {
# Root directory for p6 SDK sources.
p6_sdk_root = "${p6_sdk_build_root}/p6_sdk"
# Root directory for psoc6 SDK sources.
psoc6_sdk_root = "${psoc6_sdk_build_root}/psoc6_sdk"
}
2 changes: 1 addition & 1 deletion docs/guides/darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ requirements
- [nRF Connect Pump](/examples/pump-app/nrfconnect/README.md)
- [NXP Examples](./nxp_imx8m_linux_examples.md)
- [NXP](/examples/all-clusters-app/nxp/mw320/README.md)
- [P6](/examples/all-clusters-app/p6/README.md)
- [P6](/examples/all-clusters-app/infineon/p6/README.md)
- [Qorvo](/examples/lighting-app/qpg/README.md)
- [SiliconLabs](./silabs_efr32_building.md)
- [Simulated Linux](./simulated_device_linux.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Matter Software Update with Infineon P6 example applications
# Matter Software Update with Infineon PSoC6 example applications

The Over The Air (OTA) Software Update functionality can be added to any of the
Infineon P6 example applications by passing the `chip_enable_ota_requestor=true`
option to the build script.
Infineon PSoC6 example applications by passing the
`chip_enable_ota_requestor=true` option to the build script.

## Running the OTA Download scenario

Expand All @@ -11,7 +11,7 @@ option to the build script.
OTA Requestor is any node that needs to be updated and can communicate with
the OTA Provider to fetch applicable software updates. In the procedure
described below, the OTA Provider will be a Linux application and the
example running on the Infineon P6 board will work as the OTA Requestor.
example running on the Infineon PSoC6 board will work as the OTA Requestor.

- On a Linux or Darwin platform build the chip-tool and the ota-provider-app
as follows:
Expand All @@ -21,33 +21,33 @@ option to the build script.
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false
```

- Build the P6 OTA Requestor application from the chip root dir:
- Build the PSoC6 OTA Requestor application from the chip root dir:

```
$ scripts/build/build_examples.py --enable-flashbundle --target infineon-p6-lock-ota build
$ third_party/p6/p6_sdk/ota/ota_base_build.sh out/infineon-p6-lock-ota chip-p6-lock-example
$ scripts/build/build_examples.py --enable-flashbundle --target infineon-psoc6-lock-ota build
$ third_party/psoc6/psoc6_sdk/ota/ota_base_build.sh out/infineon-psoc6-lock-ota chip-psoc6-lock-example
```

- Build the P6 OTA Update application from the chip root dir and create OTA
- Build the PSoC6 OTA Update application from the chip root dir and create OTA
file

```
$ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-p6-lock-ota-updateimage build
$ third_party/p6/p6_sdk/ota/ota_update_build.sh out/infineon-p6-lock-ota-updateimage chip-p6-lock-example
$ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-psoc6-lock-ota-updateimage build
$ third_party/psoc6/psoc6_sdk/ota/ota_update_build.sh out/infineon-psoc6-lock-ota-updateimage chip-psoc6-lock-example
```

* Additionally a pre-compiled bootloader must be flashed to the board using
[Cypress Programmer](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.cypressprogrammer).
This image can be found at:

$ ./third_party/p6/p6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
$ ./third_party/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex

* In a terminal start the Provider app passing to it the path to the Matter
OTA file created in the previous step:(output of ota_update_build step)

```
rm -r /tmp/chip_*
./out/debug/chip-ota-provider-app -f chip-p6-lock-example.ota
./out/debug/chip-ota-provider-app -f chip-psoc6-lock-example.ota
```

* In a separate terminal run the chip-tool commands to provision the Provider:
Expand Down
File renamed without changes.
Loading

0 comments on commit 5cb8583

Please sign in to comment.