@@ -2246,7 +2246,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
2246
2246
+ (['-v' ] if verbose else [])
2247
2247
+ args ,
2248
2248
env = env )
2249
-
2249
+
2250
2250
if flash :
2251
2251
fw_name = artifact_name if artifact_name else program .name
2252
2252
fw_fbase = os .path .join (build_path , fw_name )
@@ -2375,10 +2375,11 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2375
2375
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2376
2376
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
2377
2377
dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
2378
+ dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2378
2379
help = 'Generate an IDE project' ,
2379
2380
description = (
2380
2381
"Generate IDE project files for the current program." ))
2381
- def export (ide = None , target = None , source = False , clean = False , supported = False ):
2382
+ def export (ide = None , target = None , source = False , clean = False , supported = False , app_config = None ):
2382
2383
# Gather remaining arguments
2383
2384
args = remainder
2384
2385
# Find the root of the program
@@ -2416,6 +2417,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
2416
2417
+ ['-m' , target ]
2417
2418
+ (['-c' ] if clean else [])
2418
2419
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
2420
+ + (['--app-config' , app_config ] if app_config else [])
2419
2421
+ args ,
2420
2422
env = env )
2421
2423
0 commit comments