Commit ec18545
committed
scripts: west_commands: blobs: support ZEPHYR_BLOBS_CACHE
In environment variable `ZEPHYR_BLOBS_CACHE` one or more directories
(separated by `;`) can be specified. `west blobs fetch` will search in
these folders for according file and copy it if it exists. If only one
directory was given, it will automatically fill the cache by fetching
the blob to this cache dir (with prefixed sha256 hashsum) and
subsequently copy the file to the blobs path. Otherwise it fetches the
blob as usual directly to the blobs path.
Signed-off-by: Thorsten Klein <[email protected]>1 parent 4758cfa commit ec18545
1 file changed
+35
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
125 | 146 | | |
126 | 147 | | |
127 | 148 | | |
128 | 149 | | |
129 | 150 | | |
130 | 151 | | |
131 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
132 | 161 | | |
133 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
134 | 166 | | |
135 | 167 | | |
136 | 168 | | |
| |||
200 | 232 | | |
201 | 233 | | |
202 | 234 | | |
203 | | - | |
| 235 | + | |
204 | 236 | | |
205 | 237 | | |
206 | 238 | | |
| |||
0 commit comments