Add hex files to the exporter context.

pull/2345/head
Vincent Coubard 2016-08-02 21:33:26 +01:00
parent b2c809ea56
commit 142e014a7f
1 changed files with 3 additions and 2 deletions

View File

@ -161,10 +161,11 @@ class GccArm(Exporter):
'libraries': libraries,
'symbols': self.get_symbols(),
'cpu_flags': self.toolchain.cpu,
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else [".."]
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else [".."],
'hex_files': self.resources.hex_files
}
for key in ['include_paths', 'library_paths', 'linker_script']:
for key in ['include_paths', 'library_paths', 'linker_script', 'hex_files']:
if isinstance(ctx[key], list):
ctx[key] = [ctx['vpath'][0] + "/" + t for t in ctx[key]]
else: