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

Add a way to mutate JSON within manifests #85

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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
puddly marked this conversation as resolved.
Show resolved Hide resolved
for json_config in manifest.get("json_config", []):
json_path = args.build_dir / json_config["file"]

subprocess.run(
[
"jq",
puddly marked this conversation as resolved.
Show resolved Hide resolved
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
Loading