Skip to content

Commit

Permalink
Support override of memory_bank_config in mbed_app.json
Browse files Browse the repository at this point in the history
memory_bank_config can be defined in targets.json or custom_targets.json
per-target, but cannot by application. This enables this override by
adding "target.memory_bank_config" config in target_overrides section of
mbed_app.json as usual.
  • Loading branch information
ccli8 committed Nov 15, 2024
1 parent 0a36502 commit ddeedfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/python/mbed_tools/build/_internal/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ def _handle_overrides(self, overrides: Iterable[Override]) -> None:
_apply_override(self.data, override)
continue

# Support override of memory_bank_config in mbed_app.json
if override.namespace == "target" and override.name == "memory_bank_config":
_apply_override(self.data, override)
continue

setting = next(
filter(
lambda x: x.name == override.name and x.namespace == override.namespace,
Expand Down

0 comments on commit ddeedfc

Please sign in to comment.