comparison g23m/system/busyb/unbusy_toolset.xml @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- TOKNOW: to allow clearmake builds for different local installations the pathes to locally installed tools are ommitted -->
3 <!-- TOKNOW: this means these tools must be found through the PATH environment variable -->
4 <toolSet description="Tools for a complete build" name="Tools">
5 <preambles description="Build config (XML configset file)">
6 <preamble>#### contents of the XML configset file (DO NOT CHANGE THIS TEXT!) ####</preamble>
7 </preambles>
8 <preambles description="Include an exported makefile from ABC">
9 <preamble>-include abc_exports.mak</preamble>
10 </preambles>
11 <preambles description="A rule for the APT input file">
12 <preamble>
13 apt_file:
14 $(shell echo > APT_FILE.tmp)
15 $(foreach ELMNT, $(BSB_TARGETS_ALL) $(BSB_SOURCES_ONLY) $(BSB_TOOLS_ALL), $(shell echo -f $(ELMNT) >> APT_FILE.tmp))
16 $(foreach ELMNT, $(BSB_PROPS_ALL), $(shell echo -p $(ELMNT) >> APT_FILE.tmp))
17 $(foreach ELMNT, $(BSB_PATHES_ALL), $(shell echo -d $(ELMNT) >> APT_FILE.tmp))
18 @perl gen_apt.pl APT_FILE.tmp
19 </preamble>
20 </preambles>
21 <preambles description="Some variables (not yet) generated by BUSYB" require="BUILD_UTILITIES==1">
22 <preamble>###BSB_OUT_MDFS = # filled during makefile post processing</preamble>
23 <preamble>###BSB_OUT_PDFS = # filled during makefile post processing</preamble>
24 </preambles>
25 <preambles description="Environment specific settings">
26 <preamble>SHELL = sh # set name of the SHELL executable (effective only for clearmake)</preamble>
27 <preamble>BSB_REMOVE = -rm -f # fill some BUSYB generated variable</preamble>
28 <preamble>BSB_ECHO = @echo # fill some BUSYB generated variable</preamble>
29 </preambles>
30 <preambles description="Some rules for directory creation">
31 <preamble>allOutDirs: $(BSB_OUT_DIRS_ALL)</preamble>
32 <preamble>$(BSB_OUT_DIRS_ALL):;mkdir -p $@</preamble>
33 </preambles>
34 <tool description="C-Preprocessor" name="C_PP">
35 <!-- TOKNOW: command name attribute needed for cmdfile naming -->
36 <command description="TI C-Preprocessor" name="pp_ti" require="TOOL_CHOICE==0">
37 <executable path="cl470.exe" pathRef="BIN_TOOLS">
38 <!-- TOKNOW: inlining options (-x) are already needed during preprocessing -->
39 <flag value="-po -p? -x -q" />
40 </executable>
41 <supports flag="-D" option="define" />
42 <supports flag="-U" option="undefine" />
43 <supports flag="-I" option="include" />
44 <supports flag="-I" option="ssa_include_var" />
45 <supports flag="-@" option="cmdFile" />
46 <args template=" [define] [undefine] [include] [ssa_include_var] [source]" require="CMP_MODE != 1" />
47 <args template=" -D__DATE__=TMS470_CDS -D__TIME__=TMS470_CTS -D__FILE__=TMS470_CFS [cmdFile [define] [undefine] [include]] [ssa_include_var] [source]" require="CMP_MODE == 1" />
48 </command>
49 <command description="TI C-Preprocessor" name="pp_ti_2.54" require="TOOL_CHOICE==3">
50 <executable path="cl470.exe" pathRef="BIN_TOOLS">
51 <!-- TOKNOW: inlining options (-x) doesn't exist in 2.54, _INLINE keyword always defined -->
52 <flag value="-ppl -q" />
53 </executable>
54 <supports flag="-D" option="define" />
55 <supports flag="-U" option="undefine" />
56 <supports flag="-I" option="include" />
57 <supports flag="-I" option="ssa_include_var" />
58 <supports flag="-@" option="cmdFile" />
59 <args template="[define] [undefine] [include] [ssa_include_var] [source]" require="CMP_MODE != 1" />
60 <args template="-D__DATE__=TMS470_CDS -D__TIME__=TMS470_CTS -D__FILE__=TMS470_CFS [cmdFile [define] [undefine] [include]] [ssa_include_var] [source]" require="CMP_MODE == 1" />
61 </command>
62 </tool>
63 <tool description="C-Compiler" name="CC">
64 <command description="TI C-Compiler" name="cc_ti" require="TOOL_CHOICE==0">
65 <executable path="cl470.exe" pathRef="BIN_TOOLS">
66 <!-- TODO: remove or add -q flag -->
67 <flag value="-c -me -mt -o -pw2 -x -mw -q" require="SYMBOLS==0" />
68 <flag value="-c -me -mt -pw2 -x -mw -q -g -mn" require="SYMBOLS==1" />
69 </executable>
70 <supports flag="-D" option="define" />
71 <supports flag="-U" option="undefine" />
72 <supports flag="-I" option="include" />
73 <supports flag="-I" option="ssa_include_var" />
74 <args template=" [define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
75 </command>
76 <command description="TI C-Compiler 2.54" name="cc_ti_2.54" require="TOOL_CHOICE==3">
77 <executable path="cl470.exe" pathRef="BIN_TOOLS">
78 <!-- TODO: remove or add -q flag -->
79 <flag value="-c -me -mt -o -pden --align_structs=4 -q -gn" require="SYMBOLS==0" />
80 <flag value="-c -me -mt -pden --align_structs=4 -q -gt -mn" require="SYMBOLS==1" />
81 </executable>
82 <supports flag="-D" option="define" />
83 <supports flag="-U" option="undefine" />
84 <supports flag="-I" option="include" />
85 <supports flag="-I" option="ssa_include_var" />
86 <args template="[define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
87 </command>
88 </tool>
89 <tool description="C-Compiler with special flags for AUSYSTEM's WAP browser" name="CC_AUS">
90 <command description="TI C-Compiler" name="cc_ti_aus" require="TOOL_CHOICE==0">
91 <executable path="cl470.exe" pathRef="BIN_TOOLS">
92 <flag value="-c -me -mt -o -pw2 -x -mw -pe -q" require="SYMBOLS==0" />
93 <flag value="-c -me -mt -pw2 -x -mw -pe -q -g -mn" require="SYMBOLS==1" />
94 </executable>
95 <supports flag="-D" option="define" />
96 <supports flag="-U" option="undefine" />
97 <supports flag="-I" option="include" />
98 <supports flag="-I" option="ssa_include_var" />
99 <!-- one AUSYSTEMS file crashes the 1.22e compiler (wipdb.c) and needs special options see gwc.xml -->
100 <args template=" [localFlags] [define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
101 </command>
102 <command description="TI C-Compiler" name="cc_ti_aus_2.54" require="TOOL_CHOICE==3">
103 <executable path="cl470.exe" pathRef="BIN_TOOLS">
104 <flag value="-c -me -mt -o -pden --align_structs=4 -q -gn" require="SYMBOLS==0" />
105 <flag value="-c -me -mt -pden --align_structs=4 -q -gt -mn" require="SYMBOLS==1" />
106 </executable>
107 <supports flag="-D" option="define" />
108 <supports flag="-U" option="undefine" />
109 <supports flag="-I" option="include" />
110 <supports flag="-I" option="ssa_include_var" />
111 <args template="[localFlags] [define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
112 </command>
113 <command name="LINT" require="LINT==1" description="C source verification tool">
114 <executable />
115 </command>
116 </tool>
117 <tool description="C-Compiler with special flags for MIC WAP browser" name="CC_MIC">
118 <command description="TI C-Compiler" name="cc_ti_aus" require="TOOL_CHOICE==0">
119 <executable path="cl470.exe" pathRef="BIN_TOOLS">
120 <flag value="-c -me -mt -o -pw2 -x1 -mw -pe -q" require="SYMBOLS==0" />
121 <flag value="-c -me -mt -pw2 -x1 -mw -pe -q -g -mn" require="SYMBOLS==1" />
122 </executable>
123 <supports flag="-D" option="define" />
124 <supports flag="-U" option="undefine" />
125 <supports flag="-I" option="include" />
126 <supports flag="" option="ssa_include_var" />
127 <args template=" [localFlags] [define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
128 </command>
129 <command description="TI C-Compiler" name="cc_ti_aus_2.54" require="TOOL_CHOICE==3">
130 <executable path="cl470.exe" pathRef="BIN_TOOLS">
131 <flag value="-c -me -mt -o -pden --align_structs=4 -q -gn" require="SYMBOLS==0" />
132 <flag value="-c -me -mt -pden --align_structs=4 -q -gt -mn" require="SYMBOLS==1" />
133 </executable>
134 <supports flag="-D" option="define" />
135 <supports flag="-U" option="undefine" />
136 <supports flag="-I" option="include" />
137 <supports flag="" option="ssa_include_var" />
138 <args template=" [localFlags] [define] [undefine] [include] [ssa_include_var] -fr[dest_dir] [source]" />
139 </command>
140 <command name="LINT" require="LINT==1" description="C source verification tool">
141 <executable />
142 </command>
143 </tool>
144 <tool description="Object librarian, archiver" name="AR" singleRun="yes">
145 <command description="TI Archiver" name="ar_ti">
146 <executable path="ar470.exe" pathRef="BIN_TOOLS">
147 <flag value="r" />
148 </executable>
149 <args template="[dest] [source*]" />
150 </command>
151 </tool>
152 <tool description="Object linker - chosen depending on a condition" name="LNK_CONDITIONAL" singleRun="yes">
153 <command description="Visual Linker" name="VLNK" require="(L1!=9) &amp;&amp; (TOOL_CHOICE==0)">
154 <executable />
155 </command>
156 <command description="TI linker" name="LNK470_ALPHA" require="(L1==9) &amp;&amp; (TOOL_CHOICE==0)">
157 <executable />
158 </command>
159 <command description="Dummy command" name="DUMMY_LNK" require="(L1!=9) &amp;&amp; (TOOL_CHOICE==30)">
160 <executable />
161 </command>
162 <command description="TI linker 2.54" name="LNK470_2.54" require="TOOL_CHOICE==3">
163 <executable />
164 </command>
165 </tool>
166 <tool description="TI linker 2.54" name="LNK470_2.54" singleRun="yes">
167 <command description="TI standard linker 2.54" name="lnk470_2.54">
168 <executable path="lnk470.exe" pathRef="BIN_TOOLS">
169 <flag value="-x --large_model -w -wr -priority" />
170 </executable>
171 <args template="-o [dest] -m [dest.map] [source*]" />
172 </command>
173 </tool>
174 <tool description="TI linker (alpha)" name="LNK470_ALPHA" singleRun="yes">
175 <command description="TI standard linker (alpha)" name="lnk470_alpha">
176 <executable path="lnk470_alpha.exe" pathRef="BIN_TOOLS">
177 <flag value="--large_model -x" />
178 </executable>
179 <args template="-o [dest] -m [dest.map] [source*]" />
180 </command>
181 </tool>
182 <tool description="Visual linker" name="VLNK" singleRun="yes">
183 <command description="links an executable" name="vlnk_ti">
184 <executable path="vlnk470" pathRef="LINK_TOOLS">
185 <flag value="-farcall -x" />
186 </executable>
187 <!--
188 This is neccessary to cope with the horrible behavior of the visual linker.
189 It is neccessary that only the linker command file (%.lcf) does not contain any slash
190 but only backslashes. All the other targets (the libs) must not contain double
191 backslashes.
192 -->
193 <args template="-o [dest] -m [dest.map] $(filter-out %.cmd,[source*]) $(subst /,||, $(filter %.cmd,[source*]))" />
194 </command>
195 </tool>
196 <tool description="Dummy command" name="DUMMY_LNK">
197 <command description="Dummy command" name="dummy_lnk">
198 <executable path="@echo" />
199 <args template="" />
200 </command>
201 </tool>
202 <tool description="COFF/Hex Converter" name="HEX">
203 <command description="TI COFF/Hex Converter" name="hex_ti" require="TOOL_CHOICE!=30">
204 <executable path="hex470" pathRef="BIN_TOOLS" />
205 <args template="-m -memwidth 16 -romwidth 16 -o [dest] [source]" />
206 </command>
207 <command description="Dummy command" name="dummy_hex" require="TOOL_CHOICE==30">
208 <executable path="@echo" />
209 <args template="" />
210 </command>
211 </tool>
212 <tool description="Creates Windows CE *.bin file for Avenger2/Perseus1" name="OUT2BIN_AV2">
213 <command description="Converts a CCS *.out file to a Windows CE *.bin file." name="out2bin_av2">
214 <executable path="out2bin.pl" pathRef="G23" toolRef="PERL" />
215 <args template="[source] 80000000 -i" />
216 </command>
217 </tool>
218 <tool description="Creates Windows CE *.bin file for P2-Sample" name="OUT2BIN_P2">
219 <command description="Converts a CCS *.out file to a Windows CE *.bin file, producing also a *.raw file for PrepFlashImg." name="out2bin_p2">
220 <executable path="out2bin.pl" pathRef="CHIPSETSW_SYSTEM" toolRef="PERL" />
221 <args template="[source] 81E00000 -i -r" />
222 </command>
223 </tool>
224 <tool description="Creates SysBoot *.syb file for P2-Sample" name="PREPFLASHIMG_P2">
225 <command description="Converts a *.raw file to a SysBoot *.syb file." name="prepflashimg">
226 <executable path="prepflashimg.exe" pathRef="WCP_SYSBOOT_TOOLS" />
227 <!-- TOKNOW: IMAGE.raw is a by-product of 'OUT2BIN_P2' above and is _not_ tracked with proper dependencies,
228 i.e. BuSyB doesn't know anything about it -->
229 <args template="$(subst .bin,.raw,[source]) -bin:[dest] -addr:0x01E00000 -type:GSM" />
230 </command>
231 </tool>
232 <tool description="Trace Compressor" name="STR2IND">
233 <command description="Condat Trace Compressor" name="str2ind_condat">
234 <executable path="str2ind.exe" pathRef="GPF_BIN">
235 <flag value="" require="CMP_MODE == 1" />
236 <flag value="-a" require="CMP_MODE != 1" />
237 </executable>
238 <supports flag="-t" option="table_file" />
239 <supports flag="-l" option="log_file" />
240 <supports flag="-v" option="version_file" />
241 <args template="[table_file] [log_file] [version_file] -f [source]" />
242 </command>
243 </tool>
244 <tool description="Compiler Tool Chain (C_PP, STR2IND, CC)" name="PP_STR2IND_CC">
245 <command description="1. pre-process" name="C_PP">
246 <executable />
247 </command>
248 <command description="1a. save cmd and pp files" name="SAVE_FILES" require="CMP_MODE == 1">
249 <executable />
250 <args template="[dest.cl470cmd] [source.pp]" />
251 </command>
252 <command description="2. compress" name="STR2IND">
253 <executable />
254 <args template="[table_file] [log_file] [version_file] -f [source.pp]" />
255 </command>
256 <command description="3. compile" name="CC">
257 <executable />
258 <args template="-fr[dest_dir] [source.pp_]" />
259 </command>
260 <command description="4. remove *.pp and *.pp_ files" name="RM">
261 <executable />
262 <args template="[source.pp] [source.pp_]" />
263 </command>
264 </tool>
265 <tool description="Conditional Compilation Process" name="CC_CONDITIONAL">
266 <command description="compile only" name="CC" require="NTRC != 4">
267 <executable />
268 </command>
269 <command description="pre-process, compress, compile" name="PP_STR2IND_CC" require="NTRC == 4">
270 <executable />
271 </command>
272 <command name="LINT" require="LINT==1" description="C source verification tool">
273 <executable />
274 </command>
275 </tool>
276 <tool description="Winword to Text Converter" name="DOC2TXT">
277 <command description="Saves a Winword document as Text" name="doc2txt_gpl">
278 <executable path="doc2txt.exe" pathRef="GPF_TOOLS">
279 <flag value="-O -w -f wdFormatText" />
280 </executable>
281 <args template="[source]" />
282 </command>
283 </tool>
284 <tool description="CCD table generator" name="CCDGEN" singleRun="yes">
285 <command description="0. create the output directory" name="MKDIR" modifier="@">
286 <executable/>
287 <supports flag="" option="cdgincdir_tools"/>
288 <supports flag="" option="str2inddir"/>
289 <args template="[dest_dir] [cdgincdir_tools] [str2inddir]"/>
290 </command>
291 <command description="1. Generates CCD tables and include files from PDF/MDF for TARGET" name="ccdgen_target">
292 <executable path="ccdgen.exe" pathRef="GPF_BIN">
293 <flag value="-h -m512 -a2"/>
294 </executable>
295 <supports flag="-i" option="ccdgenff" />
296 <supports flag="-o" option="cdgincdir" />
297 <supports flag="-R" option="cmdFile" />
298 <args template="[ccdgenff] [cdgincdir] [cmdFile [source*]]" />
299 </command>
300 <command description="Generates CCD tables and include files from PDF/MDF for TOOLS" name="ccdgen_tools">
301 <executable path="ccdgen.exe" pathRef="GPF_BIN">
302 <flag value="-s -t -h -m512 -a2"/>
303 </executable>
304 <supports flag="-i" option="ccdgenff"/>
305 <supports flag="-o" option="cdgincdir_tools"/>
306 <supports flag="-R" option="cmdFile"/>
307 <args template="[ccdgenff] [cdgincdir_tools] [cmdFile [source*]]"/>
308 </command>
309 </tool>
310 <tool description="Message/Primitive Description File Generator" name="XGEN">
311 <command description="Generates MDF/PDF files from SAPs/MSGs" name="xgen_condat">
312 <executable path="xGen100.exe" pathRef="GPF_BIN" />
313 <supports flag="" option="msg_or_sap" />
314 <args template="[msg_or_sap] [source] [source.err] [source.log] [dest] I" />
315 </command>
316 </tool>
317 <tool description="MDF/PDF Tool Chain (DOC2TXT, XGEN)" name="DOC2TXT_XGEN">
318 <command description="1. save as text" name="DOC2TXT">
319 <executable />
320 </command>
321 <command description="2. generate MDF/PDF" name="XGEN">
322 <executable />
323 <supports flag="" option="msg_or_sap" />
324 <args template="[msg_or_sap] [source.txt] [source.err] [source.log] [dest] I" />
325 </command>
326 </tool>
327 <tool description="ASN1 to MDF" name="ASN1_TO_MDF" singleRun="yes">
328 <command description="Generates MDF files from a ASN1/ABB source" name="asn1_to_mdf_command">
329 <executable path="asn1_to_mdf.exe" pathRef="GPF_BIN" />
330 <args template="-i [source_dir] -o [dest_dir] $(notdir [source])" />
331 <!-- the *.abb file is loaded implictly so [source*] is not necessary -->
332 </command>
333 </tool>
334 <tool description="Remove" name="RM">
335 <command description="removes a file" name="rm_condat" modifier="@-">
336 <executable path="rm.exe" pathRef="GPF_TOOLS" />
337 </command>
338 </tool>
339 <!-- TOKNOW: this tool chain is based on the assumption, that object files are placed exactly
340 in the same directory as the corresponding dependency files -->
341 <tool description="recursive MKDIR" name="MKDIR">
342 <command description="creates a directory" name="mkdir_condat">
343 <executable path="gmkdir.exe" pathRef="GPF_TOOLS">
344 <flag value="-p" />
345 </executable>
346 </command>
347 </tool>
348 <tool description="C Pre-Processor" name="GNU_CPP">
349 <command description="MINGW C Pre-Processor" name="GNU_CPP">
350 <executable path="cpp.exe">
351 <flag value="-D_TMS470 -UWIN32 -U_WIN32 -U__WIN32__" require="BUILD_UTILITIES==0" />
352 </executable>
353 </command>
354 </tool>
355 <tool description="MAKEDEPEND Tool Chain" name="MAKEDEPEND">
356 <command description="1. create the dependency file" name="GNU_CPP" modifier="-">
357 <executable />
358 <supports flag="-D" option="define" />
359 <supports flag="-U" option="undefine" />
360 <supports flag="-I" option="include" />
361 <supports flag="-I" option="ssa_include_var" />
362 <!-- TOKNOW: to avoid errors we let CPP generate a .dep which is then changed to a .d file
363 otherwise pre-processing errors would result in an empty .d file which would
364 never be updated -->
365 <args template="[define] [undefine] -nostdinc [include] [ssa_include_var] [source] -MM -MG -MF [dest.dep]" />
366 </command>
367 <command description="2. modify the dependency file" name="MKDEP" modifier="-">
368 <executable />
369 <args template="[dest.dep] ~ifeq ($(MAKEDEPEND), 1) ~-include [dest] ~endif" />
370 </command>
371 </tool>
372 <!-- Perl Scripts and Perl itself come next -->
373 <tool description="Perl Interpreter" name="PERL">
374 <command description="Perl" name="perl">
375 <executable path="perl"></executable>
376 </command>
377 </tool>
378 <tool description="Create version file" name="MAKE_VERSION_FILE" singleRun="yes">
379 <command description="Creates a C file containing version information" name="makeversion_condat">
380 <executable path="make_ver.pl" pathRef="TOOLS" toolRef="PERL"></executable>
381 <args template="[dest] [source]" />
382 </command>
383 </tool>
384 <tool description="Create linker command file" name="MAKE_LNKCMD_FILE" singleRun="yes">
385 <command description="Creates a linker commend file from a template" name="lcfgen">
386 <executable path="make_cmd.pl" pathRef="TOOLS" toolRef="PERL"></executable>
387 <supports flag="" option="cmdFile" />
388 <supports flag="" option="memory_location" />
389 <supports flag="" option="tool_choice" />
390 <!-- <args template="[cmdFile [memory_location]] [dest] [source*]"/> -->
391 <args template="[cmdFile [memory_location]] [dest] [tool_choice] $+" />
392 </command>
393 </tool>
394 <tool description="Modify the dependency file" name="MKDEP">
395 <command description="Modify a dependency file created by CPP" name="mkdep">
396 <executable path="make_dep.pl" pathRef="TOOLS" toolRef="PERL"></executable>
397 </command>
398 </tool>
399 <tool description="save cmd and pp files" name="SAVE_FILES">
400 <command description="save cmd and pp files" name="save_files">
401 <executable path="save_files.pl" pathRef="TOOLS" toolRef="PERL"></executable>
402 </command>
403 </tool>
404 <!-- Microsoft tools -->
405 <tool description="C-Compiler" name="MS_CC">
406 <command description="MS C-Compiler" name="ms_cc">
407 <executable path="cl.exe">
408 <flag value="/nologo /c /W3 /Zp1" />
409 </executable>
410 <supports flag="/D" option="define" />
411 <supports flag="/U" option="undefine" />
412 <supports flag="/I" option="include" />
413 <supports flag="" option="tdc_flags" />
414 <args template="[tdc_flags] [define] [undefine] [include] /Fo[dest_dir]/ /MD [source]" />
415 </command>
416 <command name="LINT" require="LINT==1" description="C source verification tool">
417 <executable />
418 </command>
419 </tool>
420 <tool description="Object linker (DLL)" name="MS_LNK_DLL" singleRun="yes">
421 <command description="MS standard linker" name="ms_lnk">
422 <executable path="link">
423 <flag value="/nologo /dll" />
424 </executable>
425 <supports flag="/IMPLIB:" option="implib_flags" />
426 <args template="/OUT:[dest] /DEF:$(filter %.def,[source*]) [implib_flags] /COMMENT:BUSYB_GENERATED_DLL $(filter-out %.def,[source*])" />
427 </command>
428 </tool>
429 <tool description="Object linker" name="MS_LNK" singleRun="yes">
430 <command description="MS standard linker" name="ms_lnk">
431 <executable path="link">
432 <flag value="/lib /nologo" />
433 </executable>
434 <args template="/OUT:[dest] [source*]" />
435 </command>
436 </tool>
437 <!-- java tools -->
438 <!-- TODO: integration of JAVA and XALAN is somewhat unclean - it is necessary to explicitely specify the path in a number of places :( -->
439 <tool description="Java Interpreter + xalan" name="XALAN">
440 <command description="Java + xalan" name="xalan">
441 <executable path="java">
442 <!-- TODO: these explicit pathes (../gpf/...) in <flag> must be replaced pathrefs -->
443 <flag value="-Xbootclasspath/p:&quot;../gpf/tools/lib/java/xalan.jar;../gpf/tools/lib/java/xml-apis.jar;../gpf/tools/lib/java/xercesImpl.jar&quot; -classpath ../gpf/tools/lib/java/xalan-ext.jar org.apache.xalan.xslt.Process -xsl" />
444 </executable>
445 </command>
446 </tool>
447 <tool description="Create pdf file" name="XALAN_2PDF">
448 <command description="Creates a ti pdf format file containing sap information" name="xalan_2pdf">
449 <executable path="2pdf.xsl" pathRef="GPF_2MDFPDF" toolRef="XALAN"></executable>
450 <supports flag="" option="sapdir" />
451 <supports flag="" option="aimdir" />
452 <args template="-in [source] -out [dest] -param sapPath [sapdir]\ -param aimPath [aimdir]\" />
453 </command>
454 </tool>
455 <tool description="Create pdf file" name="XALAN_2MDF">
456 <command description="Creates a ti mdf format file containing aim information" name="xalan_2mdf">
457 <executable path="2mdf.xsl" pathRef="GPF_2MDFPDF" toolRef="XALAN"></executable>
458 <supports flag="" option="sapdir" />
459 <supports flag="" option="aimdir" />
460 <args template="-in [source] -out [dest] -param sapPath [sapdir]\ -param aimPath [aimdir]\" />
461 </command>
462 </tool>
463 <!-- BEGIN OF TI TOOLS SECTION -->
464 <tool description="C/C++ Compiler or Lint" name="CC2">
465 <command description="TI C/C++ Compiler" name="cc_ti" require="(RVTOOL==0) &amp;&amp; (TOOL_CHOICE!=30)">
466 <executable path="cl470" pathRef="BIN_TOOLS" />
467 <supports flag="-D" option="define" />
468 <supports flag="-U" option="undefine" />
469 <supports flag="-I" option="include" />
470 <supports flag="" option="c_options" />
471 <args template="[c_options] [define] [undefine] [include] -fr[dest_dir] [source]" require="TOOL_CHOICE!=3" />
472 <args template="[c_options] [define] [undefine] [include] -fr=[dest_dir] [source]" require="TOOL_CHOICE==3" />
473 </command>
474 <command description="Lint" name="lint" require="LINT==1 &amp;&amp; (RVTOOL==0) &amp;&amp; (TOOL_CHOICE==30)">
475 <executable path="lint-nt" pathRef="GPF_TOOLS" />
476 <supports flag="-I" option="include" />
477 <supports flag="-D" option="define" />
478 <supports flag="" />
479 <args template="[include] [define] +os'('lint_report.txt')' -zero -e537 -e659 -hf1 -width'('0')' -w2 -ss2 -sl4 -sf4 -sd8 -sld8 -sp4 [source]" />
480 </command>
481 <command description="MS C/C++ Compiler" name="ms_cc" require="RVTOOL==1">
482 <executable path="cl.exe" />
483 <supports flag="/D" option="define" />
484 <supports flag="/U" option="undefine" />
485 <supports flag="/I" option="include" />
486 <supports flag="" option="c_options" />
487 <args template="[c_options] [define] [undefine] [include] /Fo[dest_dir]/ [source]" />
488 </command>
489 <command name="LINT" description="C source verification tool" require="(OP_L1_STANDALONE==0) &amp;&amp; (LINT==1)">
490 <executable />
491 </command>
492 </tool>
493 <tool description="Object librarian, archiver" name="AR2" singleRun="yes">
494 <command description="TI Archiver" name="ar_ti" require="(RVTOOL==0) &amp;&amp; (TOOL_CHOICE!=30)">
495 <executable path="ar470" pathRef="BIN_TOOLS">
496 <flag value="r" />
497 </executable>
498 <args template="[dest] [source*]" />
499 </command>
500 <command description="Dummy command" name="dummy_cmd" require="(RVTOOL==0) &amp;&amp; (TOOL_CHOICE==30)">
501 <executable path="@echo" />
502 <args template="" />
503 </command>
504 <command description="MS Archiver" name="ms_ar" require="RVTOOL==1">
505 <executable path="link.exe">
506 <flag value="/lib /nologo" />
507 </executable>
508 <args template="/OUT:[dest] [source*]" />
509 </command>
510 </tool>
511 <tool description="Object librarian, archiver" name="LNK2" singleRun="yes">
512 <command description="TI Linker" name="LNK_CONDITIONAL" require="RVTOOL==0">
513 <executable />
514 </command>
515 <command description="MS Linker" name="ms_lnk" require="RVTOOL==1">
516 <executable path="link.exe">
517 <flag value="/nologo /subsystem:windows /pdbtype:sept /debug /machine:I386 /incremental:yes winmm.lib ws2_32.lib /nodefaultlib:MSVCRTD.lib " />
518 </executable>
519 <supports flag="/IMPLIB:" option="implib_flags" />
520 <args template="/pdb:[dest.pdb] /map:[dest.map] /libpath:[dest_dir]/../lib /OUT:[dest] [implib_flags] $(filter-out %.def,[source*])" />
521 </command>
522 </tool>
523 <tool description="C Pre-Processor" name="GNU_GCC">
524 <command description="C Pre-Processor" name="GNU_GCC">
525 <executable path="gcc" />
526 </command>
527 </tool>
528 <tool description="MAKEDEPEND Tool Chain" name="MAKEDEPEND2">
529 <command description="1. create the dependency file" name="GNU_GCC" modifier="-">
530 <executable />
531 <supports flag="-D" option="define" />
532 <supports flag="-U" option="undefine" />
533 <supports flag="-I" option="include" />
534 <supports flag="-I" option="ssa_include_var" />
535 <!-- TOKNOW: to avoid errors we let CPP generate a .dep which is then changed to a .d file
536 otherwise pre-processing errors would result in an empty .d file which would
537 never be updated -->
538 <args template="-MM [define] [undefine] [include] [ssa_include_var] [source] -o [dest.dep]" />
539 </command>
540 <command description="2. modify the dependency file" name="MKDEP" modifier="-">
541 <executable />
542 <args template="[dest.dep] ~ifeq ($(MAKEDEPEND), 1) ~-include [dest] ~endif" />
543 </command>
544 </tool>
545 <tool description="Assembler" name="ASM2">
546 <command description="TI Assembler" name="asm_ti" require="TOOL_CHOICE==0">
547 <executable path="asm470" pathRef="BIN_TOOLS" />
548 <supports flag="-d" option="define" />
549 <supports flag="" option="asm_options" />
550 <args template="[asm_options] [define] [source] [dest]" />
551 </command>
552 <command description="TI Assembler" name="asm_ti" require="TOOL_CHOICE==3">
553 <!-- asm470 cannot be used with debug -->
554 <executable path="cl470" pathRef="BIN_TOOLS" />
555 <supports flag="-d" option="define" />
556 <supports flag="" option="asm_options" />
557 <args template="[asm_options] [define] -fr=[dest_dir] [source]" />
558 </command>
559 <command description="TI Assembler" name="asm_ti" require="TOOL_CHOICE==30">
560 <executable path="@echo" />
561 <args template="" />
562 </command>
563 </tool>
564 <tool description="Resources (RES)" name="RC">
565 <command description="Windows 32 Resource Compiler" name="rc">
566 <executable path="rc.exe">
567 <flag value="/l 0x409 /d _DEBUG" />
568 </executable>
569 <supports flag="/i" option="include" />
570 <args template="[include] /fo[dest] [source]" />
571 </command>
572 </tool>
573 <tool description="Generate target file" name="FFS_MAKETARGET" singleRun="yes">
574 <command description="Generate ffs_target.c file from ffs.c file" name="maketarget">
575 <!-- perl -w $(DRIVERS_APP_DIR)/ffs/board/mktarget.pl ../drivers/drv_app/ffs/board $(TEMPORARY_FILE_DIR)/drivers/drv_app/ffs/board -->
576 <executable path="perl"></executable>
577 <args template=" -w [source_dir]/mktarget.pl [source_dir] [dest_dir]" />
578 </command>
579 </tool>
580 <tool description="'intram' files generation" name="GEN_INTRAM" singleRun="yes">
581 <command description="TI Perl script to convert .c -&gt; .intram" name="gen_intram">
582 <executable path="gen_intram.pl" pathRef="TOOLS_DIR" toolRef="PERL" />
583 <args template="[source]" />
584 </command>
585 </tool>
586 <tool description="Header File Generator" name="VERIFY_TARGET_FILE">
587 <command description="" name="VERIFY_TARGET_FILE">
588 <executable pathRef="TOOLS" path="verify_target_file.pl" toolRef="PERL">
589 <flag value="tempfile 1" />
590 <!-- see verify_target_file.pl for parameters -->
591 </executable>
592 </command>
593 </tool>
594 <tool description="Header Files Generator" name="VERIFY_TARGET_FOLDER">
595 <command description="" name="VERIFY_TARGET_FOLDER">
596 <executable pathRef="TOOLS" path="verify_target_folder.pl" toolRef="PERL">
597 <flag value="tempfolder" />
598 <!-- see verify_target_folder.pl for parameters -->
599 </executable>
600 </command>
601 </tool>
602 <tool name="CFG_GEN" description=".cfg files generation" singleRun="true">
603 <command require="" name="cfg_gen" description="tool command" modifier="@">
604 <executable pathRef="TOOLS" path="cfg_gen.pl" toolRef="VERIFY_TARGET_FOLDER" />
605 <supports require="" option="cfg_gen" flag="" />
606 <args require="" template="[dest_dir] [cfg_gen]" />
607 </command>
608 </tool>
609 <tool name="HEADER_GEN_RV_SWE" description="rv_swe.h generation" singleRun="true">
610 <command require="" name="header_gen" description="description" modifier="@">
611 <executable pathRef="TOOLS" path="header_gen.pl" toolRef="VERIFY_TARGET_FILE" />
612 <supports require="" option="header_gen" flag="" />
613 <args require="" template="rv_swe [dest] [header_gen]" />
614 </command>
615 </tool>
616 <tool name="HEADER_GEN_RV_TEST_INC" description="rv_test_inc.h generation" singleRun="true">
617 <command require="" name="header_gen" description="description" modifier="@">
618 <executable pathRef="TOOLS" path="header_gen.pl" toolRef="VERIFY_TARGET_FILE" />
619 <supports require="" option="header_gen" flag="" />
620 <args require="" template="rv_test_inc [dest] [header_gen]" />
621 </command>
622 </tool>
623 <tool name="HEADER_GEN_RV_TEST_EXEC_LEVEL" description="rv_test_exec.h generation" singleRun="true">
624 <command require="" name="header_gen" description="description" modifier="@">
625 <executable pathRef="TOOLS" path="header_gen.pl" toolRef="VERIFY_TARGET_FILE" />
626 <supports require="" option="header_gen" flag="" />
627 <args require="" template="rv_test_exec_level [dest] [header_gen]" />
628 </command>
629 </tool>
630 <!-- END OF TI TOOLS SECTION -->
631 <!-- autoinclude section toolset 0 begin -->
632 <!-- autoinclude section toolset 0 end -->
633 <tool name="LINT" description="C source verification tool">
634 <command name="lint" description="description" modifier="@">
635 <executable pathRef="GPF_TOOLS" path="lint-nt.exe" />
636 <supports flag="-D" option="define" />
637 <supports flag="-U" option="undefine" />
638 <supports flag="-I" option="include" />
639 <supports flag="-I" option="ssa_include_var" />
640 <args template=" system/std.lnt [define] [undefine] [include] [ssa_include_var] [source]" />
641 </command>
642 </tool>
643 </toolSet>