Skip to content

Commit 77dccea

Browse files
theotherjimmyadbridge
authored andcommitted
Remove special case for RZ-A1H
1 parent 1d19f37 commit 77dccea

File tree

3 files changed

+3
-942
lines changed

3 files changed

+3
-942
lines changed

tools/export/iar/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ class IAR(Exporter):
3131
if hasattr(obj, 'device_name') and
3232
obj.device_name in IAR_DEFS.keys() and "IAR" in obj.supported_toolchains]
3333

34-
SPECIAL_TEMPLATES = {
35-
'rz_a1h' : 'iar/iar_rz_a1h.ewp.tmpl'
36-
}
37-
3834
def iar_groups(self, grouped_src):
3935
"""Return a namedtuple of group info
4036
Positional Arguments:
@@ -87,9 +83,6 @@ def format_src(self, srcs):
8783
grouped[group] = [self.format_file(src) for src in files]
8884
return grouped
8985

90-
def get_ewp_template(self):
91-
return self.SPECIAL_TEMPLATES.get(self.target.lower(), 'iar/ewp.tmpl')
92-
9386
def generate(self):
9487
"""Generate the .eww, .ewd, and .ewp files"""
9588
srcs = self.resources.headers + self.resources.s_sources + \
@@ -123,9 +116,9 @@ def generate(self):
123116
}
124117
ctx.update(flags)
125118

126-
self.gen_file('iar/eww.tmpl', ctx, self.project_name+".eww")
119+
self.gen_file('iar/eww.tmpl', ctx, self.project_name + ".eww")
127120
self.gen_file('iar/ewd.tmpl', ctx, self.project_name + ".ewd")
128-
self.gen_file(self.get_ewp_template(), ctx, self.project_name + ".ewp")
121+
self.gen_file('iar/ewp.tmpl', ctx, self.project_name + ".ewp")
129122

130123
@staticmethod
131124
def build(project_name, log_name="build_log.txt", cleanup=True):

tools/export/iar/ewp.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
</option>
163163
<option>
164164
<name>NEON</name>
165-
<state>0</state>
165+
<state>{{device.NEON}}</state>
166166
</option>
167167
<option>
168168
<name>GFPUCoreSlave2</name>

0 commit comments

Comments
 (0)