Support for Kepler (TCI6634) device
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / package.bld
1 /*
2  * package.bld
3  *
4  * xdc build specification file for the EDMA DRV sample package.
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 */
41 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
42 var Pkg = xdc.useModule('xdc.bld.PackageContents');
44 var objListDA830 = [
45     "src/platforms/sample_da830_cfg.c",
46     "src/platforms/sample_da830_int_reg.c",
47     "src/sample_cs.c",
48     "src/sample_init.c",
49 ];
51 var objListC6748 = [
52     "src/platforms/sample_c6748_cfg.c",
53     "src/platforms/sample_c6748_int_reg.c",
54     "src/sample_cs.c",
55     "src/sample_init.c",
56 ];
58 var objListOMAPL138 = [
59     "src/platforms/sample_omapl138_cfg.c",
60     "src/platforms/sample_omapl138_int_reg.c",
61     "src/sample_cs.c",
62     "src/sample_init.c",
63 ];
65 var objListTI814X = [
66     "src/platforms/sample_ti814x_cfg.c",
67     "src/platforms/sample_ti814x_int_reg.c",
68     "src/sample_cs.c",
69     "src/sample_init.c",
70 ];
72 var objListOMAPL138ARM = [
73     "src/platforms/sample_omapl138_arm_cfg.c",
74     "src/platforms/sample_omapl138_arm_int_reg.c",
75     "src/sample_arm_cs.c",
76     "src/sample_arm_init.c",
77 ];
79 var objListTI814XARM = [
80     "src/platforms/sample_ti814x_arm_cfg.c",
81     "src/platforms/sample_ti814x_arm_int_reg.c",
82     "src/sample_arm_cs.c",
83     "src/sample_arm_init.c",
84 ];
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 ];
91 var objListSimTCI6616 = [
92     "src/platforms/sample_tci6616_cfg.c",
93     "src/platforms/sample_tci6616_int_reg.c",
94     "src/sample_cs.c",
95     "src/sample_init.c",
96 ];
97 var objListSimTCI6614 = [
98     "src/platforms/sample_tci6614_cfg.c",
99     "src/platforms/sample_tci6614_int_reg.c",
100     "src/sample_cs.c",
101     "src/sample_init.c",
102 ];
103 var objListSimC6657 = [
104     "src/platforms/sample_c6657_cfg.c",
105     "src/platforms/sample_c6657_int_reg.c",
106     "src/sample_cs.c",
107     "src/sample_init.c",
108 ];
109 var objListSimTCI6634 = [
110     "src/platforms/sample_tci6634_cfg.c",
111     "src/platforms/sample_tci6634_int_reg.c",
112     "src/sample_cs.c",
113     "src/sample_init.c",
114 ];
116 var objListEVM6670 = [
117     "src/platforms/sample_c6670_cfg.c",
118     "src/platforms/sample_c6670_int_reg.c",
119     "src/sample_cs.c",
120     "src/sample_init.c",
121 ];
123 var objListEVM6678 = [
124     "src/platforms/sample_c6678_cfg.c",
125     "src/platforms/sample_c6678_int_reg.c",
126     "src/sample_cs.c",
127     "src/sample_init.c",
128 ];
130 var objListEVMTCI6614 = [
131     "src/platforms/sample_tci6614_cfg.c",
132     "src/platforms/sample_tci6614_int_reg.c",
133     "src/sample_cs.c",
134     "src/sample_init.c",
135 ];
137 var objListEVM6657 = [
138     "src/platforms/sample_c6657_cfg.c",
139     "src/platforms/sample_c6657_int_reg.c",
140     "src/sample_cs.c",
141     "src/sample_init.c",
142 ];
144 var objListEVMTCI6634 = [
145     "src/platforms/sample_tci6634_cfg.c",
146     "src/platforms/sample_tci6634_int_reg.c",
147     "src/sample_cs.c",
148     "src/sample_init.c",
149 ];
151 var objListSimTI816X = [
152     "src/platforms/sample_ti816x_cfg.c",
153     "src/platforms/sample_ti816x_int_reg.c",
154     "src/sample_cs.c",
155     "src/sample_init.c",
156 ];
158 var objListEVMTI816X = [
159     "src/platforms/sample_ti816x_cfg.c",
160     "src/platforms/sample_ti816x_int_reg.c",
161     "src/sample_cs.c",
162     "src/sample_init.c",
163 ];
165 var objListEVM6472 = [
166     "src/platforms/sample_c6472_cfg.c",
167     "src/platforms/sample_c6472_int_reg.c",
168     "src/sample_cs.c",
169     "src/sample_init.c",
170 ];
172 var objListEVMTCI6486 = [
173     "src/platforms/sample_tci6486_cfg.c",
174     "src/platforms/sample_tci6486_int_reg.c",
175     "src/sample_cs.c",
176     "src/sample_init.c",
177 ];
179 var objListTI816XARM = [
180     "src/platforms/sample_ti816x_m3video_cfg.c",
181     "src/platforms/sample_ti816x_m3video_int_reg.c",
182     "src/sample_arm_cs.c",
183     "src/sample_arm_init.c",
184 ];
186 var chipdefines = [
187                     'CHIP_DA830',
188                     'SIMTCI6608',
189                     'SIMTCI6608',
190                     'SIMTCI6616',
191                     'SIMTCI6616',
192                     'SIMTCI6614',
193                     'SIMTCI6614',
194                     'SIMC6657',
195                     'SIMC6657',
196                     'SIMTCI6634',
197                     'SIMTCI6634',
198                     'CHIP_C6670',
199                     'CHIP_C6670',
200                     'CHIP_C6678',
201                     'CHIP_C6678',
202                     'CHIP_TCI6614',
203                     'CHIP_TCI6614',
204                     'CHIP_C6657',
205                     'CHIP_C6657',
206                     'CHIP_TCI6634',
207                     'CHIP_TCI6634',
208                     'CHIP_C6748',
209                     'CHIP_OMAPL138',
210                     'CHIP_OMAPL138',
211                     'SIMTI816X',
212                     'CHIP_TI816X',
213                     'CHIP_C6472',
214                     'CHIP_C6472',
215                     'CHIP_TCI6486',
216                     'CHIP_TCI6486',
217                     'CHIP_TI814X',
218                     'CHIP_TI814X',
219                     'CHIP_TI816X',
220                   ];
222 /* Platforms supported */
223 var plat_supported = [
224                         {
225                            platform: 'ti.platforms.evmDA830',   targ : 'C674', objList: objListDA830, dir : 'da830-evm/674/'
226                         },
227                         {
228                             platform: 'ti.platforms.simTCI6608', targ : 'C66',objList: objListSimTCI6608, dir : 'tci6608-sim/66/'
229                         },
230                         {
231                             platform: 'ti.platforms.simTCI6608', targ : 'C66_big_endian',objList: objListSimTCI6608, dir : 'tci6608-sim/66/'
232                         },
233                         {
234                             platform: 'ti.platforms.simTCI6616', targ : 'C66',objList: objListSimTCI6616, dir : 'tci6616-sim/66/'
235                         },
236                         {
237                             platform: 'ti.platforms.simTCI6616', targ : 'C66_big_endian',objList: objListSimTCI6616, dir : 'tci6616-sim/66/'
238                         },
239                         {
240                             platform: 'ti.platforms.simTCI6614', targ : 'C66',objList: objListSimTCI6614, dir : 'tci6614-sim/66/'
241                         },
242                         {
243                             platform: 'ti.platforms.simTCI6614', targ : 'C66_big_endian',objList: objListSimTCI6614, dir : 'tci6614-sim/66/'
244                         },
245                         {
246                             platform: 'ti.platforms.simC6657', targ : 'C66',objList: objListSimC6657, dir : 'c6657-sim/66/'
247                         },
248                         {
249                             platform: 'ti.platforms.simC6657', targ : 'C66_big_endian',objList: objListSimC6657, dir : 'c6657-sim/66/'
250                         },
251                         {
252                             platform: 'ti.platforms.simTCI6634', targ : 'C66',objList: objListSimTCI6634, dir : 'tci6634-sim/66/'
253                         },
254                         {
255                             platform: 'ti.platforms.simTCI6634', targ : 'C66_big_endian',objList: objListSimTCI6634, dir : 'tci6634-sim/66/'
256                         },
257                         {
258                             platform: 'ti.platforms.evm6670', targ : 'C66',objList: objListEVM6670, dir : 'c6670-evm/66'
259                         },
260                         {
261                             platform: 'ti.platforms.evm6670', targ : 'C66_big_endian',objList: objListEVM6670, dir : 'c6670-evm/66'
262                         },
263                         {
264                             platform: 'ti.platforms.evm6678', targ : 'C66',objList: objListEVM6678, dir : 'c6678-evm/66'
265                         },
266                         {
267                             platform: 'ti.platforms.evm6678', targ : 'C66_big_endian',objList: objListEVM6678, dir : 'c6678-evm/66'
268                         },
269                         {
270                             platform: 'ti.platforms.evmTCI6614', targ : 'C66',objList: objListEVMTCI6614, dir : 'tci6614-evm/66'
271                         },
272                         {
273                             platform: 'ti.platforms.evmTCI6614', targ : 'C66_big_endian',objList: objListEVMTCI6614, dir : 'tci6614-evm/66'
274                         },
275                         {
276                             platform: 'ti.platforms.evm6657', targ : 'C66',objList: objListEVM6657, dir : 'c6657-evm/66'
277                         },
278                         {
279                             platform: 'ti.platforms.evm6657', targ : 'C66_big_endian',objList: objListEVM6657, dir : 'c6657-evm/66'
280                         },
281                         {
282                             platform: 'ti.platforms.evmTCI6634', targ : 'C66',objList: objListEVMTCI6634, dir : 'tci6634-evm/66'
283                         },
284                         {
285                             platform: 'ti.platforms.evmTCI6634', targ : 'C66_big_endian',objList: objListEVMTCI6634, dir : 'tci6634-evm/66'
286                         },
287                         {
288                             platform: 'ti.platforms.evm6748',    targ : 'C674', objList: objListC6748, dir : 'c6748-evm/674/'
289                         },
290                         {
291                             platform: 'ti.platforms.evmOMAPL138',targ : 'C674', objList: objListOMAPL138, dir : 'omapl138-evm/674/'
292                         },
293                         {
294                             platform: 'ti.platforms.evmOMAPL138',targ : 'Arm9', objList: objListOMAPL138ARM, dir : 'omapl138-evm/arm9/'
295                         },
296                         {
297                             platform: 'ti.platforms.simDM8168', targ : 'C674',objList: objListSimTI816X, dir : 'ti816x-sim/674/'
298                         },
299                         {
300                             platform: 'ti.platforms.evmDM8168', targ : 'C674',objList: objListEVMTI816X, dir : 'ti816x-evm/674/'
301                         },
302                         {
303                             platform: 'ti.platforms.evm6472', targ : 'C64P', objList: objListEVM6472, dir : 'c6472-evm/64p/'
304                         },
305                         {
306                             platform: 'ti.platforms.evm6472', targ : 'C64P_big_endian', objList: objListEVM6472, dir : 'c6472-evm/64p/'
307                         },
308                         {
309                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P', objList: objListEVMTCI6486, dir : 'tci6486-evm/64p/'
310                         },
311                         {
312                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P_big_endian', objList: objListEVMTCI6486, dir : 'tci6486-evm/64p/'
313                         },
314                         {
315                             platform: 'ti.platforms.evmDM8148',targ : 'C674', objList: objListTI814X, dir : 'ti814x-evm/674/'
316                         },
317                         {
318                             platform: 'ti.platforms.evmDM8148',targ : 'A8F', objList: objListTI814XARM, dir : 'ti814x-evm/a8/'
319                         },
320                         {
321                             platform: 'ti.platforms.evmTI816X',targ : 'M3', objList: objListTI816XARM, dir : 'ti816x-evm/m3/'
322                         },
323                      ];
325 for each (var targ in Build.targets)
327     for each (var plat in targ.platforms)
328     {
329         var lib = "lib/";
330         var bool = 0;
332         if (targ.platforms.length == 0)
333                 break;
334         
335         for (var i = 0; i < plat_supported.length; i++)
336         {
337              if (java.lang.String(plat).equals(plat_supported[i].platform))
338             {
339                 var chip = "-D";
340                 if (java.lang.String(targ.name).equals(plat_supported[i].targ))
341                 {
342                     /* Choose the selected platform */
343                     lib = lib + plat_supported[i].dir;
344                     chip = chip + chipdefines[i];
345                     bool = 1;
346                     break;
347                 }
348             }
349         }
351         if (bool == 0)
352                 {
353             throw new Error('Unexpected value in "platform" parameter')
354                 }
356         if (java.lang.String(targ.model.endian).equals("big"))  {
357             Pkg.addLibrary(lib + "debug/" + Pkg.name, targ,
358                 { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
359                 ).addObjects(plat_supported[i].objList);
360             Pkg.addLibrary(lib + "release/" + Pkg.name, targ,
361                 { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
362                 ).addObjects(plat_supported[i].objList);
363         } else {
364             Pkg.addLibrary(lib + "debug/" + Pkg.name, targ,
365                 { defs:chip, profile: "debug"}
366                 ).addObjects(plat_supported[i].objList);
367             Pkg.addLibrary(lib + "release/" + Pkg.name, targ,
368                 { defs:chip, profile: "release"}
369                 ).addObjects(plat_supported[i].objList);
370         }
371     }
375 Pkg.otherFiles=[
376         '.settings/org.eclipse.cdt.core.prefs',
377         'lib/da830/debug/ti.sdo.edma3.drv.sample.a674',
378         'lib/da830/release/ti.sdo.edma3.drv.sample.a674',
379         'lib/c6748/debug/ti.sdo.edma3.drv.sample.a674',
380         'lib/c6748/release/ti.sdo.edma3.drv.sample.a674',
381         'lib/omapl138/debug/ti.sdo.edma3.drv.sample.a674',
382         'lib/omapl138/release/ti.sdo.edma3.drv.sample.a674',
383         'lib/omapl138/debug/ti.sdo.edma3.drv.sample.ae9',
384         'lib/omapl138/release/ti.sdo.edma3.drv.sample.ae9',
385         'lib/ti814x/debug/ti.sdo.edma3.drv.sample.a674',
386         'lib/ti814x/release/ti.sdo.edma3.drv.sample.a674',
387         'lib/ti814x/debug/ti.sdo.edma3.drv.sample.aea8f',
388         'lib/ti814x/release/ti.sdo.edma3.drv.sample.aea8f',
389         'lib/tci6608/debug/ti.sdo.edma3.drv.sample.ae66',
390         'lib/tci6608/debug/ti.sdo.edma3.drv.sample.ae66e',
391         'lib/tci6608/release/ti.sdo.edma3.drv.sample.ae66',
392         'lib/tci6608/release/ti.sdo.edma3.drv.sample.ae66e',
393         'lib/tci6616/debug/ti.sdo.edma3.drv.sample.ae66',
394         'lib/tci6616/debug/ti.sdo.edma3.drv.sample.ae66e',
395         'lib/tci6616/release/ti.sdo.edma3.drv.sample.ae66',
396         'lib/tci6616/release/ti.sdo.edma3.drv.sample.ae66e',
397         'lib/tci6614/debug/ti.sdo.edma3.drv.sample.ae66',
398         'lib/tci6614/debug/ti.sdo.edma3.drv.sample.ae66e',
399         'lib/tci6614/release/ti.sdo.edma3.drv.sample.ae66',
400         'lib/tci6614/release/ti.sdo.edma3.drv.sample.ae66e',
401         'lib/c6657/debug/ti.sdo.edma3.drv.sample.ae66',
402         'lib/c6657/debug/ti.sdo.edma3.drv.sample.ae66e',
403         'lib/c6657/release/ti.sdo.edma3.drv.sample.ae66',
404         'lib/c6657/release/ti.sdo.edma3.drv.sample.ae66e',
405         'lib/tci6634/debug/ti.sdo.edma3.drv.sample.ae66',
406         'lib/tci6634/debug/ti.sdo.edma3.drv.sample.ae66e',
407         'lib/tci6634/release/ti.sdo.edma3.drv.sample.ae66',
408         'lib/tci6634/release/ti.sdo.edma3.drv.sample.ae66e',
409         'lib/c6670/debug/ti.sdo.edma3.drv.sample.ae66',
410         'lib/c6670/debug/ti.sdo.edma3.drv.sample.ae66e',
411         'lib/c6670/release/ti.sdo.edma3.drv.sample.ae66',
412         'lib/c6670/release/ti.sdo.edma3.drv.sample.ae66e',
413         'lib/c6678/debug/ti.sdo.edma3.drv.sample.ae66',
414         'lib/c6678/debug/ti.sdo.edma3.drv.sample.ae66e',
415         'lib/c6678/release/ti.sdo.edma3.drv.sample.ae66',
416         'lib/c6678/release/ti.sdo.edma3.drv.sample.ae66e',
417         'lib/simti816x/debug/ti.sdo.edma3.drv.sample.a674',
418         'lib/simti816x/release/ti.sdo.edma3.drv.sample.a674',
419         'lib/evmti816x/debug/ti.sdo.edma3.drv.sample.a674',
420         'lib/evmti816x/release/ti.sdo.edma3.drv.sample.a674',
421         'lib/c6472/debug/ti.sdo.edma3.drv.sample.a64P',
422         'lib/c6472/debug/ti.sdo.edma3.drv.sample.a64Pe',
423         'lib/c6472/release/ti.sdo.edma3.drv.sample.a64P',
424         'lib/c6472/release/ti.sdo.edma3.drv.sample.a64Pe',
425         'lib/tci6486/debug/ti.sdo.edma3.drv.sample.a64P',
426         'lib/tci6486/debug/ti.sdo.edma3.drv.sample.a64Pe',
427         'lib/tci6486/release/ti.sdo.edma3.drv.sample.a64P',
428         'lib/tci6486/release/ti.sdo.edma3.drv.sample.a64Pe',
429         'src/sample_cs.c',
430         'src/sample_init.c',
431         'src/sample_arm_cs.c',
432         'src/sample_arm_init.c',
433         'src/platforms/sample_da830_cfg.c',
434         'src/platforms/sample_da830_int_reg.c',
435         'src/platforms/sample_c6748_cfg.c',
436         'src/platforms/sample_c6748_int_reg.c',
437         'src/platforms/sample_omapl138_cfg.c',
438         'src/platforms/sample_omapl138_int_reg.c',
439         'src/platforms/sample_omapl138_arm_cfg.c',
440         'src/platforms/sample_omapl138_arm_int_reg.c',
441         'src/platforms/sample_ti814x_cfg.c',
442         'src/platforms/sample_ti814x_int_reg.c',
443         'src/platforms/sample_ti814x_arm_cfg.c',
444         'src/platforms/sample_ti814x_arm_int_reg.c',
445         'src/platforms/sample_tci6608_cfg.c',
446         'src/platforms/sample_tci6608_int_reg.c',
447         'src/platforms/sample_tci6616_cfg.c',
448         'src/platforms/sample_tci6616_int_reg.c',
449         'src/platforms/sample_tci6614_cfg.c',
450         'src/platforms/sample_tci6614_int_reg.c',
451         'src/platforms/sample_c6657_cfg.c',
452         'src/platforms/sample_c6657_int_reg.c',
453         'src/platforms/sample_tci6634_cfg.c',
454         'src/platforms/sample_tci6634_int_reg.c',
455         'src/platforms/sample_c6670_cfg.c',
456         'src/platforms/sample_c6670_int_reg.c',
457         'src/platforms/sample_c6678_cfg.c',
458         'src/platforms/sample_c6678_int_reg.c',
459         'src/platforms/sample_ti816x_cfg.c',
460         'src/platforms/sample_ti816x_int_reg.c',
461         'src/platforms/sample_c6472_cfg.c',
462         'src/platforms/sample_c6472_int_reg.c',
463         'src/platforms/sample_tci6486_cfg.c',
464         'src/platforms/sample_tci6486_int_reg.c',
465         '.cdtproject',
466         '.project',
467         'bios6_edma3_drv_sample.h',
468         'package.bld',
469         'package.xs',
470 ];