Skip to content

Commit 142e014

Browse files
committed
Add hex files to the exporter context.
1 parent b2c809e commit 142e014

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/export/gccarm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,11 @@ def generate(self):
161161
'libraries': libraries,
162162
'symbols': self.get_symbols(),
163163
'cpu_flags': self.toolchain.cpu,
164-
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else [".."]
164+
'vpath': [relpath(s, build_dir) for s in self.prj_paths] if self.sources_relative else [".."],
165+
'hex_files': self.resources.hex_files
165166
}
166167

167-
for key in ['include_paths', 'library_paths', 'linker_script']:
168+
for key in ['include_paths', 'library_paths', 'linker_script', 'hex_files']:
168169
if isinstance(ctx[key], list):
169170
ctx[key] = [ctx['vpath'][0] + "/" + t for t in ctx[key]]
170171
else:

0 commit comments

Comments
 (0)