-
Notifications
You must be signed in to change notification settings - Fork 644
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
[nrf noup] scripts: west: build: Use sysbuild by default if in NCS dir #1713
Conversation
Uses sysbuild by default when building an application which resides in an allowed NCS-based directory when the sysbuild config key is not set Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quick glance.
I don't see the need to go though zephyr_module.py, just fetch the manifest projects directly.
@@ -9,6 +9,11 @@ | |||
import sys | |||
import yaml | |||
|
|||
from pathlib import Path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pathlib is already imported above:
import pathlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not work without this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does, you just have to use pathlib.Path(...)
instead of Path(...)
.
from pathlib import Path | ||
from zephyr_ext_common import ZEPHYR_BASE | ||
sys.path.append(os.fspath(Path(__file__).parent.parent)) | ||
import zephyr_module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why importing zephyr_module
and not the native Manifest provided by west
?
like this:
from west.manifest import Manifest
and then simply fetch the projects using a manifest.get_projects([])
call ?
iirc you can even pass list of project to return, like:
manifest.get_projects([allow_list])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this does not work with optional modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does not work ?
Modules passed with -DEXTRA_ZEPHYR_MODULES
?
Or inactive Zephyr projects ?
The manifest.get_projects([])
should return projects if they are active.
Has been moved to #1706 |
Uses sysbuild by default when building an application which resides in an allowed NCS-based directory when the sysbuild config key is not set