Merge pull request #12 in PROCESSOR-SDK/edma3_lld from PRSDK-3125 to rtos-next
[keystone-rtos/edma3_lld.git] / packages / config.bld
1 /*
2  *  ======== config.bld ========
3  *  Sample Build configuration script
4  */
6 /* load the required modules for the configuration */
7 var C64P = xdc.useModule('ti.targets.C64P');
8 var C64Pe = xdc.useModule('ti.targets.C64P_big_endian');
9 var C674 = xdc.useModule('ti.targets.C674');
10 var C64P_ELF = xdc.useModule('ti.targets.elf.C64P');
11 var C64Pe_ELF = xdc.useModule('ti.targets.elf.C64P_big_endian');
12 var C674_ELF = xdc.useModule('ti.targets.elf.C674');
13 var C66 = xdc.useModule('ti.targets.elf.C66');
14 var C66e = xdc.useModule('ti.targets.elf.C66_big_endian');
15 var Arm = xdc.useModule('ti.targets.arm.elf.Arm9');
16 var cortexA8 = xdc.useModule('ti.targets.arm.elf.A8F');
17 //var C64T_ELF = xdc.useModule('ti.targets.elf.C64T');
18 var M3 = xdc.useModule('ti.targets.arm.elf.M3');
20 /* compiler paths for the CCS4.0                   */
21 var cgtools = java.lang.System.getenv("CGTOOLS");
22 var cgtools_elf = java.lang.System.getenv("CGTOOLS_ELF");
23 var armcgtools = java.lang.System.getenv("TMS470_CGTOOLS");
25 C64P.rootDir = cgtools;
26 C64Pe.rootDir = cgtools;
27 C674.rootDir = cgtools;
28 C64P_ELF.rootDir = cgtools_elf;
29 //C64T_ELF.rootDir = cgtools_elf;
30 C64Pe_ELF.rootDir = cgtools_elf;
31 C674_ELF.rootDir = cgtools_elf;
32 C66.rootDir = cgtools_elf;
33 C66e.rootDir = cgtools_elf;
34 Arm.rootDir = armcgtools;
35 cortexA8.rootDir = armcgtools;
36 M3.rootDir = armcgtools;
38 /**********************************c674******************************/
40 /* compiler options                                */
41 C64P.ccOpts.suffix += " -mi10 -mo ";
42 C64Pe.ccOpts.suffix += " -mi10 -mo -me ";
43 C674.ccOpts.suffix += " -mi10 -mo ";
44 C64P_ELF.ccOpts.suffix += " -mi10 -mo ";
45 //C64T_ELF.ccOpts.suffix += " -mi10 -mo ";
46 C64Pe_ELF.ccOpts.suffix += " -mi10 -mo -me ";
47 C674_ELF.ccOpts.suffix += " -mi10 -mo ";
48 C66.ccOpts.suffix += " -mi10 -mo --mem_model:data=far ";
49 C66e.ccOpts.suffix += " -mi10 -mo -me --mem_model:data=far ";
50 Arm.ccOpts.suffix += " ";
51 cortexA8.ccOpts.suffix += "";
52 M3.ccOpts.suffix += "";
54 /* set default platform and list of all interested platforms */
55 C64P.platforms = [
56                      "ti.platforms.evm6472",
57                      "ti.platforms.evmTCI6486",
58                  ];
59 C64Pe.platforms = [
60                      "ti.platforms.evm6472",
61                      "ti.platforms.evmTCI6486",
62                  ];
63 C674.platforms = [
64                      "ti.platforms.evmDA830",
65                      "ti.platforms.evm6748",
66                      "ti.platforms.evmOMAPL137",
67                      "ti.platforms.evmOMAPL138",
68                      "ti.platforms.simDM8168",
69                      "ti.platforms.evmDM8168",
70                      "ti.platforms.evmDM8148",
71                  ];
72 C64P_ELF.platforms = [
73                      "ti.platforms.evm6472",
74                      "ti.platforms.evmTCI6486",
75                  ];
76 //C64T_ELF.platforms = [
77 //                     "ti.platforms.sdp4430",
78 //                 ];
79 C64Pe_ELF.platforms = [
80                      "ti.platforms.evm6472",
81                      "ti.platforms.evmTCI6486",
82                  ];
83 C674_ELF.platforms = [
84                      "ti.platforms.evmDA830",
85                      "ti.platforms.evm6748",
86                      "ti.platforms.evmOMAPL137",
87                      "ti.platforms.evmOMAPL138",
88                      "ti.platforms.simDM8168",
89                      "ti.platforms.evmDM8168",
90                      "ti.platforms.evmDM8148",
91                  ];
92 C66.platforms = [
93                      "ti.platforms.simTCI6608",
94                      "ti.platforms.simTCI6616",
95                      "ti.platforms.simTCI6614",
96                      "ti.platforms.simC6657",
97                      "ti.platforms.simKepler",
98                      "ti.platforms.evm6670",
99                      "ti.platforms.evm6678",
100                      "ti.platforms.evmTCI6614",
101                      "ti.platforms.evm6657",
102                      "ti.platforms.evmTCI6638K2K",
103                      "ti.platforms.evmTCI6636K2H",
104                      "ti.platforms.evmTCI6630K2L",
105                      "ti.platforms.evmC66AK2E",
106                      "ti.platforms.evmTCI66AK2G02",
107                  ];
108 C66e.platforms = [
109                      "ti.platforms.simTCI6608",
110                      "ti.platforms.simTCI6616",
111                      "ti.platforms.simTCI6614",
112                      "ti.platforms.simC6657",
113                      "ti.platforms.simKepler",
114                      "ti.platforms.evm6670",
115                      "ti.platforms.evm6678",
116                      "ti.platforms.evmTCI6614",
117                      "ti.platforms.evm6657",
118                      "ti.platforms.evmTCI6638K2K",
119                      "ti.platforms.evmTCI6636K2H",
120                      "ti.platforms.evmTCI66AK2G02",
121                  ];
122 Arm.platforms = [
123                      "ti.platforms.evmOMAPL137",
124                      "ti.platforms.evmOMAPL138",
125                      "ti.platforms.evmAM437X",
126                  ];
128 cortexA8.platforms = [
129                          "ti.platforms.evmDM8148",
130                          "ti.platforms.evmAM3359",
131                      ];
132 M3.platforms = [
133                      "ti.platforms.evmTI816X",
134                  ];
136 /* select the default platform */
137 C64P.platform = C64P.platforms[0];
138 C64Pe.platform = C64Pe.platforms[0];
139 C674.platform = C674.platforms[0];
140 C64P_ELF.platform = C64P_ELF.platforms[0];
141 //C64T_ELF.platform = C64T_ELF.platforms[0];
142 C64Pe_ELF.platform = C64Pe_ELF.platforms[0];
143 C674_ELF.platform = C674_ELF.platforms[0];
144 C66.platform = C66.platforms[0];
145 C66e.platform = C66e.platforms[0];
146 Arm.platform = Arm.platforms[0];
147 cortexA8.platform = cortexA8.platforms[0];
148 M3.platform = M3.platforms[0];
150 /* list interested targets in Build.targets array  */
151 Build.targets = [
152                    //C64T_ELF,
153                     //C64,
154                     C64P,
155                     C64Pe,
156                     //C67P,
157                     C674,
158                     C64P_ELF,
159                     C64Pe_ELF,
160                     C674_ELF,
161                     C66,
162                     C66e,
163                     Arm,
164                     cortexA8,
165                     M3,
166                   //Win32,
167                 ];