Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork28
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
2b8337c
toa3b2c39
CompareThis reworks the current west.yml and bootstrap.sh so that only the HALsused by the Arduino core are installed by default. The list is directlytaken from boards.txt, where each board has a 'zephyr_hal' entry.Since the HALs not named in the allowlist are discarded at Zephyr importtime, 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 bybootstrap.sh. This allows to enable all HALs, if needed, by simplyremoving the filter.
f2300ea
intoarduino:arduinoUh oh!
There was an error while loading.Please reload this page.
pillo79 commentedMay 21, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@KurtE@mjs513 this includes a change at
or, to convert an existing workspace:
|
KurtE commentedMay 21, 2025
@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 - |
mjs513 commentedMay 21, 2025
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.