/****************************************************************************** * FILE PURPOSE: Build configuration Script for the Watchdog Timer module ****************************************************************************** * FILE NAME: config.bld * * DESCRIPTION: * This file contains the build configuration script for the Watchdog Timer module * and is responsible for configuration of the paths for the various tools * required to build the Watchdog Timer module. * * 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 WatchdogTimerPath = new java.io.File(".//").getPath(); var WatchdogTimerInstallType; /* Read the part number from the environment variable. */ var WatchdogTimerPartNumber = java.lang.System.getenv("PARTNO"); /* Include Path */ var WatchdogTimerIncludePath = " -i" + WatchdogTimerPath + "/src" + " -i" + WatchdogTimerPath + " -i" + WatchdogTimerPath + "/test"; /* Configure the Watchdog Timer Release Version Information */ /* 3 steps: remove SPACE and TAB, convert to string and split to make array */ var WatchdogTimerReleaseVersion = (""+Pkg.version.replace(/\s/g, "")).split(','); /* Watchdog Timer Coverity Analysis: Check the environment variable to determine if Static * Analysis has to be done on the Watchdog Timer code base or not? */ var WatchdogTimerCoverityAnalysis = 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 ];