mirror of https://github.com/ARMmbed/mbed-os.git
Add core to uvision exporter template
Strip trailing F's and D's off of the Cputype in uvisionpull/3661/head
parent
450701f211
commit
eadbe71d58
|
|
@ -197,6 +197,7 @@ class Uvision(Exporter):
|
||||||
'include_paths': '; '.join(self.resources.inc_dirs).encode('utf-8'),
|
'include_paths': '; '.join(self.resources.inc_dirs).encode('utf-8'),
|
||||||
'device': DeviceUvision(self.target),
|
'device': DeviceUvision(self.target),
|
||||||
}
|
}
|
||||||
|
ctx['cputype'] = ctx['device'].core.rstrip("FD")
|
||||||
# Turn on FPU optimizations if the core has an FPU
|
# Turn on FPU optimizations if the core has an FPU
|
||||||
ctx['fpu_setting'] = 1 if 'f' not in ctx['device'].core.lower() \
|
ctx['fpu_setting'] = 1 if 'f' not in ctx['device'].core.lower() \
|
||||||
or 'd' in ctx['device'].core.lower() else 2
|
or 'd' in ctx['device'].core.lower() else 2
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<Vendor>{{device.dvendor}}</Vendor>
|
<Vendor>{{device.dvendor}}</Vendor>
|
||||||
<PackID>{{device.pack_id}}</PackID>
|
<PackID>{{device.pack_id}}</PackID>
|
||||||
<PackURL>{{device.pack_url}}</PackURL>
|
<PackURL>{{device.pack_url}}</PackURL>
|
||||||
<Cpu></Cpu>
|
<Cpu>CPUTYPE("{{cputype}}")</Cpu>
|
||||||
<FlashUtilSpec></FlashUtilSpec>
|
<FlashUtilSpec></FlashUtilSpec>
|
||||||
<StartupFile></StartupFile>
|
<StartupFile></StartupFile>
|
||||||
<FlashDriverDll>{{device.flash_dll}}</FlashDriverDll>
|
<FlashDriverDll>{{device.flash_dll}}</FlashDriverDll>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue