Skip to content

Commit

Permalink
pw_package: Handle windows Zephyr SDK setup
Browse files Browse the repository at this point in the history
Handle windows Zephyr SDK setup

Change-Id: I35ed17442f6cf3f7bab28326c65b17f62c1a6c6e
Signed-off-by: Al Semjonovs <[email protected]>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/157030
Reviewed-by: Anthony DiGirolamo <[email protected]>
  • Loading branch information
asemjonovs authored and CQ Bot Account committed Jul 19, 2023
1 parent 9f7c583 commit cb88bf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pw_package/py/pw_package/packages/zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import importlib.resources
import json
import pathlib
import os
import subprocess
import sys
import tempfile
Expand Down Expand Up @@ -79,7 +80,7 @@ def __populate_download_cache_from_cipd(path: pathlib.Path) -> None:
"cipd",
"init",
"-force",
core_cache_path.as_posix(),
str(core_cache_path),
]
)
# Install the Zephyr SDK
Expand All @@ -89,14 +90,15 @@ def __populate_download_cache_from_cipd(path: pathlib.Path) -> None:
"install",
cipd_package_subpath,
"-root",
core_cache_path.as_posix(),
str(core_cache_path),
"-force",
]
)
# Setup Zephyr SDK
setup_file = "setup.cmd" if os.name == "nt" else "setup.sh"
subprocess.check_call(
[
(core_cache_path / "setup.sh").as_posix(),
str(core_cache_path / setup_file),
"-t",
"all",
"-c",
Expand Down

0 comments on commit cb88bf3

Please sign in to comment.