Skip to content

Commit 09da3c1

Browse files
committed
Update exporters to include the generated mbed_conf.h
1 parent a07a118 commit 09da3c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/export/exporters.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __init__(self, target, inputDir, program_name, build_url_resolver, extra_sym
3535
self.jinja_environment = Environment(loader=jinja_loader)
3636
self.extra_symbols = extra_symbols
3737
self.config_macros = []
38+
self.config_header = None
3839

3940
def get_toolchain(self):
4041
return self.TOOLCHAIN
@@ -168,7 +169,10 @@ def scan_and_copy_resources(self, prj_paths, trg_path, relative=False):
168169

169170
# And add the configuration macros to the toolchain
170171
self.config_macros = config.get_config_data_macros()
171-
172+
173+
# Add the configuration file to the target directory
174+
self.config_header = "mbed_conf.h"
175+
cfg.get_config_data_header(join(trg_path, self.config_header))
172176
# Check the existence of a binary build of the mbed library for the desired target
173177
# This prevents exporting the mbed libraries from source
174178
# if not self.toolchain.mbed_libs:

0 commit comments

Comments
 (0)