mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6356 from hug-dev/asm-include-flags
Add include search path when preprocessing assembly files for uvision and make_armc5 exportspull/6260/merge
commit
f6bcbfe1f0
|
@ -124,6 +124,10 @@ class Makefile(Exporter):
|
|||
'to_be_compiled']:
|
||||
ctx[key] = sorted(ctx[key])
|
||||
ctx.update(self.format_flags())
|
||||
# Add the virtual path the the include option in the ASM flags
|
||||
for index, flag in enumerate(ctx['asm_flags']):
|
||||
if flag.startswith('-I'):
|
||||
ctx['asm_flags'][index] = "-I" + ctx['vpath'][0] + "/" + ctx['asm_flags'][index][2:]
|
||||
|
||||
for templatefile in \
|
||||
['makefile/%s_%s.tmpl' % (self.TEMPLATE,
|
||||
|
|
|
@ -394,7 +394,7 @@
|
|||
<MiscControls>{{asm_flags}}</MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
<IncludePath>{{include_paths}}</IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
|
|
Loading…
Reference in New Issue