Skip to content

Commit cd8f583

Browse files
hug-devadbridge
authored andcommitted
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 #6168. Signed-off-by: Hugues de Valon <[email protected]>
1 parent 4611bb6 commit cd8f583

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
@@ -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,

0 commit comments

Comments
 (0)