]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blob - src/Module.xs
69271f5c9516f52e6dd17b92e6b55b4b82037e31
[keystone-rtos/rm-lld.git] / src / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: RM Source module specification file.
3  ******************************************************************************
4  * FILE NAME: module.xs
5  *
6  * DESCRIPTION: 
7  *  This file contains the module specification for the RM source directory.
8  *
9  * Copyright (C) 2012-2013, Texas Instruments, Inc.
10  *****************************************************************************/
12 /* Load the library utility. */
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
15 var rmFile = [
16     "src/rm.c",
17     "src/rm_nameserver.c",
18     "src/rm_policy.c",
19     "src/rm_services.c",
20     "src/rm_transport.c",
21     "src/rm_tree.c",
22     "src/rm_dtb_util.c",
23     "src/libfdt/fdt.c",
24     "src/libfdt/fdt_ro.c",
25     "src/libfdt/fdt_rw.c",
26     "src/libfdt/fdt_strerror.c",
27     "src/libfdt/fdt_sw.c",
28     "src/libfdt/fdt_wip.c",
29 ];
31 /**************************************************************************
32  * FUNCTION NAME : modBuild
33  **************************************************************************
34  * DESCRIPTION   :
35  *  The function is used to build all the components of the RM library
36  **************************************************************************/
37 function modBuild() 
38 {
39     /* Build the libraries for all the targets specified. */
40     for (var targets=0; targets < Build.targets.length; targets++)
41     {
42         var libOptions = {
43             incs: lldIncludePath, 
44         };
45         
46         libUtility.buildLibrary (libOptions, "ti.drv.rm", Build.targets[targets], rmFile);
47     }
49     /* Add all the .c files to the release package. */
50     var testFiles = libUtility.listAllFiles (".c", "src", true);
51     for (var k = 0 ; k < testFiles.length; k++)
52         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
54     /* Add all the .h files to the release package. */
55     var testFiles = libUtility.listAllFiles (".h", "src", true);
56     for (var k = 0 ; k < testFiles.length; k++)
57         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
59     /* Add all the .c files to the release package. */
60     var testFiles = libUtility.listAllFiles (".c", "src/libfdt", true);
61     for (var k = 0 ; k < testFiles.length; k++)
62         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
64     /* Add all the .h files to the release package. */
65     var testFiles = libUtility.listAllFiles (".h", "src/libfdt", true);
66     for (var k = 0 ; k < testFiles.length; k++)
67         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];        
68 }