Merge pull request #1 in PROCESSOR-SDK/tcp3d-lld from PRSDK-2194 to master
authorRaghu Nambiath <a0850439@ti.com>
Mon, 2 Jul 2018 21:54:49 +0000 (16:54 -0500)
committerRaghu Nambiath <a0850439@ti.com>
Mon, 2 Jul 2018 21:54:49 +0000 (16:54 -0500)
* commit '3a6b2ddae712cf75cd04dd76d06b0c6d470f5946':
  PRSDK-2194 Added RULES_MAKE macro

build/buildlib.xs

index 20d9e25031428bd105c287aa0d3a82a2a3d527dd..fd11ae522bb2496eca2ee596a32aee4d994a17bb 100644 (file)
@@ -7,7 +7,7 @@
  *  This file contains common routines that are used by the various TCP3D driver \r
  *  components.\r
  *\r
- * Copyright (C) 2011-2014, Texas Instruments, Inc.\r
+ * Copyright (C) 2011-2018, Texas Instruments, Inc.\r
  *****************************************************************************/\r
 \r
 /**************************************************************************\r
@@ -153,6 +153,15 @@ function createMake(makefile)
       makefile.writeLine("\n# ROOT Directory");        \r
       makefile.writeLine("export ROOTDIR := "+pkgroot);\r
     \r
+      makefile.writeLine("\n# Include Rules.make");\r
+      makefile.writeLine("ifndef PDK_INSTALL_DIR_RECIPE");\r
+      makefile.writeLine("ifeq ($(RULES_MAKE),)");\r
+      makefile.writeLine("include $(PDK_INSTALL_PATH)/ti/build/Rules.make");\r
+      makefile.writeLine("else");\r
+      makefile.writeLine("include $(RULES_MAKE)");\r
+      makefile.writeLine("endif");\r
+      makefile.writeLine("endif");\r
+\r
       makefile.writeLine("\n# INCLUDE Directory");\r
       makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR);$(C6X_GEN_INSTALL_PATH)/include");       \r
     \r