/****************************************************************************** * FILE PURPOSE: Build configuration Script for the Fault Management ****************************************************************************** * FILE NAME: config.bld * * DESCRIPTION: * This file contains the build configuration script for Fault Management * and is responsible for configuration of the paths for the various tools * required to build Fault Management. * * Copyright (C) 2012-2015, Texas Instruments, Inc. *****************************************************************************/ /* Get the Tools Base directory from the Environment Variable. */ var toolsBaseDir = java.lang.System.getenv("C6X_GEN_INSTALL_PATH"); /* Get the base directory for the RM LLD Package */ var fault_mgmtlibPath = new java.io.File(".//").getPath(); var fault_mgmtlibInstallType; /* Read the part number from the environment variable. */ var fault_mgmtlibPartNumber = java.lang.System.getenv("PARTNO"); /* Read the SOC family from the environment variable. */ var fault_mgmtlibSocFamily = java.lang.System.getenv("SOC_FAMILY"); if (fault_mgmtlibSocFamily == null) { fault_mgmtlibSocFamily = ""; } /* Include Path */ var fault_mgmtlibIncludePath = " -i" + fault_mgmtlibPath + "/src" + " -i" + fault_mgmtlibPath + " -i" + fault_mgmtlibPath + "/test"; /* Configure the Fault Management Release Version Information */ /* 3 steps: remove SPACE and TAB, convert to string and split to make array */ var fault_mgmtlibReleaseVersion = (""+Pkg.version.replace(/\s/g, "")).split(','); /* Fault Management Coverity Analysis: Check the environment variable to determine if Static * Analysis has to be done on the Fault Management Code base or not? */ var fault_mgmtlibCoverityAnalysis = java.lang.System.getenv("STATIC_ANALYZE"); /* C66 ELF compiler configuration for Little Endian Mode. */ var C66LE = xdc.useModule('ti.targets.elf.C66'); C66LE.rootDir = toolsBaseDir; C66LE.ccOpts.prefix = "-mo -o3 -q -k -eo.o"; /* C66 ELF compiler configuration for Big Endian Mode. */ var C66BE = xdc.useModule('ti.targets.elf.C66_big_endian'); C66BE.rootDir = toolsBaseDir; C66BE.ccOpts.prefix = "-mo -o3 -q -k -eo.o -DBIGENDIAN"; /* Check if we need to run the STATIC Analysis or not? */ var coverityAnalysis = java.lang.System.getenv("STATIC_ANALYZE"); /* Setup the Coverity Filters to perform Static Analysis. */ if (coverityAnalysis == "ON") { var coverityInstallPath = java.lang.System.getenv("STATIC_ANALYZE_PATH"); var cfgBase = xdc.getPackageBase("tisb.coverity.filters") + "cfg"; var coverityFilter = [ { moduleName: "tisb.coverity.filters.Coverity", params: { cfgDir: cfgBase, // The Coverity configuration file directory rootDir: coverityInstallPath, outDir: xdc.csd() + "cov_out", analyzeLibs: true } }, ]; /* Run the coverity filters on the LE Build only. */ C66LE.profiles["release"].filters = coverityFilter; } /* Check if we need to create the Makefiles? */ var miniBuild = java.lang.System.getenv("MINI_PACKAGE"); if (miniBuild == "ON") { /* Add the filter for simple Makefile generation. */ var makeC66LEFilter = { moduleName: "build.filter.Make", params: { makefileName: "simpleC66LE.mak", } }; C66LE.profiles["release"].filters[C66LE.profiles["release"].filters.length++] = makeC66LEFilter; var makeC66BEFilter = { moduleName: "build.filter.Make", params: { makefileName: "simpleC66BE.mak", } }; C66BE.profiles["release"].filters[C66BE.profiles["release"].filters.length++] = makeC66BEFilter; } /* List all the build targets here. */ Build.targets = [ C66LE, C66BE ]; /* List of all devices that combine to make the fault_mgmt library. */ var devices = [ "tci6614/c66", "k2h/c66", "k2k/c66", "k2e/c66", "k2l/c66" ]; /* Order must exactly match list in "var devices" */ var devicesCCOpt = [ "", " -DDEVICE_K2H", " -DDEVICE_K2K", " -DDEVICE_K2E", " -DDEVICE_K2L"]; /* Order must exactly match list in "var devices" */ var devicesSocFamily = [ "", "KeyStone2", "KeyStone2", "KeyStone2", "KeyStone2"];