Replaced simTCI6634 with simKepler as per XDC tools
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / package.bld
1 /*
2  * package.bld
3  *
4  * xdc build specification file for the RM sample module.
5  *
6  * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
7  *
8  *
9  *  Redistribution and use in source and binary forms, with or without
10  *  modification, are permitted provided that the following conditions
11  *  are met:
12  *
13  *    Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  *
16  *    Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the
19  *    distribution.
20  *
21  *    Neither the name of Texas Instruments Incorporated nor the names of
22  *    its contributors may be used to endorse or promote products derived
23  *    from this software without specific prior written permission.
24  *
25  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37 */
40 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
41 var Pkg = xdc.useModule('xdc.bld.PackageContents');
43 var objListDA830 = [
44     "src/platforms/sample_da830_cfg.c",
45     "src/platforms/sample_da830_int_reg.c",
46     "src/sample_cs.c",
47     "src/sample_init.c",
48 ];
50 var objListC6748 = [
51     "src/platforms/sample_c6748_cfg.c",
52     "src/platforms/sample_c6748_int_reg.c",
53     "src/sample_cs.c",
54     "src/sample_init.c",
55 ];
57 var objListOMAPL138 = [
58     "src/platforms/sample_omapl138_cfg.c",
59     "src/platforms/sample_omapl138_int_reg.c",
60     "src/sample_cs.c",
61     "src/sample_init.c",
62 ];
64 var objListTI814X = [
65     "src/platforms/sample_ti814x_cfg.c",
66     "src/platforms/sample_ti814x_int_reg.c",
67     "src/sample_cs.c",
68     "src/sample_init.c",
69 ];
71 var objListTI814XARM = [
72     "src/platforms/sample_ti814x_arm_cfg.c",
73     "src/platforms/sample_ti814x_arm_int_reg.c",
74     "src/sample_arm_cs.c",
75     "src/sample_arm_init.c",
76 ];
78 var objListOMAPL138ARM = [
79     "src/platforms/sample_omapl138_arm_cfg.c",
80     "src/platforms/sample_omapl138_arm_int_reg.c",
81     "src/sample_arm_cs.c",
82     "src/sample_init.c",
83 ];
85 var objListSimTCI6608 = [
86     "src/platforms/sample_tci6608_cfg.c",
87     "src/platforms/sample_tci6608_int_reg.c",
88     "src/sample_cs.c",
89     "src/sample_init.c",
90 ];
92 var objListSimTCI6616 = [
93     "src/platforms/sample_tci6616_cfg.c",
94     "src/platforms/sample_tci6616_int_reg.c",
95     "src/sample_cs.c",
96     "src/sample_init.c",
97 ];
99 var objListSimTCI6614 = [
100     "src/platforms/sample_tci6614_cfg.c",
101     "src/platforms/sample_tci6614_int_reg.c",
102     "src/sample_cs.c",
103     "src/sample_init.c",
104 ];
106 var objListSimC6657 = [
107     "src/platforms/sample_c6657_cfg.c",
108     "src/platforms/sample_c6657_int_reg.c",
109     "src/sample_cs.c",
110     "src/sample_init.c",
111 ];
113 var objListSimTCI6634 = [
114     "src/platforms/sample_tci6634_cfg.c",
115     "src/platforms/sample_tci6634_int_reg.c",
116     "src/sample_cs.c",
117     "src/sample_init.c",
118 ];
120 var objListEVM6670 = [
121     "src/platforms/sample_c6670_cfg.c",
122     "src/platforms/sample_c6670_int_reg.c",
123     "src/sample_cs.c",
124     "src/sample_init.c",
125 ];
127 var objListEVM6678 = [
128     "src/platforms/sample_c6678_cfg.c",
129     "src/platforms/sample_c6678_int_reg.c",
130     "src/sample_cs.c",
131     "src/sample_init.c",
132 ];
134 var objListEVMTCI6614 = [
135     "src/platforms/sample_tci6614_cfg.c",
136     "src/platforms/sample_tci6614_int_reg.c",
137     "src/sample_cs.c",
138     "src/sample_init.c",
139 ];
141 var objListEVM6657 = [
142     "src/platforms/sample_c6657_cfg.c",
143     "src/platforms/sample_c6657_int_reg.c",
144     "src/sample_cs.c",
145     "src/sample_init.c",
146 ];
148 var objListEVMTCI6634 = [
149     "src/platforms/sample_tci6634_cfg.c",
150     "src/platforms/sample_tci6634_int_reg.c",
151     "src/sample_cs.c",
152     "src/sample_init.c",
153 ];
155 var objListSimTI816X = [
156     "src/platforms/sample_ti816x_cfg.c",
157     "src/platforms/sample_ti816x_int_reg.c",
158     "src/sample_cs.c",
159     "src/sample_init.c",
160 ];
162 var objListEVMTI816X = [
163     "src/platforms/sample_ti816x_cfg.c",
164     "src/platforms/sample_ti816x_int_reg.c",
165     "src/sample_cs.c",
166     "src/sample_init.c",
167 ];
169 var objListEVM6472= [
170     "src/platforms/sample_c6472_cfg.c",
171     "src/platforms/sample_c6472_int_reg.c",
172     "src/sample_cs.c",
173     "src/sample_init.c",
174 ];
176 var objListEVMTCI6486= [
177     "src/platforms/sample_tci6486_cfg.c",
178     "src/platforms/sample_tci6486_int_reg.c",
179     "src/sample_cs.c",
180     "src/sample_init.c",
181 ];
183 var objListTI816XARM = [
184     "src/platforms/sample_ti816x_cfg.c",
185     "src/platforms/sample_ti816x_int_reg.c",
186     "src/sample_arm_cs.c",
187     "src/sample_arm_init.c",
188 ];
190 var chipdefines = [
191                     'CHIP_DA830',
192                     'SIMTCI6608',
193                     'SIMTCI6608',
194                     'SIMTCI6616',
195                     'SIMTCI6616',
196                     'SIMTCI6614',
197                     'SIMTCI6614',
198                     'SIMC6657',
199                     'SIMC6657',
200                     'SIMTCI6634',
201                     'SIMTCI6634',
202                     'CHIP_C6670',
203                     'CHIP_C6670',
204                     'CHIP_C6678',
205                     'CHIP_C6678',
206                     'CHIP_TCI6614',
207                     'CHIP_TCI6614',
208                     'CHIP_C6657',
209                     'CHIP_C6657',
210                     'CHIP_TCI6634',
211                     'CHIP_TCI6634',
212                     'CHIP_C6748',
213                     'CHIP_OMAPL138',
214                     'CHIP_OMAPL138',
215                     'SIMTI816X',
216                     'CHIP_TI816X',
217                     'CHIP_C6472',
218                     'CHIP_C6472',
219                     'CHIP_TCI6486',
220                     'CHIP_TCI6486',
221                     'CHIP_TI814X',
222                     'CHIP_TI814X',
223                     'CHIP_TI816X',
224                   ];
226 /* Platforms supported */
227 var plat_supported = [
228                         {
229                            platform: 'ti.platforms.evmDA830',   targ : 'C674', objList: objListDA830, dir : 'da830-evm/674/'
230                         },
231                         {
232                             platform: 'ti.platforms.simTCI6608', targ : 'C66',objList: objListSimTCI6608, dir : 'tci6608-sim/66/'
233                         },
234                         {
235                             platform: 'ti.platforms.simTCI6608', targ : 'C66_big_endian',objList: objListSimTCI6608, dir : 'tci6608-sim/66/'
236                         },
237                         {
238                             platform: 'ti.platforms.simTCI6616', targ : 'C66',objList: objListSimTCI6616, dir : 'tci6616-sim/66/'
239                         },
240                         {
241                             platform: 'ti.platforms.simTCI6616', targ : 'C66_big_endian',objList: objListSimTCI6616, dir : 'tci6616-sim/66/'
242                         },
243                         {
244                             platform: 'ti.platforms.simTCI6614', targ : 'C66',objList: objListSimTCI6614, dir : 'tci6614-sim/66/'
245                         },
246                         {
247                             platform: 'ti.platforms.simTCI6614', targ : 'C66_big_endian',objList: objListSimTCI6614, dir : 'tci6614-sim/66/'
248                         },
249                         {
250                             platform: 'ti.platforms.simC6657', targ : 'C66',objList: objListSimC6657, dir : 'c6657-sim/66/'
251                         },
252                         {
253                             platform: 'ti.platforms.simC6657', targ : 'C66_big_endian',objList: objListSimC6657, dir : 'c6657-sim/66/'
254                         },
255                         {
256                             platform: 'ti.platforms.simKepler', targ : 'C66',objList: objListSimTCI6634, dir : 'tci6634-sim/66/'
257                         },
258                         {
259                             platform: 'ti.platforms.simKepler', targ : 'C66_big_endian',objList: objListSimTCI6634, dir : 'tci6634-sim/66/'
260                         },
261                         {
262                             platform: 'ti.platforms.evm6670', targ : 'C66',objList: objListEVM6670, dir : 'c6670-evm/66/'
263                         },
264                         {
265                             platform: 'ti.platforms.evm6670', targ : 'C66_big_endian',objList: objListEVM6670, dir : 'c6670-evm/66/'
266                         },
267                         {
268                             platform: 'ti.platforms.evm6678', targ : 'C66',objList: objListEVM6678, dir : 'c6678-evm/66/'
269                         },
270                         {
271                             platform: 'ti.platforms.evm6678', targ : 'C66_big_endian',objList: objListEVM6678, dir : 'c6678-evm/66/'
272                         },
273                         {
274                             platform: 'ti.platforms.evmTCI6614', targ : 'C66',objList: objListEVMTCI6614, dir : 'tci6614-evm/66/'
275                         },
276                         {
277                             platform: 'ti.platforms.evmTCI6614', targ : 'C66_big_endian',objList: objListEVMTCI6614, dir : 'tci6614-evm/66/'
278                         },
279                         {
280                             platform: 'ti.platforms.evm6657', targ : 'C66',objList: objListEVM6657, dir : 'c6657-evm/66/'
281                         },
282                         {
283                             platform: 'ti.platforms.evm6657', targ : 'C66_big_endian',objList: objListEVM6657, dir : 'c6657-evm/66/'
284                         },
285                         {
286                             platform: 'ti.platforms.evmTCI6634', targ : 'C66',objList: objListEVMTCI6634, dir : 'tci6634-evm/66/'
287                         },
288                         {
289                             platform: 'ti.platforms.evmTCI6634', targ : 'C66_big_endian',objList: objListEVMTCI6634, dir : 'tci6634-evm/66/'
290                         },
291                         {
292                             platform: 'ti.platforms.evm6748',    targ : 'C674', objList: objListC6748, dir : 'c6748-evm/674/'
293                         },
294                         {
295                             platform: 'ti.platforms.evmOMAPL138',targ : 'C674', objList: objListOMAPL138, dir : 'omapl138-evm/674/'
296                         },
297                         {
298                             platform: 'ti.platforms.evmOMAPL138',targ : 'Arm9', objList: objListOMAPL138ARM, dir : 'omapl138-evm/arm9/'
299                         },
300                         {
301                             platform: 'ti.platforms.simDM8168', targ : 'C674',objList: objListSimTI816X, dir : 'ti816x-sim/674/'
302                         },
303                         {
304                             platform: 'ti.platforms.evmDM8168', targ : 'C674',objList: objListEVMTI816X, dir : 'ti816x-evm/674/'
305                         },
306                         {
307                             platform: 'ti.platforms.evm6472', targ : 'C64P', objList: objListEVM6472, dir : 'c6472-evm/64p/'
308                         },
309                         {
310                             platform: 'ti.platforms.evm6472', targ : 'C64P_big_endian', objList: objListEVM6472, dir : 'c6472-evm/64p/'
311                         },
312                         {
313                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P', objList: objListEVMTCI6486, dir : 'tci6486-evm/64p/'
314                         },
315                         {
316                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P_big_endian', objList: objListEVMTCI6486, dir : 'tci6486-evm/64p/'
317                         },
318                         {
319                             platform: 'ti.platforms.evmDM8148',targ : 'C674', objList: objListTI814X, dir : 'ti814x-evm/674/'
320                         },
321                         {
322                             platform: 'ti.platforms.evmDM8148',targ : 'A8F', objList: objListTI814XARM, dir : 'ti814x-evm/a8/'
323                         },
324                         {
325                             platform: 'ti.platforms.evmTI816X',targ : 'M3', objList: objListTI816XARM, dir : 'ti816x-evm/m3/'
326                         },
327                      ];
329 for each (var targ in Build.targets)
331     for each (var plat in targ.platforms)
332     {
333         var lib = "lib/";
334         var bool = 0;
336         if (targ.platforms.length == 0)
337                 break;
338         
339         for (var i = 0; i < plat_supported.length; i++)
340         {
341             if (java.lang.String(plat).equals(plat_supported[i].platform))
342             {
343                 var chip = "-D";
344                 if (java.lang.String(targ.name).equals(plat_supported[i].targ))
345                 {
346                     /* Choose the selected platform */
347                     lib = lib + plat_supported[i].dir;
348                     chip = chip + chipdefines[i];
349                     bool = 1;
350                     break;
351                 }
352             }
353         }
355         if (bool == 0)
356             throw new Error('Unexpected value in "platform" parameter')
358         if (java.lang.String(targ.model.endian).equals("big"))  {
359             Pkg.addLibrary(lib + "debug/" + Pkg.name, targ,
360                 { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
361                 ).addObjects(plat_supported[i].objList);
362             Pkg.addLibrary(lib + "release/" + Pkg.name, targ,
363                 { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
364                 ).addObjects(plat_supported[i].objList);
365         } else {
366             Pkg.addLibrary(lib + "debug/" + Pkg.name, targ,
367                 { defs:chip, profile: "debug"}
368                 ).addObjects(plat_supported[i].objList);
369             Pkg.addLibrary(lib + "release/" + Pkg.name, targ,
370                 { defs:chip, profile: "release"}
371                 ).addObjects(plat_supported[i].objList);
372         }
373     }
377 Pkg.otherFiles=[
378         '.settings/org.eclipse.cdt.core.prefs',
379         'lib/da830/debug/ti.sdo.edma3.rm.sample.a674',
380         'lib/da830/release/ti.sdo.edma3.rm.sample.a674',
381         'lib/c6748/debug/ti.sdo.edma3.rm.sample.a674',
382         'lib/c6748/release/ti.sdo.edma3.rm.sample.a674',
383         'lib/omapl138/debug/ti.sdo.edma3.rm.sample.a674',
384         'lib/omapl138/release/ti.sdo.edma3.rm.sample.a674',
385         'lib/omapl138/debug/ti.sdo.edma3.rm.sample.ae9',
386         'lib/omapl138/release/ti.sdo.edma3.rm.sample.ae9',
387         'lib/ti814x/debug/ti.sdo.edma3.rm.sample.a674',
388         'lib/ti814x/release/ti.sdo.edma3.rm.sample.a674',
389         'lib/ti814x/debug/ti.sdo.edma3.rm.sample.aea8f',
390         'lib/ti814x/release/ti.sdo.edma3.rm.sample.aea8f',
391         'lib/tci6608/debug/ti.sdo.edma3.rm.sample.ae66',
392         'lib/tci6608/debug/ti.sdo.edma3.rm.sample.ae66e',
393         'lib/tci6608/release/ti.sdo.edma3.rm.sample.ae66',
394         'lib/tci6608/release/ti.sdo.edma3.rm.sample.ae66e',
395         'lib/tci6616/debug/ti.sdo.edma3.rm.sample.ae66',
396         'lib/tci6616/debug/ti.sdo.edma3.rm.sample.ae66e',
397         'lib/tci6616/release/ti.sdo.edma3.rm.sample.ae66',
398         'lib/tci6616/release/ti.sdo.edma3.rm.sample.ae66e',
399         'lib/tci6614/debug/ti.sdo.edma3.rm.sample.ae66',
400         'lib/tci6614/debug/ti.sdo.edma3.rm.sample.ae66e',
401         'lib/tci6614/release/ti.sdo.edma3.rm.sample.ae66',
402         'lib/tci6614/release/ti.sdo.edma3.rm.sample.ae66e',
403         'lib/c6657/debug/ti.sdo.edma3.rm.sample.ae66',
404         'lib/c6657/debug/ti.sdo.edma3.rm.sample.ae66e',
405         'lib/c6657/release/ti.sdo.edma3.rm.sample.ae66',
406         'lib/c6657/release/ti.sdo.edma3.rm.sample.ae66e',
407         'lib/tci6634/debug/ti.sdo.edma3.rm.sample.ae66',
408         'lib/tci6634/debug/ti.sdo.edma3.rm.sample.ae66e',
409         'lib/tci6634/release/ti.sdo.edma3.rm.sample.ae66',
410         'lib/tci6634/release/ti.sdo.edma3.rm.sample.ae66e',
411         'lib/c6670/debug/ti.sdo.edma3.rm.sample.ae66',
412         'lib/c6670/debug/ti.sdo.edma3.rm.sample.ae66e',
413         'lib/c6670/release/ti.sdo.edma3.rm.sample.ae66',
414         'lib/c6670/release/ti.sdo.edma3.rm.sample.ae66e',
415         'lib/c6678/debug/ti.sdo.edma3.rm.sample.ae66',
416         'lib/c6678/debug/ti.sdo.edma3.rm.sample.ae66e',
417         'lib/c6678/release/ti.sdo.edma3.rm.sample.ae66',
418         'lib/c6678/release/ti.sdo.edma3.rm.sample.ae66e',
419         'lib/simti816x/debug/ti.sdo.edma3.rm.sample.a674',
420         'lib/simti816x/release/ti.sdo.edma3.rm.sample.a674',
421         'lib/evmti816x/debug/ti.sdo.edma3.rm.sample.a674',
422         'lib/evmti816x/release/ti.sdo.edma3.rm.sample.a674',
423         'lib/c6472/debug/ti.sdo.edma3.rm.sample.a64P',
424         'lib/c6472/debug/ti.sdo.edma3.rm.sample.a64Pe',
425         'lib/c6472/release/ti.sdo.edma3.rm.sample.a64P',
426         'lib/c6472/release/ti.sdo.edma3.rm.sample.a64Pe',
427         'lib/tci6486/debug/ti.sdo.edma3.rm.sample.a64P',
428         'lib/tci6486/debug/ti.sdo.edma3.rm.sample.a64Pe',
429         'lib/tci6486/release/ti.sdo.edma3.rm.sample.a64P',
430         'lib/tci6486/release/ti.sdo.edma3.rm.sample.a64Pe',
431         'src/sample_cs.c',
432         'src/sample_init.c',
433         'src/sample_arm_cs.c',
434         'src/sample_arm_init.c',
435         'src/platforms/sample_da830_cfg.c',
436         'src/platforms/sample_da830_int_reg.c',
437         'src/platforms/sample_c6748_cfg.c',
438         'src/platforms/sample_c6748_int_reg.c',
439         'src/platforms/sample_omapl138_cfg.c',
440         'src/platforms/sample_omapl138_int_reg.c',
441         'src/platforms/sample_omapl138_arm_cfg.c',
442         'src/platforms/sample_omapl138_arm_int_reg.c',
443         'src/platforms/sample_ti814x_cfg.c',
444         'src/platforms/sample_ti814x_int_reg.c',
445         'src/platforms/sample_ti814x_arm_cfg.c',
446         'src/platforms/sample_ti814x_arm_int_reg.c',
447         'src/platforms/sample_tci6608_cfg.c',
448         'src/platforms/sample_tci6608_int_reg.c',
449         'src/platforms/sample_tci6616_cfg.c',
450         'src/platforms/sample_tci6616_int_reg.c',
451         'src/platforms/sample_tci6614_cfg.c',
452         'src/platforms/sample_tci6614_int_reg.c',
453         'src/platforms/sample_c6657_cfg.c',
454         'src/platforms/sample_c6657_int_reg.c',
455         'src/platforms/sample_tci6634_cfg.c',
456         'src/platforms/sample_tci6634_int_reg.c',
457         'src/platforms/sample_c6670_cfg.c',
458         'src/platforms/sample_c6670_int_reg.c',
459         'src/platforms/sample_c6678_cfg.c',
460         'src/platforms/sample_c6678_int_reg.c',
461         'src/platforms/sample_ti816x_cfg.c',
462         'src/platforms/sample_ti816x_int_reg.c',
463         'src/platforms/sample_c6472_cfg.c',
464         'src/platforms/sample_c6472_int_reg.c',
465         'src/platforms/sample_tci6486_cfg.c',
466         'src/platforms/sample_tci6486_int_reg.c',
467         '.cdtproject',
468         '.project',
469         'bios6_edma3_rm_sample.h',
470         'package.bld',
471         'package.xs',
472 ];