diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index b78540231ed..f01afd7486b 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -251,7 +251,6 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False, # Labels generated from toolchain and target rules/features (used for selective build) self.labels = None - self.has_config = False # config_header_content will hold the content of the config header (if used) self.config_header_content = None @@ -359,10 +358,6 @@ def get_symbols(self): self.symbols = ["TARGET_%s" % t for t in labels['TARGET']] self.symbols.extend(["TOOLCHAIN_%s" % t for t in labels['TOOLCHAIN']]) - # Config support - if self.has_config: - self.symbols.append('HAVE_MBED_CONFIG_H') - # Cortex CPU symbols if self.target.core in mbedToolchain.CORTEX_SYMBOLS: self.symbols.extend(mbedToolchain.CORTEX_SYMBOLS[self.target.core]) @@ -437,8 +432,6 @@ def scan_resources(self, path, exclude_paths=None, base_path=None): base_path = path resources.base_path = base_path - self.has_config = False - """ os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]]) When topdown is True, the caller can modify the dirnames list in-place (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): resources.cpp_sources.append(file_path) elif ext == '.h' or ext == '.hpp': - if basename(file_path) == "mbed_config.h": - self.has_config = True resources.headers.append(file_path) elif ext == '.o': @@ -910,7 +901,7 @@ def set_config_header_content(self, header_content): def get_config_header(self): if self.config_header_content is None: return None - config_file = join(self.build_dir, "mbed_conf.h") + config_file = join(self.build_dir, "mbed_config.h") if not exists(config_file): with open(config_file, "wt") as f: f.write(self.config_header_content)