PRSDK-2194 Added RULES_MAKE macro
authorSinthu Raja M <x0257345@ti.com>
Mon, 2 Jul 2018 19:45:21 +0000 (01:15 +0530)
committerSinthu Raja M <x0257345@ti.com>
Mon, 2 Jul 2018 19:58:59 +0000 (01:28 +0530)
 Added RULES_MAKE macro to support build based on custom Rules.make
 location

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