]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/tcp3d-lld.git/blob - config.bld
added CCS project for C6657
[keystone-rtos/tcp3d-lld.git] / config.bld
1 /******************************************************************************\r
2  * FILE PURPOSE: Build configuration Script for the TCP3D Driver\r
3  ******************************************************************************\r
4  * FILE NAME: config.bld\r
5  *\r
6  * DESCRIPTION: \r
7  *  This file contains the build configuration script for the TCP3D driver\r
8  *  and is responsible for configuration of the paths for the various \r
9  *  tools required to build the driver.\r
10  *\r
11  * Copyright (C) 2009, 2014 Texas Instruments, Inc.\r
12  *****************************************************************************/\r
13 \r
14 /* Set package attribute as ZIP or TAR */\r
15 Pkg.attrs.archiver = "tar";\r
16 \r
17 /* Get the Tools Base directory from the Environment Variable. */\r
18 var toolsBaseDir = java.lang.System.getenv("XDCCGROOT");\r
19 \r
20 /* Get the base directory for the TCP3D Driver Package */\r
21 var tcp3dDriverPath = new java.io.File(".//").getPath();\r
22 \r
23 /* Get the extended debug flags */\r
24 var extDbgFlags = java.lang.System.getenv("EXTDBGFLAGS");\r
25 \r
26 var tcp3dDriverInstallType;\r
27 \r
28 /* Read the part number from the environment variable. */\r
29 var tcp3dPartNumber = java.lang.System.getenv("PARTNO");\r
30 \r
31 if(tcp3dPartNumber == null)\r
32 {\r
33     tcp3dPartNumber = "keystone2";\r
34 }\r
35 \r
36 /* Include Path */\r
37 var tcp3dIncludePath = " -i" + tcp3dDriverPath + "/src" + " -i" + tcp3dDriverPath  + " -i" + tcp3dDriverPath + "/test";\r
38 \r
39 /* Configure the TCP3D Release Version Information */\r
40 /* We use the information from compatibility key. It require 3 steps:       */ \r
41 /* remove SPACE and TAB, convert to string and split to make array          */\r
42 var tcp3dDriverReleaseVersion = (""+Pkg.version.replace(/\s/g, "")).split(',');\r
43 \r
44 /* TCP3D Driver Coverity Analysis: Check the environment variable to determine if Static\r
45  * Analysis has to be done on the TCP3D Driver Code base or not? */\r
46 var tcp3dDriverCoverityAnalysis = java.lang.System.getenv("LLDCOV");\r
47 \r
48 /* C66 ELF compiler configuration for Little Endian Mode. */\r
49 var C66LE           = xdc.useModule('ti.targets.elf.C66');\r
50 C66LE.rootDir       = toolsBaseDir;\r
51 C66LE.ccOpts.prefix = "-mo -o3 -q -k -eo.o";\r
52 if(extDbgFlags)\r
53     C66LE.ccOpts.prefix = C66LE.ccOpts.prefix + " " + extDbgFlags; \r
54 \r
55 /* C66 ELF compiler configuration for Big Endian Mode. */\r
56 var C66BE           = xdc.useModule('ti.targets.elf.C66_big_endian');\r
57 C66BE.rootDir       = toolsBaseDir;\r
58 C66BE.ccOpts.prefix = "-mo -o3 -q -k -eo.o";\r
59 if(extDbgFlags)\r
60     C66BE.ccOpts.prefix = C66BE.ccOpts.prefix + " " + extDbgFlags; \r
61 \r
62 \r
63 /* List all the build targets here. */\r
64 Build.targets = [ C66LE, C66BE ];\r
65 \r
66 /* List of all devices that combine to make the hyplnk library.\r
67  */\r
68 var devices = [ "k2k/c66", "k2h/c66", "k2l/c66", "c6657/c66" ];\r
69 \r
70 /* order must exactly match list in "var devices" */\r
71 var devicesCCOpt = [ " -DDEVICE_K2K", " -DDEVICE_K2H", " -DDEVICE_K2L", "-DSOC_C6657"];\r
72 \r