MCSDK 3.0: workaround to fix compilation issue for device specific CSL
authorHao Zhang <hzhang@ti.com>
Wed, 17 Oct 2012 20:42:27 +0000 (16:42 -0400)
committerHao Zhang <hzhang@ti.com>
Wed, 17 Oct 2012 20:42:27 +0000 (16:42 -0400)
src/Module.xs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 353af15..14fd941
@@ -20,6 +20,8 @@ var tcp3dLibFiles = [
     "src/tcp3d_betaState.c",\r
 ];\r
 \r
+var devicesCCOpt = [ " -DDEVICE_K2K" ];\r
+\r
 /* Other files for packaging */\r
 var tcp3dOtherFiles = [\r
     "src/tcp3d_drv_priv.h",\r
@@ -38,8 +40,11 @@ function modBuild()
     /* Build the libraries for all the targets specified. */\r
     for (var targets=0; targets < Build.targets.length; targets++)\r
     {\r
-        var libOptions = { incs: tcp3dIncludePath, };\r
-        \r
+        var libOptions = { \r
+            incs: tcp3dIncludePath, \r
+            copts: devicesCCOpt,\r
+        };\r
+                \r
         libUtility.buildLibrary (libOptions, Pkg.name, Build.targets[targets], tcp3dLibFiles);\r
     }\r
 \r