]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commitdiff
Bug Fix: PRSDK-8528: XDC files are not packaged in core sdk - patch 3
authorSivaraj R <sivaraj@ti.com>
Tue, 19 May 2020 15:15:03 +0000 (20:45 +0530)
committerSujith Shivalingappa <a0393175@ti.com>
Wed, 20 May 2020 06:40:13 +0000 (01:40 -0500)
- For SOC that support package through makefile, skip the XDC packahge step
- This is requried becasuse selective packaging is not done propely in
XDC file and having this info in both makefile and XDC file is not maintainable
- This change doesn't affect other platform build as we have != check which
takes care of when the flag is not set

Signed-off-by: Sivaraj R <sivaraj@ti.com>
26 files changed:
packages/ti/board/build/makefile.mk
packages/ti/build/makerules/platform.mk
packages/ti/drv/emac/.gitignore
packages/ti/drv/emac/package.bld
packages/ti/drv/fvid2/.gitignore
packages/ti/drv/gpio/package.bld
packages/ti/drv/gpmc/package.bld
packages/ti/drv/i2c/package.bld
packages/ti/drv/icss_emac/package.bld
packages/ti/drv/iolink/.gitignore [new file with mode: 0644]
packages/ti/drv/mcasp/.gitignore
packages/ti/drv/mcasp/package.bld
packages/ti/drv/mmcsd/package.bld
packages/ti/drv/pcie/package.bld
packages/ti/drv/pruss/package.bld
packages/ti/drv/spi/package.bld
packages/ti/drv/uart/package.bld
packages/ti/drv/usb/package.bld
packages/ti/fs/fatfs/package.bld
packages/ti/osal/package.bld
packages/ti/transport/ndk/nimu/package.bld
packages/ti/transport/ndk/nimu_icss/package.bld
packages/ti/transport/timeSync/package.bld
packages/ti/transport/timeSync/v2/package.bld
packages/ti/transport/timeSync/v2/package.xdc
packages/ti/utils/profiling/package.bld

index 8ac73f05dd1b699854af493f5472de66a2aeff08..80fb12c900cd8c28f0bacdca62d12f9c1a32275e 100644 (file)
@@ -161,11 +161,13 @@ INCLUDE_EXTERNAL_INTERFACES = pdk edma
 # need to be included for this module
 INCLUDE_INTERNAL_INTERFACES = csl
 
-PACKAGE_SRCS_COMMON += makefile board_component.mk board.h \
-                       board_cfg.h build
+PACKAGE_SRCS_COMMON += makefile board_component.mk board.h
+PACKAGE_SRCS_COMMON += board_cfg.h build
+PACKAGE_SRCS_COMMON += config_mk.bld package.bld package.xdc package.xs
+PACKAGE_SRCS_COMMON += Settings.xdc.xdt utils.xs
 ifeq ($(BOARD),$(filter $(BOARD), j721e_sim j721e_qt j721e_evm j7200_evm tpr12_evm tpr12_qt))
-PACKAGE_SRCS_COMMON += src/board.c src/boardStub.c src/Module.xs \
-                       src/src_files_lld.mk src/src_files_starterware.mk
+PACKAGE_SRCS_COMMON += src/board.c src/boardStub.c src/Module.xs
+PACKAGE_SRCS_COMMON += src/src_files_lld.mk src/src_files_starterware.mk
 else
 PACKAGE_SRCS_COMMON += src
 endif
index 734c8dd29d5201328ba821b57c9b112b833e279a..f2ad0dfd0d61af26f80b6bec036021ed91f018c5 100644 (file)
@@ -197,6 +197,14 @@ ifeq ($(BOARD),$(filter $(BOARD), tpr12_evm tpr12_qt))
  SBL_DEV_ID=55
 endif
 
+#
+# Package type
+#
+PDK_PACKAGE_TYPE = package_type_xdc
+ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 tpr12 am64x))
+PDK_PACKAGE_TYPE = package_type_makefile
+endif
+export PDK_PACKAGE_TYPE
 
 #
 # Derive Target/ISA from CORE
@@ -451,7 +459,7 @@ ifeq ($(ISA),r5f)
      TARGET_XDC = ti.targets.arm.elf.R5F
     else
      TARGET_XDC = ti.targets.arm.elf.R5Ft
-    endif    
+    endif
     FORMAT_EXT = e
   else
     TARGET_XDC = ti.targets.arm.R5Ft
@@ -501,8 +509,8 @@ ifeq ($(ISA),r5f)
   else
     OBJEXT_BIOS = o$(FORMAT_EXT)r5ft$(ENDIAN_EXT)
     PEXT_BIOS   = p$(FORMAT_EXT)r5ft$(ENDIAN_EXT)
-  endif  
-  # Retaining the r5f extension for backward compatibility 
+  endif
+  # Retaining the r5f extension for backward compatibility
   LIBEXT = a$(FORMAT_EXT)$(ISA_EXT)$(ENDIAN_EXT)
   EXEEXT = x$(FORMAT_EXT)$(ISA_EXT)$(ENDIAN_EXT)
   ASMEXT = s$(FORMAT_EXT)$(ISA_EXT)$(ENDIAN_EXT)
index 1ef0b7e048973aadf592cc2b7734b3dab97d7ad9..b49b5beeb1c40cef7e3a3db261b21fa7d51f23bc 100644 (file)
@@ -1 +1,10 @@
-lib*
+lib/*
+.dlls
+.executables
+.xdcenv.mak
+*.mak
+.interfaces
+.libraries
+package/*
+Settings.h
+Settings.xdc
index cd230bb20f9d77b6eefefa36d285faf9db7ca6e2..83d41f16b59c71ef8c5a9fd48c8479d2f124006d 100644 (file)
@@ -3,17 +3,17 @@
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the emac driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
- *      XDCARGS[0] = Driver Install Type 
+ *      XDCARGS[0] = Driver Install Type
  *      Valid Values are "TAR" or "SETUP"
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2014-2015, Texas Instruments, Inc.
  *****************************************************************************/
