1 /******************************************************************************\r
2 * FILE PURPOSE: Build configuration Script for the RM LLD\r
3 ******************************************************************************\r
4 * FILE NAME: config.bld\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the build configuration script for RM LLD \r
8 * and is responsible for configuration of the paths for the various tools\r
9 * required to build RM LLD.\r
10 *\r
11 * Copyright (C) 2012, Texas Instruments, Inc.\r
12 *****************************************************************************/\r
13 \r
14 /* Get the Tools Base directory from the Environment Variable. */\r
15 var toolsBaseDir = java.lang.System.getenv("XDCCGROOT");\r
16 \r
17 /* Get the base directory for the RM LLD Package */\r
18 var lldPath = new java.io.File(".//").getPath();\r
19 \r
20 var lldInstallType;\r
21 \r
22 /* Read the part number from the environment variable. */\r
23 var lldPartNumber = java.lang.System.getenv("PARTNO");\r
24 \r
25 /* Include Path */\r
26 var lldIncludePath = " -i" + lldPath + "/src" + " -i" + lldPath + " -i" + lldPath + "/test";\r
27 \r
28 /* Configure the RM LLD Release Version Information */\r
29 var lldReleaseVersion = [01,00,00,11];\r
30 \r
31 /* RM LLD Coverity Analysis: Check the environment variable to determine if Static\r
32 * Analysis has to be done on the RM LLD Code base or not? */\r
33 var lldCoverityAnalysis = java.lang.System.getenv("LLDCOV");\r
34 \r
35 /* C66 ELF compiler configuration for Little Endian Mode. */\r
36 var C66LE = xdc.useModule('ti.targets.elf.C66');\r
37 C66LE.rootDir = toolsBaseDir;\r
38 C66LE.ccOpts.prefix = "-mo -o3 -q -k -eo.o";\r
39 \r
40 /* C66 ELF compiler configuration for Big Endian Mode. */\r
41 var C66BE = xdc.useModule('ti.targets.elf.C66_big_endian');\r
42 C66BE.rootDir = toolsBaseDir;\r
43 C66BE.ccOpts.prefix = "-mo -o3 -q -k -eo.o -DBIGENDIAN";\r
44 \r
45 /* Check if we need to run the STATIC Analysis or not? */\r
46 var coverityAnalysis = java.lang.System.getenv("STATIC_ANALYZE");\r
47 \r
48 /* Setup the Coverity Filters to perform Static Analysis. */\r
49 if (coverityAnalysis == "ON") {\r
50 var coverityInstallPath = java.lang.System.getenv("STATIC_ANALYZE_PATH");\r
51 var cfgBase = xdc.getPackageBase("tisb.coverity.filters") + "cfg";\r
52 \r
53 var coverityFilter = [\r
54 {\r
55 moduleName: "tisb.coverity.filters.Coverity",\r
56 params: {\r
57 cfgDir: cfgBase, // The Coverity configuration file directory\r
58 rootDir: coverityInstallPath,\r
59 outDir: xdc.csd() + "cov_out",\r
60 analyzeLibs: true\r
61 }\r
62 },\r
63 ];\r
64 \r
65 /* Run the coverity filters on the LE Build only. */\r
66 C66LE.profiles["release"].filters = coverityFilter;\r
67 }\r
68 \r
69 /* Check if we need to create the Makefiles? */\r
70 var miniBuild = java.lang.System.getenv("MINI_PACKAGE");\r
71 \r
72 if (miniBuild == "ON")\r
73 {\r
74 /* Add the filter for simple Makefile generation. */\r
75 \r
76 var makeC66LEFilter = {\r
77 moduleName: "build.filter.Make",\r
78 params: {\r
79 makefileName: "simpleC66LE.mak",\r
80 }\r
81 };\r
82 \r
83 C66LE.profiles["release"].filters[C66LE.profiles["release"].filters.length++] = makeC66LEFilter;\r
84 \r
85 var makeC66BEFilter = {\r
86 moduleName: "build.filter.Make",\r
87 params: {\r
88 makefileName: "simpleC66BE.mak",\r
89 }\r
90 }; \r
91 \r
92 C66BE.profiles["release"].filters[C66BE.profiles["release"].filters.length++] = makeC66BEFilter;\r
93 \r
94 }\r
95 \r
96 /* List all the build targets here. */\r
97 Build.targets = [ C66LE, C66BE ];\r
98 \r