-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
RFC: manifest: Add finegrained group filters #57225
Conversation
@marc-hb has previously shown that treeless clones are a good way to decrease the size of the default workspace: zephyrproject-rtos/west#638 If we're going to chase something like this, I think it'd make sense to start there, using features built into git. If those are not good enough for known reasons, then I think it makes sense to think about something like this, or extending west to add other ways to deactivate projects. |
Thanks @mbolivar-nordic. Are you thinking we should guide in the documentation users to do something like A |
I just measured
Also, TBH I don't understand why the default manifest has all repos enabled by default, this looks like some (misplaced?) convenience for CI. It should have only the repos needed by the official tutorial(s) enabled by default. |
Several users are not happy about the size of a default zephyr workspace, and about the means they have to select which projects they have locally. Add more fine grained groups (one per project), to enable them to locally select which they want. Users will still get the "default" group by default. But if they want a small subset they can do west config manifest.group-filter -- "-default, +proj_x, +proj_y" Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
How the PR is right now (fcdc676)
And end up with 1.1 GB instead of 4.2GB, and a workable workspace. |
west now supports project filters, including filtering with regular expressions matching project names. That provides users the type of functionality this hoped for without this kind of workaround. |
This is not so much a real PR at this point, as much as a trigger to discuss about better project filtering in the default Zephyr manifest, and a proposal for a possible direction.
How this commit is, I just left the old groups there just renamed to hal_all, tools_all, fs_all, crypto_all, debug_all, tee_all, but those groupings don't seem specially useful.
It would make sense to have other sets (disabled by default) based on real use-cases, like "I want to develop for NXP platforms", or "for Nordic platforms".
Related:
This is the size of a workspace today (6a92ebf) after a plain west init + west update