Skip to content

Commit d3cf5fb

Browse files
authored
Merge pull request #4445 from theotherjimmy/fix-exporters
Fixes for exporter issues
2 parents 9d9ef18 + 603ef3d commit d3cf5fb

File tree

13 files changed

+8
-9
lines changed

13 files changed

+8
-9
lines changed

tools/export/gnuarmeclipse/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,13 @@ def generate(self):
202202
print 'Build configuration: {0}'.format(opts['name'])
203203

204204
profile = profiles[id]
205-
profile_toolchain = profile[self.TOOLCHAIN]
206205

207206
# A small hack, do not bother with src_path again,
208207
# pass an empty string to avoid crashing.
209208
src_paths = ['']
210209
target_name = self.toolchain.target.name
211210
toolchain = prepare_toolchain(
212-
src_paths, "", target_name, self.TOOLCHAIN, build_profile=profile_toolchain)
211+
src_paths, "", target_name, self.TOOLCHAIN, build_profile=[profile])
213212

214213
# Hack to fill in build_dir
215214
toolchain.build_dir = self.toolchain.build_dir

tools/export/iar/iar_definitions.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,5 @@
188188
"CExtraOptionsCheck": 1,
189189
"CExtraOptions": "--drv_vector_table_base=0x0",
190190
"CMSISDAPJtagSpeedList": 10
191-
},
192-
"REALTEK_RTL8195AM": {
193-
"OGChipSelectEditMenu": "REALTEK_RTL8195AM\tRealtek REALTEK_RTL8195AM"
194191
}
195192
}

tools/export/makefile/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class Makefile(Exporter):
3939
"MCU_NRF51Code.binary_hook",
4040
"TEENSY3_1Code.binary_hook",
4141
"LPCTargetCode.lpc_patch",
42-
"LPC4088Code.binary_hook",
43-
"RTL8195ACode.binary_hook"
42+
"LPC4088Code.binary_hook"
4443
])
4544

4645
def generate(self):

tools/export/uvision/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,12 @@ def generate(self):
209209
}
210210
core = ctx['device'].core
211211
ctx['cputype'] = core.rstrip("FD")
212-
# Turn on FPU optimizations if the core has an FPU
213-
ctx['fpu_setting'] = 1 if 'F' not in core or 'D' in core else 2
212+
if core.endswith("FD"):
213+
ctx['fpu_setting'] = 3
214+
elif core.endswith("F"):
215+
ctx['fpu_setting'] = 2
216+
else:
217+
ctx['fpu_setting'] = 1
214218
ctx['fputype'] = self.format_fpu(core)
215219
ctx.update(self.format_flags())
216220
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")

0 commit comments

Comments
 (0)