Skip to content

Commit 4f29483

Browse files
committed
Update exporters to include the generated mbed_conf.h
1 parent f7ad7d2 commit 4f29483

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
@@ -36,6 +36,7 @@ def __init__(self, target, inputDir, program_name, build_url_resolver, extra_sym
3636
self.extra_symbols = extra_symbols
3737
self.config_macros = []
3838
self.sources_relative = sources_relative
39+
self.config_header = None
3940

4041
def get_toolchain(self):
4142
return self.TOOLCHAIN
@@ -169,7 +170,10 @@ def scan_and_copy_resources(self, prj_paths, trg_path, relative=False):
169170

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

0 commit comments

Comments
 (0)