@@ -1987,9 +1987,10 @@ def status_(ignore=False):
19871987 dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
19881988 dict (name = ['-N' , '--artifact-name' ], help = 'Name of the built program or library' ),
19891989 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')" ),
19901991 help = 'Compile code using the mbed build tools' ,
19911992 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 ):
19931994 # Gather remaining arguments
19941995 args = remainder
19951996 # Find the root of the program
@@ -2010,6 +2011,7 @@ def compile_(toolchain=None, target=None, options=False, compile_library=False,
20102011 if supported :
20112012 popen (['python' , '-u' , os .path .join (tools_dir , 'make.py' )]
20122013 + (['-S' ] if supported else []) + (['-v' ] if very_verbose else [])
2014+ + (['--app-config' , app_config ] if app_config else [])
20132015 + args ,
20142016 env = env )
20152017 return
@@ -2056,6 +2058,7 @@ def compile_(toolchain=None, target=None, options=False, compile_library=False,
20562058 + ['--build' , build ]
20572059 + (['-c' ] if clean else [])
20582060 + (['--artifact-name' , artifact_name ] if artifact_name else [])
2061+ + (['--app-config' , app_config ] if app_config else [])
20592062 + (['-v' ] if verbose else [])
20602063 + args ,
20612064 env = env )
0 commit comments