]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcbsp-lld.git/blob - device/Module.xs
PRSDK-3513 Addressed build errors
[keystone-rtos/mcbsp-lld.git] / device / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: MCBSP LLD device files.
3  ******************************************************************************
4  * FILE NAME: Module.xs
5  *
6  * DESCRIPTION: 
7  *  This file contains the module specification for MCBSP LLD device files.
8  *
9  * Copyright (C) 2012, Texas Instruments, Inc.
10  *****************************************************************************/
12 /* Load the library utility. */
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
15 /**************************************************************************
16  * FUNCTION NAME : modBuild
17  **************************************************************************
18  * DESCRIPTION   :
19  *  The function is used to add all the source files in the device 
20  *  directory into the package.
21  **************************************************************************/
22 function modBuild() 
23 {
24     /* Add all the .c files to the release package. */
25     var configFiles = libUtility.listAllFiles (".c", "device", true);
26     for (var k = 0 ; k < configFiles.length; k++)
27         Pkg.otherFiles[Pkg.otherFiles.length++] = configFiles[k];
29     /* Add all the .h files to the release package. */
30     var configFiles = libUtility.listAllFiles (".h", "device", true);
31     for (var k = 0 ; k < configFiles.length; k++)
32         Pkg.otherFiles[Pkg.otherFiles.length++] = configFiles[k];
33 }