Skip to content

Commit

Permalink
build_sdk: add contents LICENSES directory to SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Sep 13, 2023
1 parent f4d8059 commit 36bf39b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,17 @@ def main() -> None:
dr.mkdir(exist_ok=True, parents=True)

copy(Path("LICENSE.md"), root_dir)
licenses_dir = Path("LICENSES")
licenses_dest_dir = root_dir / "LICENSES"
for p in licenses_dir.rglob("*"):
if not p.is_file():
continue
rel = p.relative_to(licenses_dir)
dest = licenses_dest_dir / rel
dest.parent.mkdir(exist_ok=True, parents=True)
dest.unlink(missing_ok=True)
copy(p, dest)
dest.chmod(0o444)

tool_target = root_dir / "bin" / "microkit"

Expand Down

0 comments on commit 36bf39b

Please sign in to comment.