@@ -251,7 +251,6 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
251
251
# Labels generated from toolchain and target rules/features (used for selective build)
252
252
self .labels = None
253
253
254
- self .has_config = False
255
254
# config_header_content will hold the content of the config header (if used)
256
255
self .config_header_content = None
257
256
@@ -359,10 +358,6 @@ def get_symbols(self):
359
358
self .symbols = ["TARGET_%s" % t for t in labels ['TARGET' ]]
360
359
self .symbols .extend (["TOOLCHAIN_%s" % t for t in labels ['TOOLCHAIN' ]])
361
360
362
- # Config support
363
- if self .has_config :
364
- self .symbols .append ('HAVE_MBED_CONFIG_H' )
365
-
366
361
# Cortex CPU symbols
367
362
if self .target .core in mbedToolchain .CORTEX_SYMBOLS :
368
363
self .symbols .extend (mbedToolchain .CORTEX_SYMBOLS [self .target .core ])
@@ -437,8 +432,6 @@ def scan_resources(self, path, exclude_paths=None, base_path=None):
437
432
base_path = path
438
433
resources .base_path = base_path
439
434
440
- self .has_config = False
441
-
442
435
""" os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]])
443
436
When topdown is True, the caller can modify the dirnames list in-place
444
437
(perhaps using del or slice assignment), and walk() will only recurse into
@@ -512,8 +505,6 @@ def scan_resources(self, path, exclude_paths=None, base_path=None):
512
505
resources .cpp_sources .append (file_path )
513
506
514
507
elif ext == '.h' or ext == '.hpp' :
515
- if basename (file_path ) == "mbed_config.h" :
516
- self .has_config = True
517
508
resources .headers .append (file_path )
518
509
519
510
elif ext == '.o' :
@@ -910,7 +901,7 @@ def set_config_header_content(self, header_content):
910
901
def get_config_header (self ):
911
902
if self .config_header_content is None :
912
903
return None
913
- config_file = join (self .build_dir , "mbed_conf .h" )
904
+ config_file = join (self .build_dir , "mbed_config .h" )
914
905
if not exists (config_file ):
915
906
with open (config_file , "wt" ) as f :
916
907
f .write (self .config_header_content )
0 commit comments