diff --git a/package.bld b/package.bld
index e2dd851c4f022dbe87c64c605acbf39403098246..39e8dfb146bc2e6064492596a861fec1d4302cdd 100644 (file)
--- a/package.bld
+++ b/package.bld
/******************************************************************************\r
- * FILE PURPOSE: Build description for the RM LLD Package\r
+ * FILE PURPOSE: Build description for the RM Package\r
******************************************************************************\r
* FILE NAME: package.bld\r
*\r
* DESCRIPTION: \r
- * This file contains the build specification and description for the RM LLD\r
+ * This file contains the build specification and description for the RM\r
* \r
* The file takes the following parameters from the command line through the\r
* XDCARGS variable.\r
- * XDCARGS[0] = RM LLD Install Type \r
+ * XDCARGS[0] = RM Install Type \r
* Valid Values are "TAR" or "SETUP"\r
* DEFAULT is "SETUP"\r
*\r
* Copyright (C) 2012, Texas Instruments, Inc.\r
*****************************************************************************/\r
\r
+/* List of all subdirectories that combine to make the RM Package. */\r
+var subDirectories = [ "src", "docs", "include", "test", "resource_table"];\r
+\r
/* Determine if we need to create the InstallJammer Application or not? \r
- * RM LLD Deliverables be either of the following formats:\r
+ * RM Deliverables be either of the following formats:\r
* - TAR Ball Package\r
* - Setup Executable \r
* DEFAULT is a TAR Executable. */\r
************************ Release Banner **************************\r
******************************************************************/\r
\r
-print ("*************** RM LLD Build Information ****************");\r
-print ("RM LLD Install : " + lldInstallType);\r
-print ("RM LLD Version : " + lldReleaseVersion);\r
+print ("*************** RM Build Information ****************");\r
+print ("RM Install : " + lldInstallType);\r
+print ("RM Version : " + lldReleaseVersion);\r
print ("Tools Directory : " + toolsBaseDir);\r
print ("RTSC File Name : " + lldRTSCFileName);\r
-print ("RM LLD Path : " + lldPath);\r
+print ("RM Path : " + lldPath);\r
print ("Coverity Analysis : " + (coverityAnalysis == "ON" ? "ON" : "OFF"));\r
print ("CC LE opts : " + C66LE.ccOpts.prefix);\r
print ("CC BE opts : " + C66BE.ccOpts.prefix);\r
print ("***********************************************************");\r
\r
-/* Create the release package for the RM LLD */\r
+/* Create the release package for the RM */\r
Pkg.defaultRelease = Pkg.addRelease (lldRTSCFileName, {prefix: "./packages/"});\r
\r
/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
* uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */\r
//Pkg.attrs = {archiver : "zip"};\r
\r
+/* Cycle through all the sub-directories and build all the files */\r
+for (var i = 0; i < subDirectories.length; i++) \r
+{\r
+ /* Load the capsule in the sub directory. */\r
+ var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");\r
+\r
+ print ("Building directory " + subDirectories[i]);\r
+\r
+ /* Build the capsule. */\r
+ caps.modBuild();\r
+\r
+ /* Package the module.xs files for building via package */\r
+ Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";\r
+}\r
\r
/* Package the remaining files */\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
+Pkg.otherFiles[Pkg.otherFiles.length++] = "rm.h";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "rm_public_lld.h";\r
+Pkg.otherFiles[Pkg.otherFiles.length++] = "resource_table_defs.h";\r
+Pkg.otherFiles[Pkg.otherFiles.length++] = "rm_osal.h";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "rmver.h";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "rmver.h.xdt";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";\r
Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";\r
+Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";\r
\r
/* Generate Users Manual Doxyfile */\r
var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
* MPI File to create the Final executable. \r
* The format supported is as follows:-\r
* - setupwin32_rmlld_<part_number>_<version>.exe \r
- * This is for RM LLD Libraries and Header files\r
+ * This is for RM Libraries and Header files\r
*/\r
var InstallJammerVersion = "-DVersion " + lldPartNumber + "_" + lldReleaseVersion[0] + "_" +\r
lldReleaseVersion[1] + "_" + lldReleaseVersion[2] + "_" + lldReleaseVersion[3];\r
* the input directory for the Install Jammer. */ \r
var PackageBaseDir = " -DPackageBaseDir " + lldPath + "./tmp";\r
\r
- /* This is the location where the RM LLD will be installed by default. */\r
+ /* This is the location where the RM will be installed by default. */\r
var WinInstallDir = " -DWinInstallDir C:/Program Files/Texas Instruments/rmlld" + "_" + \r
lldPartNumber + "_" + \r
lldReleaseVersion[0] + "_" + lldReleaseVersion[1] + "_" + \r