Skip to content

Commit 35be105

Browse files
authored
Merge pull request #1968 from screamerbg/rename-mbed-config
Rename mbed_conf.h to mbed_config.h
2 parents 5782dd9 + 541c478 commit 35be105

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
251251
# Labels generated from toolchain and target rules/features (used for selective build)
252252
self.labels = None
253253

254-
self.has_config = False
255254
# config_header_content will hold the content of the config header (if used)
256255
self.config_header_content = None
257256

@@ -359,10 +358,6 @@ def get_symbols(self):
359358
self.symbols = ["TARGET_%s" % t for t in labels['TARGET']]
360359
self.symbols.extend(["TOOLCHAIN_%s" % t for t in labels['TOOLCHAIN']])
361360

362-
# Config support
363-
if self.has_config:
364-
self.symbols.append('HAVE_MBED_CONFIG_H')
365-
366361
# Cortex CPU symbols
367362
if self.target.core in mbedToolchain.CORTEX_SYMBOLS:
368363
self.symbols.extend(mbedToolchain.CORTEX_SYMBOLS[self.target.core])
@@ -437,8 +432,6 @@ def scan_resources(self, path, exclude_paths=None, base_path=None):
437432
base_path = path
438433
resources.base_path = base_path
439434

440-
self.has_config = False
441-
442435
""" os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]])
443436
When topdown is True, the caller can modify the dirnames list in-place
444437
(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):
512505
resources.cpp_sources.append(file_path)
513506

514507
elif ext == '.h' or ext == '.hpp':
515-
if basename(file_path) == "mbed_config.h":
516-
self.has_config = True
517508
resources.headers.append(file_path)
518509

519510
elif ext == '.o':
@@ -910,7 +901,7 @@ def set_config_header_content(self, header_content):
910901
def get_config_header(self):
911902
if self.config_header_content is None:
912903
return None
913-
config_file = join(self.build_dir, "mbed_conf.h")
904+
config_file = join(self.build_dir, "mbed_config.h")
914905
if not exists(config_file):
915906
with open(config_file, "wt") as f:
916907
f.write(self.config_header_content)

0 commit comments

Comments
 (0)