Skip to content

Commit

Permalink
Add a way to mutate JSON within manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 22, 2024
1 parent 5055f0d commit a97c376
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,20 @@ def main():
LOGGER.error("Defines were unused, aborting: %s", unused_defines)
sys.exit(1)

# JSON config
for json_config in manifest.get("json_config", []):
json_path = args.build_dir / json_config["file"]

subprocess.run(
[
"jq",
json_config["jq"],
json_path,
json_path,
],
check=True,
)

# Fix Gecko SDK bugs
sl_rail_util_pti_config_h = args.build_dir / "config/sl_rail_util_pti_config.h"

Expand Down

0 comments on commit a97c376

Please sign in to comment.