mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1968 from screamerbg/rename-mbed-config
Rename mbed_conf.h to mbed_config.hpull/1981/head
commit
35be1051b8
|
@ -251,7 +251,6 @@ class mbedToolchain:
|
|||
# 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 @@ class mbedToolchain:
|
|||
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 @@ class mbedToolchain:
|
|||
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 @@ class mbedToolchain:
|
|||
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 @@ class mbedToolchain:
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue