]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blob - packages/ti/sdo/edma3/rm/package.bld
Changed DM740 --> TI816X
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / package.bld
1 /*
2  * package.bld
3  *
4  * xdc build specification file for the RM 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 */
38 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
39 var Pkg = xdc.useModule('xdc.bld.PackageContents');
41 var objListDA830 = [
42     /* The configuration file. */
43     "src/configs/edma3_da830_cfg.c",
44     /* Common file. */
45     "src/edma3resmgr.c",
46     /* File defining internal data structures. */
47     "src/edma3_rm_gbl_data.c",
48 ];
50 var objListC6748 = [
51     /* The configuration file. */
52     "src/configs/edma3_c6748_cfg.c",
53     /* Common file. */
54     "src/edma3resmgr.c",
55     /* File defining internal data structures. */
56     "src/edma3_rm_gbl_data.c",
57 ];
59 var objListOMAPL138 = [
60     /* The configuration file. */
61     "src/configs/edma3_omapl138_cfg.c",
62     /* Common file. */
63     "src/edma3resmgr.c",
64     /* File defining internal data structures. */
65     "src/edma3_rm_gbl_data.c",
66 ];
68 var objListSimTCI6498 = [
69     /* The configuration file. */
70     "src/configs/edma3_tci6498_cfg.c",
71     /* Common file. */
72     "src/edma3resmgr.c",
73     /* File defining internal data structures. */
74     "src/edma3_rm_gbl_data.c",
75 ];
77 var objListSimTI816X = [
78     /* The configuration file. */
79     "src/configs/edma3_ti816x_cfg.c",
80     /* Common file. */
81     "src/edma3resmgr.c",
82     /* File defining internal data structures. */
83     "src/edma3_rm_gbl_data.c",
84 ];
86 var objListEVM6472 = [
87     /* The configuration file. */
88     "src/configs/edma3_c6472_cfg.c",
89     /* Common file. */
90     "src/edma3resmgr.c",
91     /* File defining internal data structures. */
92     "src/edma3_rm_gbl_data.c",
93 ];
95 var objListEVMTCI6486 = [
96     /* The configuration file. */
97     "src/configs/edma3_tci6486_cfg.c",
98     /* Common file. */
99     "src/edma3resmgr.c",
100     /* File defining internal data structures. */
101     "src/edma3_rm_gbl_data.c",
102 ];
104 var objListGeneric = [
105     /* Common file. */
106     "src/edma3resmgr.c",
107     /* File defining internal data structures. */
108     "src/edma3_rm_gbl_data.c",
109 ];
112 var objList = [
113     objListDA830,
114     objListSimTCI6498,
115     objListC6748,
116     objListOMAPL138,
117     objListSimTI816X,
118     objListEVM6472,
119     objListEVMTCI6486,
120 ];
122 /* Platforms supported */
123 var plat_supported = [
124                     'ti.platforms.evmDA830',
125                     'ti.platforms.simTCI6498',
126                     'ti.platforms.evm6748',
127                     'ti.platforms.evmOMAPL138',
128                     'ti.platforms.simDM8168',
129                     'ti.platforms.evm6472',
130                     'ti.platforms.evmTCI6486',
131                ];
133 /* Directories for each platform */
134 var dir = [
135             'da830/',
136             'tci6498/',
137             'c6748/',
138             'omapl138/',
139             'ti816x/',
140             'c6472/',
141             'tci6486/',
142             'generic/',
143           ];
145 for each (var targ in Build.targets)
147     for each (var plat in targ.platforms)
148     {
149         var lib = "lib/";
150         var bool = 0;
152         for (var i = 0; i < plat_supported.length; i++)
153             {
154             if (java.lang.String(plat).equals(plat_supported[i]))
155                 {
156                     /* Choose the selected platform */
157                     lib = lib + dir[i];
158                     bool = 1;
159                     break;
160                 }
161             }
163             if (bool == 0) {
164                 //throw new Error('Unexpected value in "platform" parameter')
165         }
167         if (java.lang.String(targ.model.endian).equals("big"))  {
168             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
169                 { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
170                 ).addObjects(objList[i]);
171             Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
172                 { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
173                 ).addObjects(objList[i]);
174         } else {
175             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
176                 { defs:"", profile: "debug"}
177                 ).addObjects(objList[i]);
178             Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
179                 { defs:"", profile: "release"}
180                 ).addObjects(objList[i]);
181         }
182     }
184     var lib = "lib/generic/";
186     /* Also build a generic library */
187         if (java.lang.String(targ.model.endian).equals("big"))  {
188             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
189                 { defs:"-DBIG_ENDIAN_MODE -DGENERIC ", profile: "debug"}
190                 ).addObjects(objListGeneric);
191                 Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
192                 { defs:"-DBIG_ENDIAN_MODE -DGENERIC ", profile: "release"}
193                 ).addObjects(objListGeneric);
194     } else {
195             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
196                 { defs:" -DGENERIC ", profile: "debug"}
197                 ).addObjects(objListGeneric);
198                 Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
199                 { defs:" -DGENERIC ", profile: "release"}
200                 ).addObjects(objListGeneric);
201     }
205 Pkg.otherFiles=[
206         '.settings/org.eclipse.cdt.core.prefs',
207         'docs',
208         'lib/da830/Debug/ti.sdo.edma3.rm.a674',
209         'lib/da830/Release/ti.sdo.edma3.rm.a674',
210         'lib/c6748/Debug/ti.sdo.edma3.rm.a674',
211         'lib/c6748/Release/ti.sdo.edma3.rm.a674',
212         'lib/omapl138/Debug/ti.sdo.edma3.rm.a674',
213         'lib/omapl138/Release/ti.sdo.edma3.rm.a674',
214         'lib/tci6498/Debug/ti.sdo.edma3.rm.a64P',
215         'lib/tci6498/Debug/ti.sdo.edma3.rm.a64Pe',
216         'lib/tci6498/Release/ti.sdo.edma3.rm.a64P',
217         'lib/tci6498/Release/ti.sdo.edma3.rm.a64Pe',
218         'lib/ti816x/Debug/ti.sdo.edma3.rm.a674',
219         'lib/ti816x/Release/ti.sdo.edma3.rm.a674',
220         'lib/c6472/Debug/ti.sdo.edma3.rm.a64P',
221         'lib/c6472/Debug/ti.sdo.edma3.rm.a64Pe',
222         'lib/c6472/Release/ti.sdo.edma3.rm.a64P',
223         'lib/c6472/Release/ti.sdo.edma3.rm.a64Pe',
224         'lib/tci6486/Debug/ti.sdo.edma3.rm.a64P',
225         'lib/tci6486/Debug/ti.sdo.edma3.rm.a64Pe',
226         'lib/tci6486/Release/ti.sdo.edma3.rm.a64P',
227         'lib/tci6486/Release/ti.sdo.edma3.rm.a64Pe',
228         'lib/Debug/ti.sdo.edma3.rm.a674',
229         'lib/Release/ti.sdo.edma3.rm.a674',
230         'lib/Debug/ti.sdo.edma3.rm.a64P',
231         'lib/Debug/ti.sdo.edma3.rm.a64Pe',
232         'lib/Release/ti.sdo.edma3.rm.a64P',
233         'lib/Release/ti.sdo.edma3.rm.a64Pe',
234         'src',
235         '.cdtproject',
236         '.project',
237         'edma3_common.h',
238         'edma3_rm.h',
239         'package.bld',
240         'package.xs',
241         'RM.xdc',
242         'RM.xdt',
243 ];