Skip to content

Commit f6bcbfe

Browse files
authored
Merge pull request #6356 from hug-dev/asm-include-flags
Add include search path when preprocessing assembly files for uvision and make_armc5 exports
2 parents 4840e4d + ebc9289 commit f6bcbfe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/export/makefile/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ def generate(self):
124124
'to_be_compiled']:
125125
ctx[key] = sorted(ctx[key])
126126
ctx.update(self.format_flags())
127+
# Add the virtual path the the include option in the ASM flags
128+
for index, flag in enumerate(ctx['asm_flags']):
129+
if flag.startswith('-I'):
130+
ctx['asm_flags'][index] = "-I" + ctx['vpath'][0] + "/" + ctx['asm_flags'][index][2:]
127131

128132
for templatefile in \
129133
['makefile/%s_%s.tmpl' % (self.TEMPLATE,

tools/export/uvision/uvision.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
<MiscControls>{{asm_flags}}</MiscControls>
395395
<Define></Define>
396396
<Undefine></Undefine>
397-
<IncludePath></IncludePath>
397+
<IncludePath>{{include_paths}}</IncludePath>
398398
</VariousControls>
399399
</Aads>
400400
<LDads>

0 commit comments

Comments
 (0)