Skip to content

Commit

Permalink
Apply patch from @tl-sl
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 29, 2024
1 parent a97c376 commit ce99bc9
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions tools/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,23 @@ def main():
with (args.build_dir / "gbl_metadata.yaml").open("w") as f:
yaml.dump(manifest["gbl"], f)

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

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

with open(json_path, "wb") as f:
f.write(result.stdout)

# Next, generate a chip-specific project from the modified base project
print(f"Generating project for {manifest['device']}")

Expand Down Expand Up @@ -470,20 +487,6 @@ 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 ce99bc9

Please sign in to comment.