Skip to content

Commit 6b72ede

Browse files
committed
Add ASM flags virtual path for make export
When exporting a mbed project to make_armc5, the include options (-I) of the ASM flags are not pointing to the good folder. It should be pointing to the root mbed-os folder and not the one in BUILD. This issue was found in the pull request ARMmbed#6168. Signed-off-by: Hugues de Valon <[email protected]>
1 parent af46177 commit 6b72ede

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/export/makefile/__init__.py

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

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

0 commit comments

Comments
 (0)