Skip to content

Commit ab02839

Browse files
praveenCYandy31415
andauthored
[Infineon] Restructure p6 and cyw30739 devices to single folder (#21926)
* [Infineon] Restructure p6 folders under infineon * [Infineon] Support CYW30739 platform inside infineon folder * [Infineon] Rebase code rebase to avoid conflicts and fix github timeout change Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 1ea6bbe commit ab02839

File tree

326 files changed

+592
-652
lines changed

Some content is hidden

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

326 files changed

+592
-652
lines changed

.github/workflows/examples-cyw30739.yaml

-102
This file was deleted.

.github/workflows/examples-infineon.yaml

+57-24
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Build example - Infineon P6
15+
name: Build example - Infineon
1616

1717
on:
1818
push:
@@ -33,7 +33,8 @@ jobs:
3333

3434
container:
3535
image: connectedhomeip/chip-build-infineon:0.5.91
36-
36+
volumes:
37+
- "/tmp/bloat_reports:/tmp/bloat_reports"
3738
steps:
3839
- uses: Wandalen/wretry.action@v1.0.15
3940
name: Checkout
@@ -44,7 +45,7 @@ jobs:
4445
attempt_limit: 3
4546
attempt_delay: 2000
4647
- name: Checkout submodules
47-
run: scripts/checkout_submodules.py --shallow --platform p6
48+
run: scripts/checkout_submodules.py --shallow --platform infineon
4849

4950
- name: Set up environment for size reports
5051
if: ${{ !env.ACT }}
@@ -63,65 +64,97 @@ jobs:
6364
path: |
6465
.environment/gn_out/.ninja_log
6566
.environment/pigweed-venv/*.log
66-
- name: Build lock-app example
67+
- name: Build PSoC6 lock-app example
6768
timeout-minutes: 15
6869
run: |
6970
scripts/run_in_build_env.sh \
7071
"scripts/build/build_examples.py \
7172
--enable-flashbundle --no-log-timestamps \
72-
--target infineon-p6-lock \
73+
--target infineon-psoc6-lock \
7374
build \
7475
--copy-artifacts-to out/artifacts \
7576
"
7677
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
77-
p6 default lock-app \
78-
out/infineon-p6-lock/chip-p6-lock-example.out
79-
- name: Build all-clusters-app example
78+
psoc6 cy8ckit_062s2_43012 lock \
79+
out/artifacts/infineon-psoc6-lock/chip-psoc6-lock-example.out \
80+
/tmp/bloat_reports/
81+
- name: Build PSoC6 all-clusters-app example
8082
timeout-minutes: 20
8183
run: |
8284
scripts/run_in_build_env.sh \
8385
"scripts/build/build_examples.py \
8486
--enable-flashbundle --no-log-timestamps \
85-
--target infineon-p6-all-clusters \
87+
--target infineon-psoc6-all-clusters \
8688
build \
8789
--copy-artifacts-to out/artifacts \
8890
"
8991
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
90-
p6 default all-clusters-app \
91-
out/infineon-p6-all-clusters/chip-p6-clusters-example.out
92-
- name: Build all-clusters-minimal-app example
92+
psoc6 cy8ckit_062s2_43012 all-clusters \
93+
out/artifacts/infineon-psoc6-all-clusters/chip-psoc6-clusters-example.out \
94+
/tmp/bloat_reports/
95+
- name: Build PSoC6 all-clusters-minimal-app example
9396
timeout-minutes: 20
9497
run: |
9598
scripts/run_in_build_env.sh \
9699
"scripts/build/build_examples.py \
97100
--enable-flashbundle --no-log-timestamps \
98-
--target infineon-p6-all-clusters-minimal \
101+
--target infineon-psoc6-all-clusters-minimal \
99102
build \
100103
--copy-artifacts-to out/artifacts \
101104
"
102105
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
103-
p6 default all-clusters-minimal-app \
104-
out/infineon-p6-all-clusters-minimal/chip-p6-clusters-minimal-example.out
105-
- name: Build lighting-app example
106+
psoc6 cy8ckit_062s2_43012 all-clusters-minimal \
107+
out/artifacts/infineon-psoc6-all-clusters-minimal/chip-psoc6-clusters-minimal-example.out \
108+
/tmp/bloat_reports/
109+
- name: Build PSoC6 lighting-app example
106110
timeout-minutes: 15
107111
run: |
108112
scripts/run_in_build_env.sh \
109113
"scripts/build/build_examples.py \
110114
--enable-flashbundle --no-log-timestamps \
111-
--target infineon-p6-light \
115+
--target infineon-psoc6-light \
112116
build \
113117
--copy-artifacts-to out/artifacts \
114118
"
115119
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
116-
p6 default light-app \
117-
out/infineon-p6-light/chip-p6-lighting-example.out
120+
psoc6 cy8ckit_062s2_43012 light \
121+
out/artifacts/infineon-psoc6-light/chip-psoc6-lighting-example.out \
122+
/tmp/bloat_reports/
123+
124+
- name: Build example CYW30739 Apps
125+
timeout-minutes: 30
126+
run: |
127+
./scripts/run_in_build_env.sh \
128+
"./scripts/build/build_examples.py \
129+
--target-glob 'cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor-no-progress-logging}' \
130+
build \
131+
--copy-artifacts-to out/artifacts \
132+
"
133+
- name: Get light size stats
134+
timeout-minutes: 5
135+
run: |
136+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
137+
cyw30739 cyw930739m2evb_01 light \
138+
out/artifacts/cyw30739-cyw930739m2evb_01-light/chip-cyw30739-lighting-example.elf \
139+
/tmp/bloat_reports/
140+
- name: Get lock size stats
141+
timeout-minutes: 5
142+
run: |
143+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
144+
cyw30739 cyw930739m2evb_01 lock \
145+
out/artifacts/cyw30739-cyw930739m2evb_01-lock/chip-cyw30739-lock-example.elf \
146+
/tmp/bloat_reports/
147+
- name: Get ota-requestor size stats
148+
timeout-minutes: 5
149+
run: |
150+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
151+
cyw30739 cyw930739m2evb_01 ota-requestor-no-progress-logging \
152+
out/artifacts/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging/chip-cyw30739-ota-requestor-example.elf \
153+
/tmp/bloat_reports/
118154
- name: Uploading Size Reports
119155
uses: actions/upload-artifact@v2
120156
if: ${{ !env.ACT }}
121157
with:
122-
name: Size,P6-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
158+
name: Size,Infineon-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
123159
path: |
124-
out/infineon-p6-lock/p6-default-lock-app-sizes.json
125-
out/infineon-p6-all-clusters/p6-default-all-clusters-app-sizes.json
126-
out/infineon-p6-all-clusters-minimal/p6-default-all-clusters-minimal-app-sizes.json
127-
out/infineon-p6-light/p6-default-light-app-sizes.json
160+
/tmp/bloat_reports/

0 commit comments

Comments
 (0)