@@ -23,10 +23,10 @@ var subDirectories = [ "src", "docs", "test", "example", "soc", "cpsw", "firmwar
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * emac LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -38,10 +38,12 @@ else
  * of the RTSC Build. Here we determine the name of the TAR Ball Package
  *  Format is as follows:
  *      emac_<version> */
-var emacRTSCFileName = "emac" + "_"  + 
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + 
+var emacRTSCFileName = "emac" + "_"  +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,7 +56,7 @@ print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("RTSC File Name                 : " + emacRTSCFileName);
 print ("emac Socket Driver LLD Path     : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
@@ -67,63 +69,66 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (emacRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_hwcfg.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nss_if.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_drv.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_ioctl.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emacver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emacver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_hwcfg.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nss_if.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_drv.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_ioctl.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emacver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emacver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "emac_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); 
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
-tplt.genFile("./Settings.xdc",driverReleaseVersion); 
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
 
 /* Generate paver.h */
 var tplt = xdc.loadTemplate("./emacver.h.xdt");
-tplt.genFile("./emacver.h",driverReleaseVersion);      
+tplt.genFile("./emacver.h",driverReleaseVersion);
 
-    
index 22d53d1f5ad17d34459ec8af86dd4393c6324741..fa05c1c8a1af7d0d04f453979b33d26d16ee999d 100644 (file)
@@ -1,2 +1,11 @@
 lib/*
 docs/doxygen/html/
+.dlls
+.executables
+.xdcenv.mak
+*.mak
+.interfaces
+.libraries
+package/*
+Settings.h
+Settings.xdc
index a248cc2eecd4d61cf745c26b04ccbb4f14ec6fc8..9ab7ee6b6d26083576c72d0e2766772ecff74a48 100755 (executable)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the gpio Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the gpio driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2015, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the gpio Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "test", "example", "soc" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * gpio LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      gpio_<version> */\r
-var gpioRTSCFileName = "gpio" + "_"  + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* gpio Socket Driver Build Information *************");\r
-print ("gpio Socket Driver Install      : " + driverInstallType);\r
-print ("gpio Socket Driver LLD Version  : " + driverReleaseVersion);\r
-print ("RTSC File Name                 : " + gpioRTSCFileName);\r
-print ("gpio Socket Driver LLD Path     : " + driverPath);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-if (pOpts == 1) \r
-{      \r
-       print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-       print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-       print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-       print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the gpio LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (gpioRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIO.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIOver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIOver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "gpio_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./GPIOver.h.xdt");\r
-tplt.genFile("./GPIOver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the gpio Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the gpio driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2015, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the gpio Socket Driver Package. */
+var subDirectories = [ "src", "docs", "test", "example", "soc" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * gpio LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      gpio_<version> */
+var gpioRTSCFileName = "gpio" + "_"  +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* gpio Socket Driver Build Information *************");
+print ("gpio Socket Driver Install      : " + driverInstallType);
+print ("gpio Socket Driver LLD Version  : " + driverReleaseVersion);
+print ("RTSC File Name                 : " + gpioRTSCFileName);
+print ("gpio Socket Driver LLD Path     : " + driverPath);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+if (pOpts == 1)
+{
+       print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+       print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+       print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+       print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the gpio LLD */
+Pkg.defaultRelease = Pkg.addRelease (gpioRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIO.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIOver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPIOver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "gpio_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./GPIOver.h.xdt");
+tplt.genFile("./GPIOver.h",driverReleaseVersion);
index 01e82fbae04bcd59cbbe92db56ef28319137ff12..db5f0f9efe3df3b66baf5d882ce2cb837ffe14f2 100755 (executable)
@@ -42,6 +42,8 @@ var gpmcRTSCFileName = "gpmc" + "_" +
                       driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,7 +56,7 @@ print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("RTSC File Name                  : " + gpmcRTSCFileName);
 print ("gpmc Socket Driver LLD Path      : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
@@ -74,48 +76,51 @@ Pkg.defaultRelease = Pkg.addRelease (gpmcRTSCFileName, {prefix: "./packages/"});
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++)
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMC.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMCver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMCver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "gpmc_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMC.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMCver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "GPMCver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "gpmc_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
 tplt.genFile("./Settings.xdc",driverReleaseVersion);
@@ -123,5 +128,3 @@ tplt.genFile("./Settings.xdc",driverReleaseVersion);
 /* Generate paver.h */
 var tplt = xdc.loadTemplate("./GPMCver.h.xdt");
 tplt.genFile("./GPMCver.h",driverReleaseVersion);
-
-
index 7ec342144dc36a1785549798219ba2143e1e1df1..2d7e291380d322bacce16831b8c7d57b640989b2 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the i2c Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the i2c driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2018, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the i2c Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "soc", "test", "example", "firmware" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * i2c LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      i2c_<version> */\r
-var i2cRTSCFileName = "i2c" + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* i2c Socket Driver Build Information *************");\r
-print ("i2c Socket Driver Install      : " + driverInstallType);\r
-print ("i2c Socket Driver LLD Version  : " + driverReleaseVersion);\r
-print ("RTSC File Name                 : " + i2cRTSCFileName);\r
-print ("i2c Socket Driver LLD Path     : " + driverPath);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-if (pOpts == 1) \r
-{\r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the i2c LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (i2cRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "I2C.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "I2Cver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "I2Cver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_i2c.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "i2c_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./I2Cver.h.xdt");\r
-tplt.genFile("./I2Cver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the i2c Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the i2c driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2018, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the i2c Socket Driver Package. */
+var subDirectories = [ "src", "docs", "soc", "test", "example", "firmware" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * i2c LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      i2c_<version> */
+var i2cRTSCFileName = "i2c" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* i2c Socket Driver Build Information *************");
+print ("i2c Socket Driver Install      : " + driverInstallType);
+print ("i2c Socket Driver LLD Version  : " + driverReleaseVersion);
+print ("RTSC File Name                 : " + i2cRTSCFileName);
+print ("i2c Socket Driver LLD Path     : " + driverPath);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the i2c LLD */
+Pkg.defaultRelease = Pkg.addRelease (i2cRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "I2C.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "I2Cver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "I2Cver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_i2c.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "i2c_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./I2Cver.h.xdt");
+tplt.genFile("./I2Cver.h",driverReleaseVersion);
index 4e1d8ba2eae47067ffaab3b5f6caa0130587e24a..7e6bd5f0c0ab459aae9c3b4d4807a8b33d3176b5 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the icss_emac Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the icss_emac driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2016, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the icss_emac Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "test", "firmware", "soc" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * icss_emac LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      icss_emac_<version> */\r
-var icss_emacRTSCFileName = "icss_emac" + "_"  + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* icss_emac Socket Driver Build Information *************");\r
-print ("icss_emac Socket Driver Install       : " + driverInstallType);\r
-print ("icss_emac Socket Driver LLD Version   : " + driverReleaseVersion);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-print ("RTSC File Name                 : " + icss_emacRTSCFileName);\r
-print ("icss_emac Socket Driver LLD Path      : " + driverPath);\r
-if (pOpts == 1) \r
-{\r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the icss_emac LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (icss_emacRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacDrv.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacFwInit.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacStatistics.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacStormControl.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacLearning.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacCommon.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_ver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "COPYING.txt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_dualemac.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_stp_switch.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_switch.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./icss_emac_ver.h.xdt");\r
-tplt.genFile("./icss_emac_ver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the icss_emac Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the icss_emac driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2016, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the icss_emac Socket Driver Package. */
+var subDirectories = [ "src", "docs", "test", "firmware", "soc" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * icss_emac LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      icss_emac_<version> */
+var icss_emacRTSCFileName = "icss_emac" + "_"  +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* icss_emac Socket Driver Build Information *************");
+print ("icss_emac Socket Driver Install       : " + driverInstallType);
+print ("icss_emac Socket Driver LLD Version   : " + driverReleaseVersion);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+print ("RTSC File Name                 : " + icss_emacRTSCFileName);
+print ("icss_emac Socket Driver LLD Path      : " + driverPath);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the icss_emac LLD */
+Pkg.defaultRelease = Pkg.addRelease (icss_emacRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacDrv.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacFwInit.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacStatistics.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacStormControl.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacLearning.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emacCommon.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "COPYING.txt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_dualemac.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_stp_switch.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_switch.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "icss_emac_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./icss_emac_ver.h.xdt");
+tplt.genFile("./icss_emac_ver.h",driverReleaseVersion);
diff --git a/packages/ti/drv/iolink/.gitignore b/packages/ti/drv/iolink/.gitignore
new file mode 100644 (file)
index 0000000..fa05c1c
--- /dev/null
@@ -0,0 +1,11 @@
+lib/*
+docs/doxygen/html/
+.dlls
+.executables
+.xdcenv.mak
+*.mak
+.interfaces
+.libraries
+package/*
+Settings.h
+Settings.xdc
index c3af857904ebfd987602da36b219a186a84e4e7a..b49b5beeb1c40cef7e3a3db261b21fa7d51f23bc 100644 (file)
@@ -1 +1,10 @@
-lib/
+lib/*
+.dlls
+.executables
+.xdcenv.mak
+*.mak
+.interfaces
+.libraries
+package/*
+Settings.h
+Settings.xdc
index 352c1ab7f099cb935c641bbf8f1cd77d78cd1b1c..4d61575c6ddd8c8eacff63aeb29692008ee6f40d 100644 (file)
@@ -1,22 +1,22 @@
 /******************************************************************************
+
 
 
 * FILE PURPOSE: Build description for the MCASP Driver
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the MCASP driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
- *      XDCARGS[0] = MCASP Driver Install Type 
+ *      XDCARGS[0] = MCASP Driver Install Type
  *      Valid Values are "TAR" or "SETUP"
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2012-2017, Texas Instruments, Inc.
  *****************************************************************************/
@@ -26,10 +26,10 @@ var subDirectories = [ "src", "include", "docs", "example", "soc" ];
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * MCASP LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -41,10 +41,12 @@ else
  * of the RTSC Build. Here we determine the name of the TAR Ball Package
  *  Format is as follows:
  *      mcasp_<version> */
-var mcaspRTSCFileName = "mcasp" + "_" +  
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + 
+var mcaspRTSCFileName = "mcasp" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -57,7 +59,7 @@ print ("A15 Tools Directory       : " + a15ToolsBaseDir);
 print ("M4 Tools Directory        : " + m4ToolsBaseDir);
 print ("RTSC File Name           : " + mcaspRTSCFileName);
 print ("MCASP Driver LLD Path     : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                : " + C66BE.ccOpts.prefix);
@@ -70,58 +72,61 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (mcaspRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_drv.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_osal.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_types.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcaspver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcaspver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_drv.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_osal.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_types.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcaspver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcaspver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mcasp_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); 
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
-tplt.genFile("./Settings.xdc",driverReleaseVersion); 
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
 
 /* Generate mcaspver.h */
 var tplt = xdc.loadTemplate("./mcaspver.h.xdt");
index c9fecd2eb55f4821879da87a99c57e740abf0240..a3d8e1303cfbdb53a73ce5e8f5faa40621dd31ba 100644 (file)
@@ -3,9 +3,9 @@
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the mmcsd driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
  *      XDCARGS[0] = mmcsd Driver Install Type
@@ -13,7 +13,7 @@
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2014-2017, Texas Instruments, Inc.
  *****************************************************************************/
@@ -23,10 +23,10 @@ var subDirectories = [ "src", "docs", "test", "example", "soc" ];
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * mmcsd LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -42,6 +42,8 @@ var mmcsdRTSCFileName = "mmcsd" + "_" +
                       driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,7 +56,7 @@ print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("RTSC File Name                 : " + mmcsdRTSCFileName);
 print ("mmcsd Socket Driver LLD Path    : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
@@ -67,57 +69,60 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (mmcsdRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSD.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSDver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSDver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "mmcsd_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSD.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSDver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "MMCSDver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "mmcsd_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
 tplt.genFile("./Settings.xdc",driverReleaseVersion);
@@ -125,5 +130,3 @@ tplt.genFile("./Settings.xdc",driverReleaseVersion);
 /* Generate paver.h */
 var tplt = xdc.loadTemplate("./MMCSDver.h.xdt");
 tplt.genFile("./MMCSDver.h",driverReleaseVersion);
-
-    
index ab07e2009a3918942fabf404e273791555918ea4..c3884dd0e41fa06b111ebba380fcd9905ca2d5d1 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the PCIE LLD Package\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the PCIE LLD\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = PCIE LLD Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2011-2015, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the PCIE LLD Package. */\r
-var subDirectories = [ "src", "docs", "example", "soc" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * PCIE LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      pcielld_<version> */\r
-var pcielldRTSCFileName = "pcielld" + "_" +\r
-                         driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                         driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* PCIE LLD Build Information *************");\r
-print ("PCIE LLD Install             : " + driverInstallType);\r
-print ("PCIE LLD Version             : " + driverReleaseVersion);\r
-print ("C66 Tools Directory          : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory           : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory          : " + a15ToolsBaseDir);\r
-print ("RTSC File Name               : " + pcielldRTSCFileName);\r
-print ("PCIE LLD Path                : " + driverPath);\r
-if (pOpts == 1) \r
-{\r
-    print ("C66 LE opts                  : " + C66LE.ccOpts.prefix);\r
-    print ("C66 BE opts                  : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                   : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts               : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("***********************************************************");\r
-\r
-/* Create the release package for the PCIE LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (pcielldRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pcie.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pciever.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pciever.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pcie_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./pciever.h.xdt");\r
-tplt.genFile("./pciever.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the PCIE LLD Package
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the PCIE LLD
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = PCIE LLD Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2011-2015, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the PCIE LLD Package. */
+var subDirectories = [ "src", "docs", "example", "soc" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * PCIE LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      pcielld_<version> */
+var pcielldRTSCFileName = "pcielld" + "_" +
+                         driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                         driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* PCIE LLD Build Information *************");
+print ("PCIE LLD Install             : " + driverInstallType);
+print ("PCIE LLD Version             : " + driverReleaseVersion);
+print ("C66 Tools Directory          : " + c66ToolsBaseDir);
+print ("M4 Tools Directory           : " + m4ToolsBaseDir);
+print ("A15 Tools Directory          : " + a15ToolsBaseDir);
+print ("RTSC File Name               : " + pcielldRTSCFileName);
+print ("PCIE LLD Path                : " + driverPath);
+if (pOpts == 1)
+{
+    print ("C66 LE opts                  : " + C66LE.ccOpts.prefix);
+    print ("C66 BE opts                  : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                   : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts               : " + A15LE.ccOpts.prefix);
+}
+print ("***********************************************************");
+
+/* Create the release package for the PCIE LLD */
+Pkg.defaultRelease = Pkg.addRelease (pcielldRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pcie.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pciever.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pciever.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pcie_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./pciever.h.xdt");
+tplt.genFile("./pciever.h",driverReleaseVersion);
+
index 2f3f897bbfd186c12e89b55243b49b04260a8b3c..c301cc0ad1ffdb8e44b1c6f7e70443f77633f24d 100644 (file)
@@ -3,17 +3,17 @@
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the pruss driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
- *      XDCARGS[0] = Driver Install Type 
+ *      XDCARGS[0] = Driver Install Type
  *      Valid Values are "TAR" or "SETUP"
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2014-2016, Texas Instruments, Inc.
  *****************************************************************************/
@@ -23,10 +23,10 @@ var subDirectories = [ "src", "docs", "include", "test", "example", "soc" ];
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * pruss LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -38,10 +38,12 @@ else
  * of the RTSC Build. Here we determine the name of the TAR Ball Package
  *  Format is as follows:
  *      pruss_<version> */
-var prussRTSCFileName = "pruss" + "_" + 
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + 
+var prussRTSCFileName = "pruss" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,7 +56,7 @@ print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("RTSC File Name                 : " + prussRTSCFileName);
 print ("pruss Socket Driver LLD Path    : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
@@ -67,63 +69,66 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (prussRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_sorte_master.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_sorte_slave.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "pruss_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss_ver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pruicss_ver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_sorte_master.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_sorte_slave.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "pruss_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); 
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
-tplt.genFile("./Settings.xdc",driverReleaseVersion); 
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
 
 /* Generate paver.h */
 var tplt = xdc.loadTemplate("./pruicss_ver.h.xdt");
-tplt.genFile("./pruicss_ver.h",driverReleaseVersion);      
+tplt.genFile("./pruicss_ver.h",driverReleaseVersion);
+
 
-    
index 3850c7b799877b921d2ad692ff7671825588ddf5..52ef5a0ccdb290b054256f8880df369a6a06f096 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the spi Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the spi driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2015, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the spi Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "test", "example", "soc", "firmware" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * spi LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      spi_<version> */\r
-var spiRTSCFileName = "spi" + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* spi Socket Driver Build Information *************");\r
-print ("spi Socket Driver Install       : " + driverInstallType);\r
-print ("spi Socket Driver LLD Version   : " + driverReleaseVersion);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-print ("RTSC File Name                 : " + spiRTSCFileName);\r
-print ("spi Socket Driver LLD Path      : " + driverPath);\r
-if (pOpts == 1) \r
-{      \r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the spi LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (spiRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "SPI.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "MCSPI.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "SPIver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "SPIver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_espi.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "spi_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./SPIver.h.xdt");\r
-tplt.genFile("./SPIver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the spi Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the spi driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2015, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the spi Socket Driver Package. */
+var subDirectories = [ "src", "docs", "test", "example", "soc", "firmware" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * spi LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      spi_<version> */
+var spiRTSCFileName = "spi" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* spi Socket Driver Build Information *************");
+print ("spi Socket Driver Install       : " + driverInstallType);
+print ("spi Socket Driver LLD Version   : " + driverReleaseVersion);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+print ("RTSC File Name                 : " + spiRTSCFileName);
+print ("spi Socket Driver LLD Path      : " + driverPath);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the spi LLD */
+Pkg.defaultRelease = Pkg.addRelease (spiRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "SPI.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "MCSPI.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "SPIver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "SPIver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_espi.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "spi_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./SPIver.h.xdt");
+tplt.genFile("./SPIver.h",driverReleaseVersion);
index 56d4fb1dceb2bf1cc9c553e9afde3dd3a4875c83..069cfdf6041acb6c17215f9218673bedb870f078 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the uart Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the uart driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2016, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the uart Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "include", "test", "example", "soc", "firmware"];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * uart LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      uart_<version> */\r
-var uartRTSCFileName = "uart" + "_"  + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* uart Socket Driver Build Information *************");\r
-print ("uart Socket Driver Install      : " + driverInstallType);\r
-print ("uart Socket Driver LLD Version  : " + driverReleaseVersion);\r
-print ("RTSC File Name                 : " + uartRTSCFileName);\r
-print ("UART Socket Driver LLD Path     : " + driverPath);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-if (pOpts == 1) \r
-{\r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the uart LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (uartRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "UART.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_stdio.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_ver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_console.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_uart.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_uart_console.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "uart_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./UART_ver.h.xdt");\r
-tplt.genFile("./UART_ver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the uart Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the uart driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2016, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the uart Socket Driver Package. */
+var subDirectories = [ "src", "docs", "include", "test", "example", "soc", "firmware"];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * uart LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      uart_<version> */
+var uartRTSCFileName = "uart" + "_"  +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* uart Socket Driver Build Information *************");
+print ("uart Socket Driver Install      : " + driverInstallType);
+print ("uart Socket Driver LLD Version  : " + driverReleaseVersion);
+print ("RTSC File Name                 : " + uartRTSCFileName);
+print ("UART Socket Driver LLD Path     : " + driverPath);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the uart LLD */
+Pkg.defaultRelease = Pkg.addRelease (uartRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "UART.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_stdio.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "UART_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_dma_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_console.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icss_uart.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_uart_console.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "uart_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./UART_ver.h.xdt");
+tplt.genFile("./UART_ver.h",driverReleaseVersion);
+
+
index 7705c26349b8e12865e3a822b0778e3585f514cb..0545c72ffeb48e4a07c6d8e8a0d0c99ebf12ab46 100644 (file)
@@ -3,17 +3,17 @@
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the usb driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
- *      XDCARGS[0] = Driver Install Type 
+ *      XDCARGS[0] = Driver Install Type
  *      Valid Values are "TAR" or "SETUP"
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2014-2018, Texas Instruments, Inc.
  *****************************************************************************/
@@ -23,10 +23,10 @@ var subDirectories = [ "src", "soc", "docs", "example"];
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * usb LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -38,10 +38,12 @@ else
  * of the RTSC Build. Here we determine the name of the TAR Ball Package
  *  Format is as follows:
  *      usb_<version> */
-var usbRTSCFileName = "usb" + "_" + LLDPartNumber + "_" + 
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + 
+var usbRTSCFileName = "usb" + "_" + LLDPartNumber + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -55,7 +57,7 @@ print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("A9 Tools Directory             : " + a9ToolsBaseDir);
 print ("RTSC File Name                 : " + usbRTSCFileName);
 print ("usb source Driver LLD Path     : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
@@ -69,66 +71,69 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (usbRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "USBver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "USBver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_drv.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_osal.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usbhmsc.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdmsc.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdaudio.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdbulk.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_starterware.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "USBver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "USBver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_drv.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_osal.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usbhmsc.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdmsc.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdaudio.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usbdbulk.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_starterware.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "usb_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion); 
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
-tplt.genFile("./Settings.xdc",driverReleaseVersion); 
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
 
 /* Generate paver.h */
 var tplt = xdc.loadTemplate("./USBver.h.xdt");
-tplt.genFile("./USBver.h",driverReleaseVersion);      
+tplt.genFile("./USBver.h",driverReleaseVersion);
 
index c2cfec658110d53d17fe6b4628eaa42def4b2391..8e5474f5036d1994d23035c4a0ec0da71ac1383f 100644 (file)
@@ -3,9 +3,9 @@
  ******************************************************************************
  * FILE NAME: package.bld
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  This file contains the build specification and description for the fatfs driver
- *  
+ *
  *  The file takes the following parameters from the command line through the
  *  XDCARGS variable.
  *      XDCARGS[0] = fatfs Driver Install Type
@@ -13,7 +13,7 @@
  *      DEFAULT is "SETUP"
  *
  *  Example for a valid command:
- *      xdc XDCARGS="SETUP" release   
+ *      xdc XDCARGS="SETUP" release
  *
  * Copyright (C) 2014-2016, Texas Instruments, Inc.
  *****************************************************************************/
@@ -23,10 +23,10 @@ var subDirectories = [ "src", "docs", "example" ];
 
 var driverInstallType;
 
-/* Determine if we need to create the InstallJammer Application or not? 
+/* Determine if we need to create the InstallJammer Application or not?
  * fatfs LLD Deliverables be either of the following formats:
  *  - TAR Ball Package
- *  - Setup Executable 
+ *  - Setup Executable
  * DEFAULT is a SETUP Executable. */
 
 if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
@@ -42,6 +42,8 @@ var fatfsRTSCFileName = "fatfs" + "_" + LLDPartNumber + "_" +
                       driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,7 +56,7 @@ print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
 print ("RTSC File Name                 : " + fatfsRTSCFileName);
 print ("fatfs Socket Driver LLD Path    : " + driverPath);
-if (pOpts == 1) 
+if (pOpts == 1)
 {
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
@@ -66,56 +68,59 @@ print ("****************************************************************");
 Pkg.defaultRelease = Pkg.addRelease (fatfsRTSCFileName, {prefix: "./packages/"});
 
 /* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
- * not supported in the XDC tools being used. Currenly builds need to be done with the 
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
  * following options:-
- *   xdc MK_FIXLISTOPTS=-t release 
+ *   xdc MK_FIXLISTOPTS=-t release
  * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++) 
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "ff.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "ffconf.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "integer.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "diskio.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFS.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFSver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFSver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_mp_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "fatfs_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "ff.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "ffconf.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "integer.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "diskio.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFS.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFSver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "FATFSver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_mp_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "fatfs_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
 tplt.genFile("./Settings.xdc",driverReleaseVersion);
@@ -124,10 +129,10 @@ tplt.genFile("./Settings.xdc",driverReleaseVersion);
 var tplt = xdc.loadTemplate("./FATFSver.h.xdt");
 tplt.genFile("./FATFSver.h",driverReleaseVersion);
 
-/********************************************************************* 
+/*********************************************************************
  *********************** INSTALL-JAMMER Support **********************
  * In order to create the InstallJammer Application; we need to UNTAR
- * the package into a temporary directory. This is required because 
+ * the package into a temporary directory. This is required because
  * currently the InstallJammer does not support the TAR Files and thus
  * creating an UNTAR of the file. So to work-around the problem we will
  * do the following in the EPILOGUE Section:-
@@ -141,8 +146,8 @@ tplt.genFile("./FATFSver.h",driverReleaseVersion);
  *********************************************************************/
 if (driverInstallType == "SETUP")
 {
-    /* Create the Install Jammer Version Variable. This is used inside the 
-     * MPI File to create the Final executable. 
+    /* Create the Install Jammer Version Variable. This is used inside the
+     * MPI File to create the Final executable.
      *  The format supported is as follows:-
      *   - setupwin32_fatfs_<device>_<version>.exe
      */
@@ -150,8 +155,8 @@ if (driverInstallType == "SETUP")
                                driverReleaseVersion[0] + "_" + driverReleaseVersion[1] + "_" +
                                driverReleaseVersion[2] + "_" + driverReleaseVersion[3];
 
-    /* This is the location where the tmp directory is located; this is used as 
-     * the input directory for the Install Jammer. */ 
+    /* This is the location where the tmp directory is located; this is used as
+     * the input directory for the Install Jammer. */
     var PackageBaseDir = " -DPackageBaseDir " + driverPath + "./tmp";
 
     /* This is the location where the fatfs LLD will be installed by default. */
@@ -171,7 +176,7 @@ if (driverInstallType == "SETUP")
     Pkg.makeEpilogue += "\t -$(MKDIR) tmp/eclipse\n";
     Pkg.makeEpilogue += "\t -$(CP) -R eclipse tmp\n";
     Pkg.makeEpilogue += "\t tar -xf ./packages/" + fatfsRTSCFileName + ".tar" + " -Ctmp/packages \n";
-    Pkg.makeEpilogue += "\t installjammer " + InstallJammerVersion + PackageBaseDir + WinInstallDir + 
+    Pkg.makeEpilogue += "\t installjammer " + InstallJammerVersion + PackageBaseDir + WinInstallDir +
                         " --output-dir packages/ --build install/fatfslld.mpi\n";
     Pkg.makeEpilogue += "\t -$(RMDIR) /S /Q tmp\n\n";
 
@@ -184,4 +189,4 @@ if (driverInstallType == "SETUP")
     Pkg.makeEpilogue += "\t $(RM) packages/*.bin\n";
     Pkg.makeEpilogue += "\t -$(RMDIR) eclipse\n\n";
 }
-    
+
index e6d3cfe50ea2623003cd60806cf7930b35023505..30a23d3d5a71551566e300249a604d9d72f24208 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the osal Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the osal driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = osal Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2019, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the osal Socket Driver Package. */\r
-var subDirectories = [ "src", "docs", "arch", "soc", "test"];\r
-\r
-var osalDriverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * osal LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    osalDriverInstallType = "TAR";\r
-else\r
-    osalDriverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      osal_<version> */\r
-var osalRTSCFileName = "osal" + "_" + \r
-                      osalDriverReleaseVersion[0] + "_" +  osalDriverReleaseVersion[1] + "_" + \r
-                      osalDriverReleaseVersion[2]  + "_" + osalDriverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* osal Socket Driver Build Information *************");\r
-print ("osal Socket Driver Install      : " + osalDriverInstallType);\r
-print ("osal Socket Driver LLD Version  : " + osalDriverReleaseVersion);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("C67 Tools Directory             : " + c674ToolsBaseDir);\r
-print ("M4  Tools Directory             : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-print ("A9 Tools Directory              : " + a9ToolsBaseDir);\r
-print ("A8 Tools Directory              : " + a8ToolsBaseDir);\r
-print ("RTSC File Name                 : " + osalRTSCFileName);\r
-print ("osal Socket Driver LLD Path     : " + osalDriverPath);\r
-if (pOpts == 1) \r
-{\r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-    print ("A9 basic opts                   : " + A9LE.ccOpts.prefix);\r
-    print ("A8 basic opts                   : " + A8LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the osal LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (osalRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "SemaphoreP.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "MuxIntcP.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "CacheP.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "HwiP.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "SwiP.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "osal.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "osalver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "osalver.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
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_nonos_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_nonos.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_tirtos_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_tirtos.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_common_nonos.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_common_tirtos.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "osal_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");\r
-tplt.genFile("./docs/Doxyfile",osalDriverReleaseVersion); \r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",osalDriverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./osalver.h.xdt");\r
-tplt.genFile("./osalver.h",osalDriverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the osal Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the osal driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = osal Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2019, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the osal Socket Driver Package. */
+var subDirectories = [ "src", "docs", "arch", "soc", "test"];
+
+var osalDriverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * osal LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    osalDriverInstallType = "TAR";
+else
+    osalDriverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      osal_<version> */
+var osalRTSCFileName = "osal" + "_" +
+                      osalDriverReleaseVersion[0] + "_" +  osalDriverReleaseVersion[1] + "_" +
+                      osalDriverReleaseVersion[2]  + "_" + osalDriverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* osal Socket Driver Build Information *************");
+print ("osal Socket Driver Install      : " + osalDriverInstallType);
+print ("osal Socket Driver LLD Version  : " + osalDriverReleaseVersion);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("C67 Tools Directory             : " + c674ToolsBaseDir);
+print ("M4  Tools Directory             : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+print ("A9 Tools Directory              : " + a9ToolsBaseDir);
+print ("A8 Tools Directory              : " + a8ToolsBaseDir);
+print ("RTSC File Name                 : " + osalRTSCFileName);
+print ("osal Socket Driver LLD Path     : " + osalDriverPath);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+    print ("A9 basic opts                   : " + A9LE.ccOpts.prefix);
+    print ("A8 basic opts                   : " + A8LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the osal LLD */
+Pkg.defaultRelease = Pkg.addRelease (osalRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "SemaphoreP.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "MuxIntcP.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "CacheP.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "HwiP.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "SwiP.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "osal.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "osalver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "osalver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_nonos_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_nonos.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_tirtos_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_tirtos.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_common_nonos.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_common_tirtos.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "osal_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",osalDriverReleaseVersion);
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",osalDriverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./osalver.h.xdt");
+tplt.genFile("./osalver.h",osalDriverReleaseVersion);
+
+
index dca992d918b229bdda267ebc2db7e25a81d2301a..20c0657ad40f10fd5fd01819685752f2527d2cff 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the nimu Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the nimu driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2015, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the nimu Socket Driver Package. */\r
-var subDirectories = [ "src", "include", "docs", "example"];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * nimu LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      nimu_<version> */\r
-var nimuRTSCFileName = "nimu" + "_" + LLDPartNumber + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* nimu Socket Driver Build Information *************");\r
-print ("nimu Socket Driver Install      : " + driverInstallType);\r
-print ("nimu Socket Driver LLD Version  : " + driverReleaseVersion);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-print ("RTSC File Name                 : " + nimuRTSCFileName);\r
-print ("nimu Socket Driver LLD Path     : " + driverPath);\r
-if (pOpts == 1) \r
-{      \r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the nimu LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (nimuRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_eth.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_ver.h.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icssg.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icssg_profile.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./nimu_ver.h.xdt");\r
-tplt.genFile("./nimu_ver.h",driverReleaseVersion);      \r
-\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the nimu Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the nimu driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2015, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the nimu Socket Driver Package. */
+var subDirectories = [ "src", "include", "docs", "example"];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * nimu LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      nimu_<version> */
+var nimuRTSCFileName = "nimu" + "_" + LLDPartNumber + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* nimu Socket Driver Build Information *************");
+print ("nimu Socket Driver Install      : " + driverInstallType);
+print ("nimu Socket Driver LLD Version  : " + driverReleaseVersion);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+print ("RTSC File Name                 : " + nimuRTSCFileName);
+print ("nimu Socket Driver LLD Path     : " + driverPath);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the nimu LLD */
+Pkg.defaultRelease = Pkg.addRelease (nimuRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_eth.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icssg.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_icssg_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./nimu_ver.h.xdt");
+tplt.genFile("./nimu_ver.h",driverReleaseVersion);
+
+
index 9ad5222b03241c33093fbfa816582d453d58283c..338cd5eb95cf1e81df25c8eb1ccc7e32a1e69b58 100644 (file)
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the nimu_icss Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the nimu_icss driver\r
- *  \r
- *  The file takes the following parameters from the command line through the\r
- *  XDCARGS variable.\r
- *      XDCARGS[0] = Driver Install Type \r
- *      Valid Values are "TAR" or "SETUP"\r
- *      DEFAULT is "SETUP"\r
- *\r
- *  Example for a valid command:\r
- *      xdc XDCARGS="SETUP" release   \r
- *\r
- * Copyright (C) 2014-2015, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */\r
-var subDirectories = [ "src", "example", "docs" ];\r
-\r
-var driverInstallType;\r
-\r
-/* Determine if we need to create the InstallJammer Application or not? \r
- * nimu_icss LLD Deliverables be either of the following formats:\r
- *  - TAR Ball Package\r
- *  - Setup Executable \r
- * DEFAULT is a SETUP Executable. */\r
-\r
-if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))\r
-    driverInstallType = "TAR";\r
-else\r
-    driverInstallType = arguments[0];\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      nimu_icss_<version> */\r
-var nimu_icssRTSCFileName = "nimu_icss" + "_" + LLDPartNumber + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/******************************************************************\r
- ************************ Release Banner **************************\r
- ******************************************************************/\r
-\r
-print ("************* nimu_icss Socket Driver Build Information *************");\r
-print ("nimu_icss Socket Driver Install       : " + driverInstallType);\r
-print ("nimu_icss Socket Driver LLD Version   : " + driverReleaseVersion);\r
-print ("C66 Tools Directory             : " + c66ToolsBaseDir);\r
-print ("M4 Tools Directory              : " + m4ToolsBaseDir);\r
-print ("A15 Tools Directory             : " + a15ToolsBaseDir);\r
-print ("RTSC File Name                 : " + nimu_icssRTSCFileName);\r
-print ("nimu_icss Socket Driver LLD Path      : " + driverPath);\r
-if (pOpts == 1) \r
-{      \r
-    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);\r
-    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);\r
-    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);\r
-    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);\r
-}\r
-print ("****************************************************************");\r
-\r
-/* Create the release package for the nimu_icss LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (nimu_icssRTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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++] = "config_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icssEth.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icssIoctl.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_ver.h.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";\r
-\r
-/* Generate Users Manual Doxyfile */\r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion); \r
-\r
-/* Generate paver.h */\r
-var tplt = xdc.loadTemplate("./nimu_icss_ver.h.xdt");\r
-tplt.genFile("./nimu_icss_ver.h",driverReleaseVersion);      \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 (driverInstallType == "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_nimu_icss_<device>_<version>.exe \r
-     */\r
-    var InstallJammerVersion = "-DVersion " + LLDPartNumber + "_" + \r
-                               driverReleaseVersion[0] + "_" + driverReleaseVersion[1] + "_" +  \r
-                               driverReleaseVersion[2] + "_" + driverReleaseVersion[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 " + driverPath + "./tmp";\r
-\r
-    /* This is the location where the nimu_icss LLD will be installed by default. */\r
-    var WinInstallDir = " -DWinInstallDir C:/Program Files/Texas Instruments/nimu_icss" + "_" + \r
-                            LLDPartNumber + "_" + \r
-                            driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +  \r
-                            driverReleaseVersion[2]  + "_" + driverReleaseVersion[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/" + nimu_icssRTSCFileName + ".tar" + " -Ctmp/packages \n";\r
-    Pkg.makeEpilogue += "\t installjammer " + InstallJammerVersion + PackageBaseDir + WinInstallDir + \r
-                        " --output-dir packages/ --build install/nimu_icsslld.mpi\n";\r
-    Pkg.makeEpilogue += "\t -$(RMDIR) /S /Q tmp\n\n";\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) makefile\n";\r
-    Pkg.makeEpilogue += "\t $(RM) packages/*.exe\n";\r
-    Pkg.makeEpilogue += "\t $(RM) packages/*.bin\n";\r
-    Pkg.makeEpilogue += "\t -$(RMDIR) eclipse\n\n";\r
-}\r
-    \r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the nimu_icss Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the nimu_icss driver
+ *
+ *  The file takes the following parameters from the command line through the
+ *  XDCARGS variable.
+ *      XDCARGS[0] = Driver Install Type
+ *      Valid Values are "TAR" or "SETUP"
+ *      DEFAULT is "SETUP"
+ *
+ *  Example for a valid command:
+ *      xdc XDCARGS="SETUP" release
+ *
+ * Copyright (C) 2014-2015, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */
+var subDirectories = [ "src", "example", "docs" ];
+
+var driverInstallType;
+
+/* Determine if we need to create the InstallJammer Application or not?
+ * nimu_icss LLD Deliverables be either of the following formats:
+ *  - TAR Ball Package
+ *  - Setup Executable
+ * DEFAULT is a SETUP Executable. */
+
+if ((arguments[0] != "TAR") && (arguments[0] != "SETUP"))
+    driverInstallType = "TAR";
+else
+    driverInstallType = arguments[0];
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      nimu_icss_<version> */
+var nimu_icssRTSCFileName = "nimu_icss" + "_" + LLDPartNumber + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+/******************************************************************
+ ************************ Release Banner **************************
+ ******************************************************************/
+
+print ("************* nimu_icss Socket Driver Build Information *************");
+print ("nimu_icss Socket Driver Install       : " + driverInstallType);
+print ("nimu_icss Socket Driver LLD Version   : " + driverReleaseVersion);
+print ("C66 Tools Directory             : " + c66ToolsBaseDir);
+print ("M4 Tools Directory              : " + m4ToolsBaseDir);
+print ("A15 Tools Directory             : " + a15ToolsBaseDir);
+print ("RTSC File Name                 : " + nimu_icssRTSCFileName);
+print ("nimu_icss Socket Driver LLD Path      : " + driverPath);
+if (pOpts == 1)
+{
+    print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
+    print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
+    print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
+    print ("A15 basic opts                  : " + A15LE.ccOpts.prefix);
+}
+print ("****************************************************************");
+
+/* Create the release package for the nimu_icss LLD */
+Pkg.defaultRelease = Pkg.addRelease (nimu_icssRTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icssEth.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icssIoctl.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile_indp.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "src/src_files_common.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "nimu_icss_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate paver.h */
+var tplt = xdc.loadTemplate("./nimu_icss_ver.h.xdt");
+tplt.genFile("./nimu_icss_ver.h",driverReleaseVersion);
+
+/*********************************************************************
+ *********************** INSTALL-JAMMER Support **********************
+ * In order to create the InstallJammer Application; we need to UNTAR
+ * the package into a temporary directory. This is required because
+ * currently the InstallJammer does not support the TAR Files and thus
+ * creating an UNTAR of the file. So to work-around the problem we will
+ * do the following in the EPILOGUE Section:-
+ *  (a) Create a temporary directory called 'tmp'
+ *  (b) UNTAR the package into 'tmp'
+ *  (c) Run the INSTALL Jammer on 'tmp'
+ *  (d) Remove the 'tmp' directory.
+ *
+ * This can be done only after the 'release' package has been created.
+ * Thus all of this work is being done in the EPILOGUE.
+ *********************************************************************/
+if (driverInstallType == "SETUP")
+{
+    /* Create the Install Jammer Version Variable. This is used inside the
+     * MPI File to create the Final executable.
+     *  The format supported is as follows:-
+     *   - setupwin32_nimu_icss_<device>_<version>.exe
+     */
+    var InstallJammerVersion = "-DVersion " + LLDPartNumber + "_" +
+                               driverReleaseVersion[0] + "_" + driverReleaseVersion[1] + "_" +
+                               driverReleaseVersion[2] + "_" + driverReleaseVersion[3];
+
+    /* This is the location where the tmp directory is located; this is used as
+     * the input directory for the Install Jammer. */
+    var PackageBaseDir = " -DPackageBaseDir " + driverPath + "./tmp";
+
+    /* This is the location where the nimu_icss LLD will be installed by default. */
+    var WinInstallDir = " -DWinInstallDir C:/Program Files/Texas Instruments/nimu_icss" + "_" +
+                            LLDPartNumber + "_" +
+                            driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                            driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+    /* Create the actual EPILOGUE Section for the INSTALLER */
+    Pkg.makeEpilogue += "release: install_application\n";
+    Pkg.makeEpilogue += "install_application:\n";
+    Pkg.makeEpilogue += "\t @echo -------------------------------------------------------\n";
+    Pkg.makeEpilogue += "\t @echo Creating the Install\n";
+    Pkg.makeEpilogue += "\t @echo -------------------------------------------------------\n";
+    Pkg.makeEpilogue += "\t -$(MKDIR) tmp\n";
+    Pkg.makeEpilogue += "\t -$(MKDIR) tmp/packages\n";
+    Pkg.makeEpilogue += "\t -$(MKDIR) tmp/eclipse\n";
+    Pkg.makeEpilogue += "\t -$(CP) -R eclipse tmp\n";
+    Pkg.makeEpilogue += "\t tar -xf ./packages/" + nimu_icssRTSCFileName + ".tar" + " -Ctmp/packages \n";
+    Pkg.makeEpilogue += "\t installjammer " + InstallJammerVersion + PackageBaseDir + WinInstallDir +
+                        " --output-dir packages/ --build install/nimu_icsslld.mpi\n";
+    Pkg.makeEpilogue += "\t -$(RMDIR) /S /Q tmp\n\n";
+
+    /* We need to clean after ourselves; extend the 'clean' target to take care of this. */
+    Pkg.makeEpilogue += "clean::\n";
+    Pkg.makeEpilogue += "\t -$(RM) makefile\n";
+    Pkg.makeEpilogue += "\t $(RM) packages/*.exe\n";
+    Pkg.makeEpilogue += "\t $(RM) packages/*.bin\n";
+    Pkg.makeEpilogue += "\t -$(RMDIR) eclipse\n\n";
+}
+
index 97bba2549c19878593f67d5ed52674c7f1a72e4b..51a50bd62a24625034cb85c2f9c97f6732163a3b 100644 (file)
@@ -1,77 +1,82 @@
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the timesync Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the timesync driver\r
- *\r
- *\r
- * Copyright (C) 2018, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */\r
-var subDirectories = [ "src", "example", "docs", "include" ];\r
-\r
-var driverInstallType;\r
-\r
-/* timesync LLD Deliverables be TAR Ball Package */\r
-driverInstallType = "TAR";\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      timeSync_<version> */\r
-var timeSync_RTSCFileName = "timeSync" + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/* Create the release package for the nimu_icss LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (timeSync_RTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.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++] = "./lib";\r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion);\r
-\r
-/* Generate component's ver.h */\r
-var tplt = xdc.loadTemplate("./timeSync_ver.h.xdt");\r
-tplt.genFile("./timeSync_ver.h",driverReleaseVersion);\r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the timesync Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the timesync driver
+ *
+ *
+ * Copyright (C) 2018, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */
+var subDirectories = [ "src", "example", "docs", "include" ];
+
+var driverInstallType;
+
+/* timesync LLD Deliverables be TAR Ball Package */
+driverInstallType = "TAR";
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      timeSync_<version> */
+var timeSync_RTSCFileName = "timeSync" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+/* Create the release package for the nimu_icss LLD */
+Pkg.defaultRelease = Pkg.addRelease (timeSync_RTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate component's ver.h */
+var tplt = xdc.loadTemplate("./timeSync_ver.h.xdt");
+tplt.genFile("./timeSync_ver.h",driverReleaseVersion);
index 97bba2549c19878593f67d5ed52674c7f1a72e4b..51a50bd62a24625034cb85c2f9c97f6732163a3b 100644 (file)
@@ -1,77 +1,82 @@
-/******************************************************************************\r
- * FILE PURPOSE: Build description for the timesync Driver\r
- ******************************************************************************\r
- * FILE NAME: package.bld\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the build specification and description for the timesync driver\r
- *\r
- *\r
- * Copyright (C) 2018, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */\r
-var subDirectories = [ "src", "example", "docs", "include" ];\r
-\r
-var driverInstallType;\r
-\r
-/* timesync LLD Deliverables be TAR Ball Package */\r
-driverInstallType = "TAR";\r
-\r
-/* Irrespective of the InstallType we always create a TAR Ball Package as a part\r
- * of the RTSC Build. Here we determine the name of the TAR Ball Package\r
- *  Format is as follows:\r
- *      timeSync_<version> */\r
-var timeSync_RTSCFileName = "timeSync" + "_" + \r
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + \r
-                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];\r
-\r
-/* Create the release package for the nimu_icss LLD */\r
-Pkg.defaultRelease = Pkg.addRelease (timeSync_RTSCFileName, {prefix: "./packages/"});\r
-\r
-/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently\r
- * not supported in the XDC tools being used. Currenly builds need to be done with the \r
- * following options:-\r
- *   xdc MK_FIXLISTOPTS=-t release \r
- * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the\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_mk.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_component.mk";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h";\r
-Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.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++] = "./lib";\r
-\r
-/* Generate Settings.xdc */\r
-var tplt = xdc.loadTemplate("./Settings.xdc.xdt");\r
-tplt.genFile("./Settings.xdc",driverReleaseVersion);\r
-\r
-/* Generate component's ver.h */\r
-var tplt = xdc.loadTemplate("./timeSync_ver.h.xdt");\r
-tplt.genFile("./timeSync_ver.h",driverReleaseVersion);\r
+/******************************************************************************
+ * FILE PURPOSE: Build description for the timesync Driver
+ ******************************************************************************
+ * FILE NAME: package.bld
+ *
+ * DESCRIPTION:
+ *  This file contains the build specification and description for the timesync driver
+ *
+ *
+ * Copyright (C) 2018, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* List of all subdirectories that combine to make the nimu_icss Socket Driver Package. */
+var subDirectories = [ "src", "example", "docs", "include" ];
+
+var driverInstallType;
+
+/* timesync LLD Deliverables be TAR Ball Package */
+driverInstallType = "TAR";
+
+/* Irrespective of the InstallType we always create a TAR Ball Package as a part
+ * of the RTSC Build. Here we determine the name of the TAR Ball Package
+ *  Format is as follows:
+ *      timeSync_<version> */
+var timeSync_RTSCFileName = "timeSync" + "_" +
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
+                      driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
+
+/* Create the release package for the nimu_icss LLD */
+Pkg.defaultRelease = Pkg.addRelease (timeSync_RTSCFileName, {prefix: "./packages/"});
+
+/* Moving forward we need to set the Archiver of the package to be ZIP. This is currently
+ * not supported in the XDC tools being used. Currenly builds need to be done with the
+ * following options:-
+ *   xdc MK_FIXLISTOPTS=-t release
+ * ZIP is a better option as it works natively with INSTALL Jammer and we can remove the
+ * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
+//Pkg.attrs = {archiver : "zip"};
+
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
+if (package_type != "package_type_makefile")
+{
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "timeSync_ver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+}
+
+/* Generate Settings.xdc */
+var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
+tplt.genFile("./Settings.xdc",driverReleaseVersion);
+
+/* Generate component's ver.h */
+var tplt = xdc.loadTemplate("./timeSync_ver.h.xdt");
+tplt.genFile("./timeSync_ver.h",driverReleaseVersion);
index 61fb217fbc18a6bcb0042e53bb500b9ad5669d31..283d63f611f795b293375e9e762d11f73d4c6fbf 100644 (file)
@@ -1,16 +1,16 @@
-/******************************************************************************\r
- * FILE PURPOSE: Package specification file \r
- ******************************************************************************\r
- * FILE NAME: package.xdc\r
- *\r
- * DESCRIPTION: \r
- *  This file contains the package specification for the timesync Transport Library\r
- *\r
- * Copyright (C) 2018, Texas Instruments, Inc.\r
- *****************************************************************************/\r
-\r
-\r
-package ti.transport.timeSync[1, 0, 0, 0] {\r
-    module Settings;\r
-}\r
-\r
+/******************************************************************************
+ * FILE PURPOSE: Package specification file
+ ******************************************************************************
+ * FILE NAME: package.xdc
+ *
+ * DESCRIPTION:
+ *  This file contains the package specification for the timesync Transport Library
+ *
+ * Copyright (C) 2018, Texas Instruments, Inc.
+ *****************************************************************************/
+
+
+package ti.transport.timeSync.v2[1, 0, 0, 0] {
+    module Settings;
+}
+
index 33b6d6bc42cc4ff0ca1063c6055afe71e1d7a7e1..8d7dc42247442dbae4b587c63b9b4d8b6ab9c0a6 100644 (file)
@@ -39,9 +39,11 @@ else
  *  Format is as follows:
  *      utils_<version> */
 var utilsRTSCFileName = "utils"+"_"+
-                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" + 
+                      driverReleaseVersion[0] + "_" +  driverReleaseVersion[1] + "_" +
                       driverReleaseVersion[2]  + "_" + driverReleaseVersion[3];
 
+var package_type = java.lang.System.getenv("PDK_PACKAGE_TYPE");
+
 /******************************************************************
  ************************ Release Banner **************************
  ******************************************************************/
@@ -54,8 +56,8 @@ print ("Utilities Tool Path             : " + driverPath);
 print ("C66 Tools Directory             : " + c66ToolsBaseDir);
 print ("M4 Tools Directory              : " + m4ToolsBaseDir);
 print ("A15 Tools Directory             : " + a15ToolsBaseDir);
-if (pOpts == 1) 
-{      
+if (pOpts == 1)
+{
     print ("CC LE opts                      : " + C66LE.ccOpts.prefix);
     print ("CC BE opts                      : " + C66BE.ccOpts.prefix);
     print ("M4 LE opts                      : " + M4LE.ccOpts.prefix);
@@ -74,45 +76,48 @@ Pkg.defaultRelease = Pkg.addRelease (utilsRTSCFileName, {prefix: "./packages/"})
  * uncompression into a temporary directory. XDC Tools with xdc-rXX support the ZIP archiver. */
 //Pkg.attrs = {archiver : "zip"};
 
-/* Cycle through all the sub-directories and build all the files */
-for (var i = 0; i < subDirectories.length; i++)
+if (package_type != "package_type_makefile")
 {
-    /* Load the capsule in the sub directory. */
-    var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
-
-    print ("Building directory " + subDirectories[i]);
-
-    /* Build the capsule. */
-    caps.modBuild();
-
-    /* Package the module.xs files for building via package */
-    Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    /* Cycle through all the sub-directories and build all the files */
+    for (var i = 0; i < subDirectories.length; i++)
+    {
+        /* Load the capsule in the sub directory. */
+        var caps = xdc.loadCapsule (subDirectories[i]+"/Module.xs");
+
+        print ("Building directory " + subDirectories[i]);
+
+        /* Build the capsule. */
+        caps.modBuild();
+
+        /* Package the module.xs files for building via package */
+        Pkg.otherFiles[Pkg.otherFiles.length++] = subDirectories[i]+"/Module.xs";
+    }
+
+    /* Package the remaining files */
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "scripts";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingHooks.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "profiling_osal.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingver.h";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingver.h.xdt";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "README.dox";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "profiling_component.mk";
+    Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
+
+    /* Generate Users Manual Doxyfile */
+    var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
+    tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
 }
 
-/* Package the remaining files */
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "config_mk.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "package.bld";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "Settings.xdc.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/Doxyfile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxyfile.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/buildlib.xs";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "makefile";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "scripts";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingHooks.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "profiling_osal.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingver.h";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "profilingver.h.xdt";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "README.dox";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "build/makefile_profile.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "profiling_component.mk";
-Pkg.otherFiles[Pkg.otherFiles.length++] = "./lib";
-
-/* Generate Users Manual Doxyfile */
-var tplt = xdc.loadTemplate("./docs/doxyfile.xdt");
-tplt.genFile("./docs/Doxyfile",driverReleaseVersion);
-
 /* Generate Settings.xdc */
 var tplt = xdc.loadTemplate("./Settings.xdc.xdt");
 tplt.genFile("./Settings.xdc",driverReleaseVersion);