@@ -315,13 +315,11 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
315
315
name = basename (normpath (abspath (src_paths [0 ])))
316
316
317
317
# Call unified scan_resources
318
- resource_dict = {loc : scan_resources (path , toolchain , inc_dirs = inc_dirs , collect_ignores = True )
318
+ resource_dict = {loc : sum ((toolchain .scan_resources (p , collect_ignores = True )
319
+ for p in path ),
320
+ Resources ())
319
321
for loc , path in src_paths .items ()}
320
322
resources = Resources ()
321
- toolchain .build_dir = export_path
322
- config_header = toolchain .get_config_header ()
323
- resources .headers .append (config_header )
324
- resources .file_basepath [config_header ] = dirname (config_header )
325
323
326
324
if zip_proj :
327
325
subtract_basepath (resources , "." )
@@ -333,6 +331,13 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
333
331
for _ , res in resource_dict .items ():
334
332
resources .add (res )
335
333
334
+ toolchain .build_dir = export_path
335
+ toolchain .config .load_resources (resources )
336
+ toolchain .set_config_data (toolchain .config .get_config_data ())
337
+ config_header = toolchain .get_config_header ()
338
+ resources .headers .append (config_header )
339
+ resources .file_basepath [config_header ] = dirname (config_header )
340
+
336
341
# Change linker script if specified
337
342
if linker_script is not None :
338
343
resources .linker_script = linker_script
0 commit comments