58
58
"*.htm" ,
59
59
60
60
# Settings files
61
+ ".mbed" ,
61
62
"*.settings" ,
62
63
"mbed_settings.py" ,
63
64
@@ -1184,7 +1185,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1184
1185
error ('The mbed-os codebase and tools were not found.' , - 1 )
1185
1186
1186
1187
repo = Repo .fromrepo ()
1187
- file = os .path .join ('.mbed.settings ' )
1188
+ file = os .path .join ('.mbed' )
1188
1189
1189
1190
target = mcu if mcu else get_cfg (file , 'TARGET' )
1190
1191
if target is None :
@@ -1308,7 +1309,7 @@ def export(ide=None, mcu=None):
1308
1309
1309
1310
args = remainder
1310
1311
repo = Repo .fromrepo ()
1311
- file = os .path .join ('.mbed.settings ' )
1312
+ file = os .path .join ('.mbed' )
1312
1313
1313
1314
target = mcu if mcu else get_cfg (file , 'TARGET' )
1314
1315
if target is None :
@@ -1336,7 +1337,7 @@ def target(name=None):
1336
1337
root_path = Repo .findroot (os .getcwd ())
1337
1338
with cd (root_path ):
1338
1339
repo = Repo .fromrepo ()
1339
- file = os .path .join ('.mbed.settings ' )
1340
+ file = os .path .join ('.mbed' )
1340
1341
if name is None :
1341
1342
name = get_cfg (file , 'TARGET' )
1342
1343
action (('The default target for program "%s" is "%s"' % (repo .name , name )) if name else 'No default target is specified for program "%s"' % repo .name )
@@ -1351,7 +1352,7 @@ def toolchain(name=None):
1351
1352
root_path = Repo .findroot (os .getcwd ())
1352
1353
with cd (root_path ):
1353
1354
repo = Repo .fromrepo ()
1354
- file = os .path .join ('.mbed.settings ' )
1355
+ file = os .path .join ('.mbed' )
1355
1356
if name is None :
1356
1357
name = get_cfg (file , 'TOOLCHAIN' )
1357
1358
action (('The default toolchain for program "%s" is "%s"' % (repo .name , name )) if name else 'No default toolchain is specified for program "%s"' % repo .name )
0 commit comments