From e29135ed1c1e019ccba6f627e4ef30ecaecd7a8a Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 12 Dec 2016 18:46:47 -0600 Subject: [PATCH] Remove special case for RZ-A1H --- tools/export/iar/__init__.py | 11 +- tools/export/iar/ewp.tmpl | 2 +- tools/export/iar/iar_rz_a1h.ewp.tmpl | 932 --------------------------- 3 files changed, 3 insertions(+), 942 deletions(-) delete mode 100644 tools/export/iar/iar_rz_a1h.ewp.tmpl diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 671f633632..dafedebf21 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -32,10 +32,6 @@ class IAR(Exporter): obj.device_name in IAR_DEFS.keys() and "IAR" in obj.supported_toolchains and DeviceCMSIS.check_supported(target)] - SPECIAL_TEMPLATES = { - 'rz_a1h' : 'iar/iar_rz_a1h.ewp.tmpl' - } - def iar_groups(self, grouped_src): """Return a namedtuple of group info Positional Arguments: @@ -88,9 +84,6 @@ class IAR(Exporter): grouped[group] = [self.format_file(src) for src in files] return grouped - def get_ewp_template(self): - return self.SPECIAL_TEMPLATES.get(self.target.lower(), 'iar/ewp.tmpl') - def generate(self): """Generate the .eww, .ewd, and .ewp files""" srcs = self.resources.headers + self.resources.s_sources + \ @@ -118,9 +111,9 @@ class IAR(Exporter): } ctx.update(flags) - self.gen_file('iar/eww.tmpl', ctx, self.project_name+".eww") + self.gen_file('iar/eww.tmpl', ctx, self.project_name + ".eww") self.gen_file('iar/ewd.tmpl', ctx, self.project_name + ".ewd") - self.gen_file(self.get_ewp_template(), ctx, self.project_name + ".ewp") + self.gen_file('iar/ewp.tmpl', ctx, self.project_name + ".ewp") @staticmethod def build(project_name, log_name="build_log.txt", cleanup=True): diff --git a/tools/export/iar/ewp.tmpl b/tools/export/iar/ewp.tmpl index 47cc365e49..943c148cbc 100644 --- a/tools/export/iar/ewp.tmpl +++ b/tools/export/iar/ewp.tmpl @@ -162,7 +162,7 @@