mirror of https://github.com/ARMmbed/mbed-os.git
Fix Uvision CPU type error for DP and FPU targets.
parent
b1c8aac25e
commit
2a907d296d
|
@ -130,7 +130,8 @@ class Uvision(Exporter):
|
||||||
'device': DeviceUvision(self.target),
|
'device': DeviceUvision(self.target),
|
||||||
}
|
}
|
||||||
# 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() else 2
|
ctx['fpu_setting'] = 1 if 'f' not in ctx['device'].core.lower() \
|
||||||
|
or 'd' in ctx['device'].core.lower() else 2
|
||||||
ctx.update(self.format_flags())
|
ctx.update(self.format_flags())
|
||||||
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
|
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@
|
||||||
<AdsLsxf>1</AdsLsxf>
|
<AdsLsxf>1</AdsLsxf>
|
||||||
<RvctClst>0</RvctClst>
|
<RvctClst>0</RvctClst>
|
||||||
<GenPPlst>0</GenPPlst>
|
<GenPPlst>0</GenPPlst>
|
||||||
<AdsCpuType>"{{device.core}}"</AdsCpuType>
|
<AdsCpuType>"{{device.core.replace("D","").replace("F","")}}"</AdsCpuType>
|
||||||
<RvctDeviceName></RvctDeviceName>
|
<RvctDeviceName></RvctDeviceName>
|
||||||
<mOS>0</mOS>
|
<mOS>0</mOS>
|
||||||
<uocRom>0</uocRom>
|
<uocRom>0</uocRom>
|
||||||
|
|
Loading…
Reference in New Issue