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

Fix K32W build rules (ToT CI failure) #23126

Merged
merged 2 commits into from
Oct 11, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target k32w-light \
--target k32w-light-no-ble-se05x \
--target k32w-light-no-ota \
--target k32w-lock-low-power-nologs \
--target k32w-contact-low-power-nologs \
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/build/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

from collections.abc import Iterable
from dataclasses import dataclass
from typing import Any, Optional
from typing import Any, Dict, Optional


@dataclass(init=False)
Expand All @@ -54,7 +54,7 @@ class TargetPart:
name: str

# The build arguments to apply to a builder if this part is active
build_arguments: dict[str, Any]
build_arguments: Dict[str, Any]

# Part should be included if and only if the final string MATCHES the
# given regular expression
Expand Down
2 changes: 2 additions & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ def BuildK32WTarget():
TargetPart('contact', app=K32WApp.CONTACT, release=True),
])

target.AppendModifier(name="se05x", se05x=True)
target.AppendModifier(name="no-ble", disable_ble=True)
target.AppendModifier(name="no-ota", disable_ota=True)
target.AppendModifier(name="low-power", low_power=True).OnlyIfRe("-nologs")
target.AppendModifier(name="nologs", disable_logs=True)
Expand Down