/****************************************************************************** * FILE PURPOSE: RM LLD Source module specification file. ****************************************************************************** * FILE NAME: module.xs * * DESCRIPTION: * This file contains the module specification for the RM LLD source directory. * * Copyright (C) 2012, Texas Instruments, Inc. *****************************************************************************/ /* Load the library utility. */ var libUtility = xdc.loadCapsule ("../build/buildlib.xs"); var rmlldFile = [ "src/rm.c", ]; /************************************************************************** * FUNCTION NAME : modBuild ************************************************************************** * DESCRIPTION : * The function is used to build all the components of the RM library **************************************************************************/ function modBuild() { /* Build the libraries for all the targets specified. */ for (var targets=0; targets < Build.targets.length; targets++) { var libOptions = { incs: lldIncludePath, }; libUtility.buildLibrary (libOptions, "ti.drv.rm", Build.targets[targets], rmlldFile); } /* Add all the .c files to the release package. */ var testFiles = libUtility.listAllFiles (".c", "src", true); for (var k = 0 ; k < testFiles.length; k++) Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; /* Add all the .h files to the release package. */ var testFiles = libUtility.listAllFiles (".h", "src", true); for (var k = 0 ; k < testFiles.length; k++) Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; }