Merge pull request #1 in PROCESSOR-SDK/tcp3d-lld from PRSDK-2194 to master
[keystone-rtos/tcp3d-lld.git] / package.bld
index 5f02a0a3d86c6cefbff44b9f49d5e49eca2d4523..56770c277cbe23ccaf49cdf307035c855178136b 100644 (file)
@@ -52,7 +52,6 @@ print ("TCP3D Driver Version            : " + tcp3dDriverReleaseVersion);
 print ("Tools Directory                 : " + toolsBaseDir);\r
 print ("RTSC File Name                 : " + tcp3dRTSCFileName);\r
 print ("TCP3D Driver Path               : " + tcp3dDriverPath);\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
@@ -108,105 +107,4 @@ tplt.genFile("./tcp3dver.h",tcp3dDriverReleaseVersion);
 var tplt = xdc.loadTemplate("./docs/eclipse/sample.xml.xdt");\r
 tplt.genFile("./docs/eclipse/sample.xml",tcp3dDriverReleaseVersion); \r
 \r
-\r
-/***************************************************************************\r
- ********************************* MINI Package ****************************\r
- ***************************************************************************/\r
-/* Check if we need to create the mini package? */\r
-var miniBuild = java.lang.System.getenv("MINI_PACKAGE");\r
-\r
-if (miniBuild == "ON")\r
-{\r
-    /* Create the MINI RTSC Package */\r
-    var additionalFiles = [];\r
-\r
-    var libUtility = xdc.loadCapsule ("build/buildlib.xs");\r
-    libUtility.createMiniPkg(tcp3dRTSCFileName, additionalFiles);\r
-}\r
-\r
-/********************************************************************* \r
- *********************** INSTALL-JAMMER Support **********************\r
- * In order to create the InstallJammer Application; we need to UNTAR\r
- * the package into a temporary directory. This is required because \r
- * currently the InstallJammer does not support the TAR Files and thus\r
- * creating an UNTAR of the file. So to work-around the problem we will\r
- * do the following in the EPILOGUE Section:-\r
- *  (a) Create a temporary directory called 'tmp'\r
- *  (b) UNTAR the package into 'tmp'\r
- *  (c) Run the INSTALL Jammer on 'tmp'\r
- *  (d) Remove the 'tmp' directory.\r
- *\r
- * This can be done only after the 'release' package has been created.\r
- * Thus all of this work is being done in the EPILOGUE.\r
- *********************************************************************/\r
-if (tcp3dDriverInstallType == "SETUP")\r
-{\r
-    /* Create the Install Jammer Version Variable. This is used inside the \r
-     * MPI File to create the Final executable. \r
-     *  The format supported is as follows:-\r
-     *   - setupwin32_tcp3d_<device>_<version>.exe \r
-     */\r
-    var InstallJammerVersion =  "-DVersion " +\r
-                                tcp3dPartNumber + "_" + \r
-                                tcp3dDriverReleaseVersion[0] + "_" +\r
-                                tcp3dDriverReleaseVersion[1] + "_" +  \r
-                                tcp3dDriverReleaseVersion[2] + "_" +\r
-                                tcp3dDriverReleaseVersion[3];\r
-\r
-    /* This is the location where the tmp directory is located; this is used as \r
-     * the input directory for the Install Jammer. */ \r
-    var PackageBaseDir = " -DPackageBaseDir " + tcp3dDriverPath + "./tmp";\r
-\r
-    /* This is the location where the TCP3D Driver will be installed by default. */\r
-    var WinInstallDir = " -DWinInstallDir " + \r
-                        "C:/ti/tcp3d" + "_" + \r
-                        tcp3dPartNumber + "_" + \r
-                        tcp3dDriverReleaseVersion[0] + "_" +\r
-                        tcp3dDriverReleaseVersion[1] + "_" +  \r
-                        tcp3dDriverReleaseVersion[2] + "_" +\r
-                        tcp3dDriverReleaseVersion[3];\r
-\r
-    /* Create the actual EPILOGUE Section for the INSTALLER */\r
-    Pkg.makeEpilogue += "release: install_application\n";\r
-    Pkg.makeEpilogue += "install_application:\n";\r
-    Pkg.makeEpilogue += "\t @echo -------------------------------------------------------\n";\r
-    Pkg.makeEpilogue += "\t @echo Creating the Install\n";\r
-    Pkg.makeEpilogue += "\t @echo -------------------------------------------------------\n";\r
-    Pkg.makeEpilogue += "\t -$(MKDIR) tmp\n";\r
-    Pkg.makeEpilogue += "\t -$(MKDIR) tmp/packages\n";\r
-    Pkg.makeEpilogue += "\t -$(MKDIR) tmp/eclipse\n";\r
-    Pkg.makeEpilogue += "\t -$(CP) -R eclipse tmp\n";\r
-    Pkg.makeEpilogue += "\t tar -xf ./packages/" + tcp3dRTSCFileName + ".tar" + " -Ctmp/packages \n";\r
-    Pkg.makeEpilogue += "\t installjammer " + InstallJammerVersion + PackageBaseDir + WinInstallDir + \r
-                        " --output-dir packages/ --build install/tcp3d.mpi\n";\r
-    Pkg.makeEpilogue += "\t -$(RMDIR) tmp\n\n";\r
-}\r
-\r
-/* We need to clean after ourselves; extend the 'clean' target to take care of this. */\r
-Pkg.makeEpilogue += "clean::\n";\r
-Pkg.makeEpilogue += "\t -$(RM) .xdcenv.mak\n";\r
-Pkg.makeEpilogue += "\t -$(RM) tcp3dver.h\n";\r
-Pkg.makeEpilogue += "\t -$(RM) Settings.xdc\n";\r
-Pkg.makeEpilogue += "\t -$(RM) makefile\n";\r
-Pkg.makeEpilogue += "\t -$(RM) docs/TCP3D_DRV_APIIF.chm\n";\r
-Pkg.makeEpilogue += "\t -$(RM) docs/TCP3D_DRV_doxconfig\n";\r
-Pkg.makeEpilogue += "\t -$(RM) docs/eclipse/sample.xml\n";\r
-Pkg.makeEpilogue += "\t -$(RMDIR) docs/doxy/rtf\n";\r
-Pkg.makeEpilogue += "\t -$(RMDIR) docs/doxy/html\n";\r
-Pkg.makeEpilogue += "\t -$(RMDIR) lib\n";\r
-// for (var i = 0; i < devices.length; i++)\r
-// {\r
-    // Pkg.makeEpilogue += "\t -$(RMDIR) lib/" + devices[i].split("/")[0] + "\n";\r
-// }\r
-if (tcp3dDriverInstallType == "SETUP")\r
-{\r
-    Pkg.makeEpilogue += "\t -$(RM) packages/*.exe\n";\r
-    Pkg.makeEpilogue += "\t -$(RM) packages/*.bin\n";\r
-    Pkg.makeEpilogue += "\t -$(RMDIR) eclipse\n";\r
-    Pkg.makeEpilogue += "\t -$(RMDIR) tmp\n";\r
-}\r
-if (miniBuild == "ON")\r
-{\r
-    Pkg.makeEpilogue += "\t -$(RM) simpleC66LE.mak\n";\r
-    Pkg.makeEpilogue += "\t -$(RM) simpleC66BE.mak\n";\r
-}\r
+    \r