Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/zephyr_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,15 @@ def main():
# if user is providing a specific modules list.
from west.manifest import Manifest
from west.util import WestNotFound
from west.version import __version__ as WestVersion
from packaging import version
try:
manifest = Manifest.from_file()
projects = [p.posixpath for p in manifest.get_projects([])]
if version.parse(WestVersion) >= version.parse('0.9.0'):
projects = [p.posixpath for p in manifest.get_projects([])
if manifest.is_active(p)]
else:
projects = [p.posixpath for p in manifest.get_projects([])]
except WestNotFound:
# Only accept WestNotFound, meaning we are not in a west
# workspace. Such setup is allowed, as west may be installed
Expand Down