summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinthu Raja M2018-07-02 13:31:20 -0500
committerSinthu Raja M2018-07-02 15:11:06 -0500
commit55aceb57375008902da7384a3badb0ab3b303f9f (patch)
treec8436dc338ee5e4030594cdb92dc119ac4784167
parent6a1d2891b3de9891dea71a069a261c6368209413 (diff)
downloadcppi-lld-55aceb57375008902da7384a3badb0ab3b303f9f.tar.gz
cppi-lld-55aceb57375008902da7384a3badb0ab3b303f9f.tar.xz
cppi-lld-55aceb57375008902da7384a3badb0ab3b303f9f.zip
PRSDK-2194 Added RULES_MAKE macro
Added RULES_MAKE macro to support build based on custom Rules.make location
-rwxr-xr-xbuild/buildlib.xs11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/buildlib.xs b/build/buildlib.xs
index 32319a6..f2ab6f3 100755
--- a/build/buildlib.xs
+++ b/build/buildlib.xs
@@ -7,7 +7,7 @@
7 * This file contains common routines that are used by the various CPPI 7 * This file contains common routines that are used by the various CPPI
8 * components. 8 * components.
9 * 9 *
10 * Copyright (C) 2011-2015, Texas Instruments, Inc. 10 * Copyright (C) 2011-2018, Texas Instruments, Inc.
11 *****************************************************************************/ 11 *****************************************************************************/
12 12
13/************************************************************************** 13/**************************************************************************
@@ -154,6 +154,15 @@ function createMake(makefile)
154 makefile.writeLine("\n# ROOT Directory"); 154 makefile.writeLine("\n# ROOT Directory");
155 makefile.writeLine("export ROOTDIR := "+pkgroot); 155 makefile.writeLine("export ROOTDIR := "+pkgroot);
156 156
157 makefile.writeLine("\n# Include Rules.make");
158 makefile.writeLine("ifndef PDK_INSTALL_DIR_RECIPE");
159 makefile.writeLine("ifeq ($(RULES_MAKE),)");
160 makefile.writeLine("include $(PDK_INSTALL_PATH)/ti/build/Rules.make");
161 makefile.writeLine("else");
162 makefile.writeLine("include $(RULES_MAKE)");
163 makefile.writeLine("endif");
164 makefile.writeLine("endif");
165
157 makefile.writeLine("\n# INCLUDE Directory"); 166 makefile.writeLine("\n# INCLUDE Directory");
158 makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)"); 167 makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)");
159 168