Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Air Purifier example to cc32xx build scripts and CI #29942

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/examples-cc32xx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target cc32xx-lock build \
--target cc32xx-lock --target cc32xx-air-purifier build \
--copy-artifacts-to out/artifacts \
"
- name: Get lock app size stats
Expand All @@ -67,6 +67,13 @@ jobs:
out/artifacts/cc32xx-lock/chip-CC3235SF_LAUNCHXL-lock-example.out \
/tmp/bloat_reports/
- name: Get air purifier app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
cc32xx CC3235SF_LAUNCHXL air-purifier \
out/artifacts/cc32xx-air-purifier/chip-CC3235SF_LAUNCHXL-air-purifier-example.out \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def Buildcc32xxTarget():
# apps
target.AppendFixedTargets([
TargetPart('lock', app=cc32xxApp.LOCK),
TargetPart('air-purifier', app=cc32xxApp.AIR_PURIFIER),

])

Expand Down
7 changes: 7 additions & 0 deletions scripts/build/builders/cc32xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@

class cc32xxApp(Enum):
LOCK = auto()
AIR_PURIFIER = auto()

def ExampleName(self):
if self == cc32xxApp.LOCK:
return 'lock-app'
elif self == cc32xxApp.AIR_PURIFIER:
return 'air-purifier-app'
else:
raise Exception('Unknown app type: %r' % self)

def AppNamePrefix(self):
if self == cc32xxApp.LOCK:
return 'chip-CC3235SF_LAUNCHXL-lock-example'
elif self == cc32xxApp.AIR_PURIFIER:
return 'chip-CC3235SF_LAUNCHXL-air-purifier-example'
else:
raise Exception('Unknown app type: %r' % self)

Expand Down Expand Up @@ -60,6 +65,8 @@ def build_outputs(self):
items = {}
if (self.app == cc32xxApp.LOCK):
extensions = [".out", ".bin", ".out.map"]
elif (self.app == cc32xxApp.AIR_PURIFIER):
extensions = [".out", ".bin", ".out.map"]

else:
raise Exception('Unknown app type: %r' % self.app)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ameba-amebad-{all-clusters,all-clusters-minimal,light,light-switch,pigweed}
asr-{asr582x,asr595x,asr550x}-{all-clusters,all-clusters-minimal,lighting,light-switch,lock,bridge,temperature-measurement,thermostat,ota-requestor,dishwasher,refrigerator}[-ota][-shell][-no_logging][-factory][-rotating_id][-rio]
android-{arm,arm64,x86,x64,androidstudio-arm,androidstudio-arm64,androidstudio-x86,androidstudio-x64}-{chip-tool,chip-test,tv-server,tv-casting-app,java-matter-controller,kotlin-matter-controller,virtual-device-app}[-no-debug]
bouffalolab-{bl602-iot-matter-v1,bl602-night-light,xt-zb6-devkit,bl706-night-light,bl706dk,bl704ldk}-light[-shell][-115200][-rpc][-cdc][-resetcnt][-rotating_device_id][-mfd][-mfdtest][-ethernet][-wifi][-thread][-fp][-memmonitor][-mot]
cc32xx-lock
cc32xx-{lock,air-purifier}
ti-cc13x2x7_26x2x7-{lighting,lock,pump,pump-controller}[-mtd]
ti-cc13x4_26x4-{all-clusters,lighting,lock,pump,pump-controller}[-mtd][-ftd]
cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor,switch}
Expand Down
Loading