-
-
Notifications
You must be signed in to change notification settings - Fork 17
bootstrap.sh: limit Zephyr HALs by default #126
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
Conversation
2b8337c
to
a3b2c39
Compare
This reworks the current west.yml and bootstrap.sh so that only the HALs used by the Arduino core are installed by default. The list is directly taken from boards.txt, where each board has a 'zephyr_hal' entry. Since the HALs not named in the allowlist are discarded at Zephyr import time, an explicit list makes it impossible to later install every HAL. Instead, allow all HALs by path, then filter them by group using the 'manifest.project-filter' config that is automatically set by bootstrap.sh. This allows to enable all HALs, if needed, by simply removing the filter.
@KurtE @mjs513 this includes a change at
or, to convert an existing workspace:
|
@pillo79 - On my windows machine (in WSL), I think I did your 2nd option and then did a ./extra/build_all.sh And it failed on:
|
🤦♂️ my bad, sorry, forgot one bit on the above instructions - |
Just did a clean install (should include @facchinm latest changes). Interesting install process now with the modules fpr example:
I am running WSL on a Win 11 machine and I tend to run into issues when building - like board failing to compile on first try but then builds on second - so probably an issue with WSL. Anyways - build_all failed for the giga but when I built again using just build,sh giga built no issue. doing a build_all again giga built but failed on building OPTA. This is really more of an FYI |
This reworks the current
west.yml
andbootstrap.sh
so that only the HALs used by the Arduino core are installed by default.Since those not named in the allowlist are discarded during the Zephyr import, it is impossible to allow the option to install every HAL that way. Instead, allow all HALs by path, then filter them by group using the
manifest.project-filter
config that is automatically set bybootstrap.sh
. This allows to enable all HALs, if needed, by simply removing the filter.