]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blob - device/Module.xs
Resolved SDOCM00114533
[keystone-rtos/rm-lld.git] / device / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: RM device specific files.
3  ******************************************************************************
4  * FILE NAME: module.xs
5  *
6  * DESCRIPTION: 
7  *  This file contains the module specification for RM device specific files.
8  *
9  * Copyright (C) 2012-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         
29     /* Add all the .dts files to the release package. */
30     var configFiles = libUtility.listAllFiles (".dts", "device", true);
31     for (var k = 0 ; k < configFiles.length; k++)
32         Pkg.otherFiles[Pkg.otherFiles.length++] = configFiles[k];
34     /* Add all the .dtb files to the release package. */
35     var configFiles = libUtility.listAllFiles (".dtb", "device", true);
36     for (var k = 0 ; k < configFiles.length; k++)
37         Pkg.otherFiles[Pkg.otherFiles.length++] = configFiles[k];        
38 }