1 /******************************************************************************
2 * FILE PURPOSE: Fault Management device specific files.
3 ******************************************************************************
4 * FILE NAME: Module.xs
5 *
6 * DESCRIPTION:
7 * This file contains the module specification for Fault Management device specific files.
8 *
9 * Copyright (C) 2013, 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];
28 }