File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,20 @@ def get_board_mapping():
109
109
extensions = extension_by_port [port ]
110
110
extensions = extension_by_board .get (board_path .name , extensions )
111
111
aliases = aliases_by_board .get (board_path .name , [])
112
+ frozen_libraries = []
113
+ with open (os .path .join (board_path , "mpconfigboard.mk" )) as mpconfig :
114
+ frozen_lines = [
115
+ line for line in mpconfig if line .startswith ("FROZEN_MPY_DIRS" )
116
+ ]
117
+ frozen_libraries .extend (
118
+ [line [line .rfind ("/" ) + 1 :].strip () for line in frozen_lines ]
119
+ )
112
120
boards [board_id ] = {
113
121
"port" : port ,
114
122
"extensions" : extensions ,
115
123
"download_count" : 0 ,
116
124
"aliases" : aliases ,
125
+ "frozen_libraries" : frozen_libraries ,
117
126
}
118
127
for alias in aliases :
119
128
boards [alias ] = {
@@ -300,6 +309,7 @@ def generate_download_info():
300
309
"modules" : support_matrix [alias ],
301
310
"languages" : languages ,
302
311
"extensions" : board_info ["extensions" ],
312
+ "frozen_libraries" : board_info ["frozen_libraries" ],
303
313
}
304
314
current_info [alias ]["downloads" ] = alias_info ["download_count" ]
305
315
current_info [alias ]["versions" ].append (new_version )
You can’t perform that action at this time.
0 commit comments