@@ -2252,7 +2252,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
2252
2252
+ (['-v' ] if verbose else [])
2253
2253
+ args ,
2254
2254
env = env )
2255
-
2255
+
2256
2256
if flash :
2257
2257
fw_name = artifact_name if artifact_name else program .name
2258
2258
fw_fbase = os .path .join (build_path , fw_name )
@@ -2381,10 +2381,11 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2381
2381
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2382
2382
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
2383
2383
dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
2384
+ dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2384
2385
help = 'Generate an IDE project' ,
2385
2386
description = (
2386
2387
"Generate IDE project files for the current program." ))
2387
- def export (ide = None , target = None , source = False , clean = False , supported = False ):
2388
+ def export (ide = None , target = None , source = False , clean = False , supported = False , app_config = None ):
2388
2389
# Gather remaining arguments
2389
2390
args = remainder
2390
2391
# Find the root of the program
@@ -2422,6 +2423,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
2422
2423
+ ['-m' , target ]
2423
2424
+ (['-c' ] if clean else [])
2424
2425
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
2426
+ + (['--app-config' , app_config ] if app_config else [])
2425
2427
+ args ,
2426
2428
env = env )
2427
2429
0 commit comments