@@ -1987,9 +1987,10 @@ def status_(ignore=False):
1987
1987
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
1988
1988
dict (name = ['-N' , '--artifact-name' ], help = 'Name of the built program or library' ),
1989
1989
dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
1990
+ dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
1990
1991
help = 'Compile code using the mbed build tools' ,
1991
1992
description = ("Compile this program using the mbed build tools." ))
1992
- def compile_ (toolchain = None , target = None , options = False , compile_library = False , compile_config = False , config_prefix = None , source = False , build = False , clean = False , artifact_name = None , supported = False ):
1993
+ def compile_ (toolchain = None , target = None , options = False , compile_library = False , compile_config = False , config_prefix = None , source = False , build = False , clean = False , artifact_name = None , supported = False , app_config = None ):
1993
1994
# Gather remaining arguments
1994
1995
args = remainder
1995
1996
# Find the root of the program
@@ -2010,6 +2011,7 @@ def compile_(toolchain=None, target=None, options=False, compile_library=False,
2010
2011
if supported :
2011
2012
popen (['python' , '-u' , os .path .join (tools_dir , 'make.py' )]
2012
2013
+ (['-S' ] if supported else []) + (['-v' ] if very_verbose else [])
2014
+ + (['--app-config' , app_config ] if app_config else [])
2013
2015
+ args ,
2014
2016
env = env )
2015
2017
return
@@ -2056,6 +2058,7 @@ def compile_(toolchain=None, target=None, options=False, compile_library=False,
2056
2058
+ ['--build' , build ]
2057
2059
+ (['-c' ] if clean else [])
2058
2060
+ (['--artifact-name' , artifact_name ] if artifact_name else [])
2061
+ + (['--app-config' , app_config ] if app_config else [])
2059
2062
+ (['-v' ] if verbose else [])
2060
2063
+ args ,
2061
2064
env = env )
0 commit comments