Renamed package information in tirex to be compatible with 3.4.0.0.
[ep-processor-libraries/dsplib.git] / ti / dsplib / package.bld
index 5aa796cb5e44cda77d5dcf7b6c94d19a97e5a84e..f26e9d2ebd19a15ea2ba37fcbbdd8b5271131e00 100644 (file)
                   {name:"DSP_w_vec",srcDir:"c674"}]
 
 
-var TIREX_TARGET;
+var TIREX_TARGET_ROOT;
+var TIREX_TARGET_ID;
+var TIREX_TARGET_NAME;
 
   for (var k = 0; k < arguments.length; k++)
   {
    switch (arguments[k])
    {
     case "c66x":
-      TIREX_TARGET  = "C66X";
+      TIREX_TARGET_ID   = "c66x";
+      TIREX_TARGET_NAME = "C66x";
+      TIREX_TARGET_ROOT = "C66X";
       break;
     case "c674x":
-      TIREX_TARGET  = "C674X";
+      TIREX_TARGET_ID   = "c674x";
+      TIREX_TARGET_NAME = "C674x";
+      TIREX_TARGET_ROOT = "C674X";
       break;
     case "c64Px":
-      TIREX_TARGET  = "C64PX";
+      TIREX_TARGET_ID   = "c64Px";
+      TIREX_TARGET_NAME = "C64x+";
+      TIREX_TARGET_ROOT = "C64PX";
       break;
    }
   }
@@ -997,10 +1005,10 @@ Package.archiveFiles["CommonArchiveFiles"] = {
   /* Generate TI REX meta data */
   print( "Generating TI REX"); 
   var tirex_tplt = xdc.loadTemplate("./package.ccs.json.xdt");
-  tirex_tplt.genFile("./.metadata/.tirex/package.ccs.json",null,[TIREX_TARGET]);
+  tirex_tplt.genFile("./.metadata/.tirex/package.ccs.json",null,[TIREX_TARGET_ROOT]);
 
   tirex_tplt = xdc.loadTemplate("./package.tirex.json.xdt");
-  tirex_tplt.genFile("./.metadata/.tirex/package.tirex.json",null,[Package.version,TIREX_TARGET]);
+  tirex_tplt.genFile("./.metadata/.tirex/package.tirex.json",null,[Package.version,TIREX_TARGET_ID, TIREX_TARGET_NAME]);
 
   /* Include custom makefile to generate doxygen documents */
   Package.includeMake("Makedocs.mk");