]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/osal/soc/Module.xs
Removed stale IPC examples
[processor-sdk/pdk.git] / packages / ti / osal / soc / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: OSAL unit arch files.
3  ******************************************************************************
4  * FILE NAME: module.xs
5  *
6  * DESCRIPTION:
7  *  This file contains the module specification for OSAL module soc files.
8  *
9  * Copyright (C) 2016, 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 test
20  *  directory into the package.
21  **************************************************************************/
22 function modBuild()
23 {
24     /* Add all the .c files to the release package. */
25     var socFiles = libUtility.listAllFiles (".c", "soc", true);
26     for (var k = 0 ; k < socFiles.length; k++)
27         Pkg.otherFiles[Pkg.otherFiles.length++] = socFiles[k];
29     /* Add all the .h files to the release package. */
30     var socFiles = libUtility.listAllFiles (".h", "soc", true);
31     for (var k = 0 ; k < socFiles.length; k++)
32         Pkg.otherFiles[Pkg.otherFiles.length++] = socFiles[k];
35     /* Add all the .h files to the release package. */
36     var socFiles = libUtility.listAllFiles (".h", ".", true);
37     for (var k = 0 ; k < socFiles.length; k++)
38         Pkg.otherFiles[Pkg.otherFiles.length++] = socFiles[k];
40 }