mirror of https://github.com/ARMmbed/mbed-os.git
Add hex files to the exporter context.
parent
b2c809ea56
commit
142e014a7f
|
@ -161,10 +161,11 @@ class GccArm(Exporter):
|
||||||
'libraries': libraries,
|
'libraries': libraries,
|
||||||
'symbols': self.get_symbols(),
|
'symbols': self.get_symbols(),
|
||||||
'cpu_flags': self.toolchain.cpu,
|
'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):
|
if isinstance(ctx[key], list):
|
||||||
ctx[key] = [ctx['vpath'][0] + "/" + t for t in ctx[key]]
|
ctx[key] = [ctx['vpath'][0] + "/" + t for t in ctx[key]]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue