Clone of official tools

Revision:
43:2a7da56ebd24
Parent:
35:da9c89f8be7d
--- a/export/iar/ewp.tmpl	Mon Nov 06 13:17:14 2017 -0600
+++ b/export/iar/ewp.tmpl	Tue Sep 25 13:43:09 2018 -0500
@@ -10,166 +10,166 @@
 		<settings>
 			<name>General</name>
 			<archiveVersion>3</archiveVersion>
-      <data>
-        <version>24</version>
-        <wantNonLocal>1</wantNonLocal>
-        <debug>1</debug>
-        <option>
-          <name>GRuntimeLibThreads</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>ExePath</name>
-          <state>$PROJ_DIR$\BUILD\Exe</state>
-        </option>
-        <option>
-          <name>ObjPath</name>
-          <state>$PROJ_DIR$\BUILD\Obj</state>
-        </option>
-        <option>
-          <name>ListPath</name>
-          <state>$PROJ_DIR$\BUILD\List</state>
-        </option>
-        <option>
-          <name>GEndianMode</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>Input variant</name>
-          <version>3</version>
-          <state>1</state>
-        </option>
-        <option>
-          <name>Input description</name>
-          <state>Full formatting.</state>
-        </option>
-        <option>
-          <name>Output variant</name>
-          <version>2</version>
-          <state>3</state>
-        </option>
-        <option>
-          <name>Output description</name>
-          <state>No specifier a, A.</state>
-        </option>
-        <option>
-          <name>GOutputBinary</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>OGCoreOrChip</name>
-          <state>1</state>
-        </option>
-        <option>
-          <name>GRuntimeLibSelect</name>
-          <version>0</version>
-          <state>2</state>
-        </option>
-        <option>
-          <name>GRuntimeLibSelectSlave</name>
-          <version>0</version>
-          <state>2</state>
-        </option>
-        <option>
-          <name>RTDescription</name>
-          <state>Use the full configuration of the C/C++ runtime library. Full locale interface, C locale, file descriptor support, multibytes in printf and scanf, and hex floats in strtod.</state>
-        </option>
-        <option>
-          <name>OGProductVersion</name>
-          <state>5.10.0.159</state>
-        </option>
-        <option>
-          <name>OGLastSavedByProductVersion</name>
-          <state>7.80.2.11970</state>
-        </option>
-        <option>
-          <name>GeneralEnableMisra</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>GeneralMisraVerbose</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>OGChipSelectEditMenu</name>
-          <state>{{device.OGChipSelectEditMenu}}</state>
-        </option>
-        <option>
-          <name>GenLowLevelInterface</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>GEndianModeBE</name>
-          <state>1</state>
-        </option>
-        <option>
-          <name>OGBufferedTerminalOutput</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>GenStdoutInterface</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>GeneralMisraRules98</name>
-          <version>0</version>
-          <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>
-        </option>
-        <option>
-          <name>GeneralMisraVer</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>GeneralMisraRules04</name>
-          <version>0</version>
-          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>
-        </option>
-        <option>
-          <name>RTConfigPath2</name>
-          <state>$TOOLKIT_DIR$\INC\c\DLib_Config_Full.h</state>
-        </option>
-        <option>
-          <name>GBECoreSlave</name>
-          <version>24</version>
-          <state>{{device.GBECoreSlave}}</state>
-        </option>
-        <option>
-          <name>OGUseCmsis</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>OGUseCmsisDspLib</name>
-          <state>0</state>
-        </option>
-        <option>
-          <name>CoreVariant</name>
-          <version>24</version>
-          <state>{{device.CoreVariant}}</state>
-        </option>
-        <option>
-          <name>GFPUDeviceSlave</name>
-          <state></state>
-        </option>
-        <option>
-          <name>FPU2</name>
-          <version>0</version>
-          <state>{{device.FPU2}}</state>
-        </option>
-        <option>
-          <name>NrRegs</name>
-          <version>0</version>
-          <state>{{device.NrRegs}}</state>
-        </option>
-        <option>
-          <name>NEON</name>
-          <state>{{device.NEON}}</state>
-        </option>
-        <option>
-          <name>GFPUCoreSlave2</name>
-          <version>24</version>
-          <state>{{device.GFPUCoreSlave2}}</state>
-        </option>
-      </data>
+            <data>
+                <version>24</version>
+                <wantNonLocal>1</wantNonLocal>
+                <debug>1</debug>
+                <option>
+                    <name>GRuntimeLibThreads</name>
+                    <state>0</state>
+                </option>
+                <option>
+                  <name>ExePath</name>
+                  <state>$PROJ_DIR$\BUILD\Exe</state>
+                </option>
+                <option>
+                  <name>ObjPath</name>
+                  <state>$PROJ_DIR$\BUILD\Obj</state>
+                </option>
+                <option>
+                  <name>ListPath</name>
+                  <state>$PROJ_DIR$\BUILD\List</state>
+                </option>
+                <option>
+                  <name>GEndianMode</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>Input variant</name>
+                  <version>3</version>
+                  <state>1</state>
+                </option>
+                <option>
+                  <name>Input description</name>
+                  <state>Full formatting.</state>
+                </option>
+                <option>
+                  <name>Output variant</name>
+                  <version>2</version>
+                  <state>3</state>
+                </option>
+                <option>
+                  <name>Output description</name>
+                  <state>No specifier a, A.</state>
+                </option>
+                <option>
+                  <name>GOutputBinary</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>OGCoreOrChip</name>
+                  <state>1</state>
+                </option>
+                <option>
+                  <name>GRuntimeLibSelect</name>
+                  <version>0</version>
+                  <state>2</state>
+                </option>
+                <option>
+                  <name>GRuntimeLibSelectSlave</name>
+                  <version>0</version>
+                  <state>2</state>
+                </option>
+                <option>
+                  <name>RTDescription</name>
+                  <state>Use the full configuration of the C/C++ runtime library. Full locale interface, C locale, file descriptor support, multibytes in printf and scanf, and hex floats in strtod.</state>
+                </option>
+                <option>
+                  <name>OGProductVersion</name>
+                  <state>5.10.0.159</state>
+                </option>
+                <option>
+                  <name>OGLastSavedByProductVersion</name>
+                  <state>7.80.2.11970</state>
+                </option>
+                <option>
+                  <name>GeneralEnableMisra</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>GeneralMisraVerbose</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>OGChipSelectEditMenu</name>
+                  <state>{{device.OGChipSelectEditMenu}}</state>
+                </option>
+                <option>
+                  <name>GenLowLevelInterface</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>GEndianModeBE</name>
+                  <state>1</state>
+                </option>
+                <option>
+                  <name>OGBufferedTerminalOutput</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>GenStdoutInterface</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>GeneralMisraRules98</name>
+                  <version>0</version>
+                  <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>
+                </option>
+                <option>
+                  <name>GeneralMisraVer</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>GeneralMisraRules04</name>
+                  <version>0</version>
+                  <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>
+                </option>
+                <option>
+                  <name>RTConfigPath2</name>
+                  <state>$TOOLKIT_DIR$\INC\c\DLib_Config_Full.h</state>
+                </option>
+                <option>
+                  <name>GBECoreSlave</name>
+                  <version>24</version>
+                  <state>{{device.GBECoreSlave}}</state>
+                </option>
+                <option>
+                  <name>OGUseCmsis</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>OGUseCmsisDspLib</name>
+                  <state>0</state>
+                </option>
+                <option>
+                  <name>CoreVariant</name>
+                  <version>24</version>
+                  <state>{{device.CoreVariant}}</state>
+                </option>
+                <option>
+                  <name>GFPUDeviceSlave</name>
+                  <state></state>
+                </option>
+                <option>
+                  <name>FPU2</name>
+                  <version>0</version>
+                  <state>{{device.FPU2}}</state>
+                </option>
+                <option>
+                  <name>NrRegs</name>
+                  <version>0</version>
+                  <state>{{device.NrRegs}}</state>
+                </option>
+                <option>
+                  <name>NEON</name>
+                  <state>{{device.NEON}}</state>
+                </option>
+                <option>
+                  <name>GFPUCoreSlave2</name>
+                  <version>24</version>
+                  <state>{{device.GFPUCoreSlave2}}</state>
+                </option>
+            </data>
 		</settings>
 		<settings>
 			<name>ICCARM</name>
@@ -265,9 +265,9 @@
 				</option>
 				<option>
 					<name>IExtraOptions</name>
-					{% for flag in c_flags %}
+					{% for flag in c_flags -%}
 					<state>{{flag}}</state>
-					{% endfor %}
+					{% endfor -%}
 				</option>
 				<option>
 					<name>CCLangConformance</name>
@@ -315,9 +315,9 @@
 				</option>
 				<option>
 					<name>CCIncludePath2</name>
-					{% for file in include_paths %}
+					{% for file in include_paths -%}
 					<state>{{file}}</state>
-					{% endfor %}
+					{% endfor -%}
 				</option>
 				<option>
 					<name>CCStdIncCheck</name>
@@ -583,9 +583,9 @@
 				</option>
 				<option>
 					<name>AExtraOptionsV2</name>
-					{% for flag in asm_flags %}
-					<state>{{flag}}</state>
-					{% endfor %}
+					{% for flag in asm_flags -%}
+					<state>{{flag|escape}}</state>
+					{% endfor -%}
 				</option>
 				<option>
 					<name>AsmNoLiteralPool</name>
@@ -765,9 +765,9 @@
 				</option>
 				<option>
 					<name>IlinkExtraOptions</name>
-					{% for flag in ld_flags %}
+					{% for flag in ld_flags -%}
 					<state>{{flag}}</state>
-					{% endfor %}
+					{% endfor -%}
 				</option>
 				<option>
 					<name>IlinkLowLevelInterfaceSlave</name>
@@ -963,14 +963,12 @@
 			<data></data>
 		</settings>
 	</configuration>
-	{% for group in groups %}
-	<group>
-	    <name>{{group.name}}</name>
-	    {% for file in group.files %}
-	    <file>
-	        <name>{{file}}</name>
-	    </file>
-	    {% endfor %}
-	</group>
-	{% endfor %}
+	{% for group in groups -%}
+        <group>
+            <name>{{group.name}}</name>
+            {% for file in group.files -%}
+            <file> <name>{{file}}</name> </file>
+            {% endfor -%}
+        </group>
+	{% endfor -%}
 </project>