Skip to content

Commit a2f21ed

Browse files
noahpkartben
authored andcommitted
west: blobs: fetch --allow-regex filter
When building in CI for specific SOCs, it's useful to only have `west blobs fetch` pull a selected set of blob objects. This is especially helpful on `hal_espressif`, which currently has 78 blob objects. Add a `--allow-regex` arg to the `west blobs fetch` subcommand to filter only specified blobs, for example: ```bash # only download esp32 blobs, skip the other variants ❯ west blobs fetch hal_espressif --allow-regex 'lib/esp32/.*' ``` Also, replace all `str.format()` invocations with f-strings per review feedback. Signed-off-by: Noah Pendleton <[email protected]>
1 parent 46fea6d commit a2f21ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/develop/west/zephyr-cmds.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ Additionally the tool allows you to specify the modules you want to list,
214214
fetch or clean blobs for by typing the module names as a command-line
215215
parameter.
216216

217+
The argument ``--allow-regex`` can be passed ``west blobs fetch`` to restrict
218+
the specific blobs that are fetched, by passing a regular expression::
219+
220+
# For example, only download esp32 blobs, skip the other variants
221+
west blobs fetch hal_espressif --allow-regex 'lib/esp32/.*'
222+
217223
.. _west-twister:
218224

219225
Twister wrapper: ``west twister``

0 commit comments

Comments
 (0)