mirror of https://github.com/ARMmbed/mbed-os.git
Updated makefile exporter to not rely on enumerating over map.
No longer supported in Py3.pull/7111/head
parent
80dde0b953
commit
5ed8ad8ffe
|
@ -124,10 +124,10 @@ class Makefile(Exporter):
|
||||||
'to_be_compiled']:
|
'to_be_compiled']:
|
||||||
ctx[key] = sorted(ctx[key])
|
ctx[key] = sorted(ctx[key])
|
||||||
ctx.update(self.format_flags())
|
ctx.update(self.format_flags())
|
||||||
|
|
||||||
# Add the virtual path the the include option in the ASM flags
|
# Add the virtual path the the include option in the ASM flags
|
||||||
for index, flag in enumerate(ctx['asm_flags']):
|
ctx['asm_flags'] = map(lambda item: "-I" + ctx['vpath'][0] + "/" + item[2:]
|
||||||
if flag.startswith('-I'):
|
if item.startswith('-I') else item, ctx['asm_flags'])
|
||||||
ctx['asm_flags'][index] = "-I" + ctx['vpath'][0] + "/" + ctx['asm_flags'][index][2:]
|
|
||||||
|
|
||||||
for templatefile in \
|
for templatefile in \
|
||||||
['makefile/%s_%s.tmpl' % (self.TEMPLATE,
|
['makefile/%s_%s.tmpl' % (self.TEMPLATE,
|
||||||
|
|
Loading…
Reference in New Issue