Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-sdk-tools by
Diff: export/iar.py
- Revision:
- 13:ab47a20b66f0
- Parent:
- 0:66f3b5499f7f
- Child:
- 23:fbae331171fa
diff -r f2e8a005c7d3 -r ab47a20b66f0 export/iar.py
--- a/export/iar.py Tue Jun 14 11:33:06 2016 +0100
+++ b/export/iar.py Thu Jul 14 20:21:19 2016 +0100
@@ -33,6 +33,8 @@
# PROGEN_ACTIVE contains information for exporter scripts that this is using progen
PROGEN_ACTIVE = True
+ MBED_CONFIG_HEADER_SUPPORTED = True
+
# backward compatibility with our scripts
TARGETS = []
for target in TARGET_NAMES:
@@ -66,7 +68,12 @@
}
project_data['tool_specific'] = {}
- project_data['tool_specific'].update(tool_specific)
+ project_data['tool_specific'].setdefault("iar", {})
+ project_data['tool_specific']['iar'].setdefault("misc", {})
+ project_data['tool_specific']['iar'].update(tool_specific['iar'])
+ project_data['tool_specific']['iar']['misc'].update(self.progen_flags)
+ # VLA is enabled via template IccAllowVLA
+ project_data['tool_specific']['iar']['misc']['c_flags'].remove("--vla")
project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm')
self.progen_gen_file('iar_arm', project_data)
