]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/emac/test/Module.xs
PDK-6487: emac: test app updates
[processor-sdk/pdk.git] / packages / ti / drv / emac / test / Module.xs
1 /*
2  * Module.xs
3  *
4  * EMAC Driver Documents Module Specification File.
5  *
6  * Copyright (C) 2010-2019 Texas Instruments Incorporated - http://www.ti.com/
7  * 
8  * 
9  *  Redistribution and use in source and binary forms, with or without 
10  *  modification, are permitted provided that the following conditions 
11  *  are met:
12  *
13  *    Redistributions of source code must retain the above copyright 
14  *    notice, this list of conditions and the following disclaimer.
15  *
16  *    Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the 
18  *    documentation and/or other materials provided with the   
19  *    distribution.
20  *
21  *    Neither the name of Texas Instruments Incorporated nor the names of
22  *    its contributors may be used to endorse or promote products derived
23  *    from this software without specific prior written permission.
24  *
25  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
26  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
27  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
29  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
30  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
31  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
34  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
35  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37 */
39 /******************************************************************************
40  * FILE PURPOSE: EMAC Driver Documents Module Specification File.
41  ******************************************************************************
42  * FILE NAME: Module.xs
43  *
44  * DESCRIPTION: 
45  *  This file contains the module specification file for the EMAC Driver.
46  *****************************************************************************/
48 /* Load the library utility. */
49 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
51 /**************************************************************************
52  * FUNCTION NAME : modBuild
53  **************************************************************************
54  * DESCRIPTION   :
55  *  The function builds all the components for the documentation. Here we
56  *  add all the documentation files to the release package.
57  **************************************************************************/
58 function modBuild() 
59 {
61     /* Always add all the documentation to the release package. */
62     var documentFiles = libUtility.listAllFiles (".c", "./test");
63     for (var k = 0 ; k < documentFiles.length; k++) {
64         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
65     }
67     var documentFiles = libUtility.listAllFiles (".h", "./test");
68     for (var k = 0 ; k < documentFiles.length; k++) {
69         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
70     }
72     var documentFiles = libUtility.listAllFiles ("makefile", "./test");
73     for (var k = 0 ; k < documentFiles.length; k++) {
74         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
75     }
76     
77     var documentFiles = libUtility.listAllFiles ("makefile_without_ddr", "./test");
78     for (var k = 0 ; k < documentFiles.length; k++) {
79         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
80     }
82     var documentFiles = libUtility.listAllFiles ("makefile_dualmac", "./test");
83     for (var k = 0 ; k < documentFiles.length; k++) {
84         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
85     }
86     
87     var documentFiles = libUtility.listAllFiles (".cdtbuild", "./test");
88     for (var k = 0 ; k < documentFiles.length; k++) {
89         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
90     }
92     var documentFiles = libUtility.listAllFiles (".cdtproject", "./test");
93     for (var k = 0 ; k < documentFiles.length; k++) {
94         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
95     }
97     var documentFiles = libUtility.listAllFiles (".project", "./test");
98     for (var k = 0 ; k < documentFiles.length; k++) {
99         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
100     }
102     var documentFiles = libUtility.listAllFiles (".ini", "./test");
103     for (var k = 0 ; k < documentFiles.length; k++) {
104         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
105     }
107     var documentFiles = libUtility.listAllFiles (".cfg", "./test");
108     for (var k = 0 ; k < documentFiles.length; k++) {
109         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
110     }
112     var documentFiles = libUtility.listAllFiles (".txt", "./test");
113     for (var k = 0 ; k < documentFiles.length; k++) {
114         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
115     }
117     var documentFiles = libUtility.listAllFiles (".xs", "./test");
118     for (var k = 0 ; k < documentFiles.length; k++) {
119         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
120     }
121     
122     var documentFiles = libUtility.listAllFiles (".lds", "./test");
123     for (var k = 0 ; k < documentFiles.length; k++) {
124         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
125     }
126     
127     var documentFiles = libUtility.listAllFiles (".asm", "./test");
128     for (var k = 0 ; k < documentFiles.length; k++) {
129         Pkg.otherFiles[Pkg.otherFiles.length++] = documentFiles[k];
130     }