You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,20 @@ After running the `bootstrap.sh` script, you can symlink the core to `$sketchboo
181
181
182
182
## 🚀 Adding a new target
183
183
184
+
> [!TIP]
185
+
>
186
+
> While Zephyr supports a lot of different hardware targets, only the few
187
+
> currently used by the Arduino core are installed by default. To add the
188
+
> support for every Zephyr target to your workspace, run the following
189
+
> commands:
190
+
>
191
+
> ```bash
192
+
>. venv/bin/activate
193
+
> west config -d manifest.project-filter
194
+
> west sdk install --version 0.17.0
195
+
> west update
196
+
>```
197
+
184
198
To add a new board that is already supported by mainline Zephyr with the target `$your_board`, follow these steps:
185
199
186
200
* Get the variant name from your board by running `extra/get_variant_name.sh $your_board`.
@@ -195,7 +209,10 @@ To add a new board that is already supported by mainline Zephyr with the target
195
209
* Build the Loader: run `./extra/build.sh $your_board` (with any additional arguments as required) and start debugging the errors. :grin:
196
210
* Update the `boards.txt`: add an entry for your board, manually filling the required fields.
197
211
198
-
In particular, set `build.zephyr_target` and `build.zephyr_args` to the arguments used in the `build.sh` call, and `build.variant` to the variant name identified above.
212
+
In particular, set:
213
+
*`build.zephyr_target` and `build.zephyr_args` to the arguments used in the `build.sh` call;
214
+
*`build.zephyr_hal` to the HAL required by the board;
215
+
*`build.variant` to the variant name identified above;
199
216
* Implement touch support: if your board supports the "1200bps touch" method, implement `_on_1200_bps`in a file located inside the variant folder of your board.
0 commit comments