Suppress the Windows build
[glsdk/dspdce.git] / build / config.bld
2 var Build        = xdc.useModule('xdc.bld.BuildEnvironment');
3 var commonBld    = xdc.loadCapsule("../build/common.bld");
4 var commonOpts   = "-g";
5 var hw_VAYU = 2;
6 var ES10 = 1;
8 for (x = 0; x < arguments.length; x++)
9 {
10     if (arguments[x].match(/^trace_level=/) )
11     {
12         // [1] operation is used on the return value of split(), which is an
13         // array.
14         var trace_level = arguments[x].split("=")[1];
15     }
17 }
19 /************************************
20 * Memory Map Information
21 ************************************/
22 /*  Memory Map for ti.platforms.evmDRA7XX:dsp1
23  *
24  *  --- External Memory ---
25  *  Virtual     Physical        Size            Comment
26  *  ------------------------------------------------------------------------
27  *  9500_0000   ????_????    20_0000  (  ~2 MB) EXT_CODE
28  *  9520_0000   ????_????    20_0000  (   2 MB) EXT_DATA
29  *  9540_0000   ????_????   280_0000  (  40 MB) EXT_HEAP
30  *  9F00_0000   9F00_0000     6_0000  ( 384 kB) TRACE_BUF
31  *  9F06_0000   9F06_0000     1_0000  (  64 kB) EXC_DATA
32  *  9F07_0000   9F07_0000     2_0000  ( 128 kB) PM_DATA (Power mgmt)
33  */
34 var evmDRA7XX_ExtMemMapDsp1 = {
35         EXT_CODE: { name: "EXT_CODE", base: 0x95000000, len:  0x200000, space: "code", access: "RWX" },
36         EXT_DATA: { name: "EXT_DATA", base: 0x95200000, len:  0x00200000, space: "data", access: "RW" },
37         EXT_HEAP: { name: "EXT_HEAP", base: 0x95400000, len:  0x02800000, space: "data", access: "RW" },
38         TRACE_BUF: { name: "TRACE_BUF", base: 0x9F000000, len:  0x00060000, space: "data", access: "RW" },
39         EXC_DATA: { name: "EXC_DATA", base: 0x9F060000, len:  0x00010000, space: "data", access: "RW" },
40         PM_DATA: { name: "PM_DATA", base: 0x9F070000, len:  0x00020000, space: "data", access: "RWX" }
41 };
43 Build.platformTable["ti.platforms.evmDRA7XX:dsp1"] = {
44         externalMemoryMap: [
45                 [ "EXT_CODE", evmDRA7XX_ExtMemMapDsp1.EXT_CODE ],
46                 [ "EXT_DATA", evmDRA7XX_ExtMemMapDsp1.EXT_DATA ],
47                 [ "EXT_HEAP", evmDRA7XX_ExtMemMapDsp1.EXT_HEAP ],
48                 [ "TRACE_BUF", evmDRA7XX_ExtMemMapDsp1.TRACE_BUF ],
49                 [ "EXC_DATA", evmDRA7XX_ExtMemMapDsp1.EXC_DATA ],
50                 [ "PM_DATA", evmDRA7XX_ExtMemMapDsp1.PM_DATA ]
51         ],
52         codeMemory: "EXT_CODE",
53         dataMemory: "EXT_DATA",
54         stackMemory: "EXT_DATA",
55 };
58 var TargetBuild = commonBld.getTargetBuild(arguments);
59     commonOpts += " -DHOST_TYPE=HOST_UNKNOWN "
61 /************************************
62 * Setup for dsp target
63 ************************************/
64 var dsp_tgt            = xdc.useModule('ti.targets.elf.C66');
65 dsp_tgt.rootDir        = java.lang.System.getenv("C66XCGTOOLSPATH");
66 dsp_tgt.ccOpts.suffix  += " --gcc -D___DSPBIOS___ -DDSP";
67 dsp_tgt.ccOpts.suffix += " -ms ";
68 //dsp_tgt.ccOpts.suffix += " -pden -pds=48 ";
69 //dsp_tgt.ccOpts.suffix += " -pdew "; //Convert warn to err; Supported in 4.9 version
70 dsp_tgt.ccOpts.suffix  += commonOpts;
71 dsp_tgt.lnkOpts.suffix += " -x ";
72 dsp_tgt.lnkOpts.prefix += " --retain=.resource_table";
73 //dsp_tgt.lnkOpts.prefix +=  " --zero_init=off ";
74 //dsp_tgt.lnkOpts.prefix += " --cinit_compression=off";
76 dsp_tgt.platforms = [
77                           "ti.platforms.evmDRA7XX:dsp1", //0
78                     ];
80 /*****************  Tracing ********************/
81 if(trace_level == 0) {
82     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_LEVEL=0";
83 } else if(trace_level == 1) {
84     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_ENABLE";
85     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_LEVEL=1";
86 } else if(trace_level == 2) {
87     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_ENABLE";
88     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_LEVEL=2";
89 } else if(trace_level == 3) {
90     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_ENABLE";
91     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_LEVEL=3";
92 } else if(trace_level >= 4) {
93     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_ENABLE";
94     dsp_tgt.ccOpts.suffix += " -DDCE_DEBUG_LEVEL=4";
95 }
96 /*****************  Tracing ********************/
97 {
98     HwType = hw_VAYU;
99     HwVer = ES10;
100     var build_vayu = true;
101     print("Selected Vayu for ES10");
103     dsp_tgt.ccOpts.suffix += " -DBUILD_FOR_VAYU";
104         dsp_tgt.ccOpts.suffix += " -DVAYU_ES10";
105     dsp_tgt.platform = dsp_tgt.platforms[0];
109 Build.targets     = [
110                         dsp_tgt,
111                     ];
113 var Pkg = xdc.module("xdc.bld.PackageContents");