summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinthu Raja M2018-07-02 13:24:00 -0500
committerSinthu Raja M2018-07-02 15:08:16 -0500
commitb26e9aad5d61773e2f6017b9c7d8dc6766638ec4 (patch)
tree7d51a07c2123843bc00d4ec69625c4b634a47303
parent5f24617e71670f17ee9adf71d5b30dc8ff9e5ca3 (diff)
downloadpa-lld-b26e9aad5d61773e2f6017b9c7d8dc6766638ec4.tar.gz
pa-lld-b26e9aad5d61773e2f6017b9c7d8dc6766638ec4.tar.xz
pa-lld-b26e9aad5d61773e2f6017b9c7d8dc6766638ec4.zip
PRSDK-2194 Added RULES_MAKE macro
Added RULES_MAKE macro to support build based on custom Rules.make location
-rw-r--r--build/buildlib.xs11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/buildlib.xs b/build/buildlib.xs
index 0cb051a..473ac5d 100644
--- a/build/buildlib.xs
+++ b/build/buildlib.xs
@@ -7,7 +7,7 @@
7 * This file contains common routines that are used by the various PA 7 * This file contains common routines that are used by the various PA
8 * components. 8 * components.
9 * 9 *
10 * Copyright (C) 2011, Texas Instruments, Inc. 10 * Copyright (C) 2011 - 2018, Texas Instruments, Inc.
11 *****************************************************************************/ 11 *****************************************************************************/
12 12
13/************************************************************************** 13/**************************************************************************
@@ -155,6 +155,15 @@ function createMake(makefile)
155 makefile.writeLine("\n# ROOT Directory"); 155 makefile.writeLine("\n# ROOT Directory");
156 makefile.writeLine("export ROOTDIR := "+pkgroot); 156 makefile.writeLine("export ROOTDIR := "+pkgroot);
157 157
158 makefile.writeLine("\n# Include Rules.make");
159 makefile.writeLine("ifndef PDK_INSTALL_DIR_RECIPE");
160 makefile.writeLine("ifeq ($(RULES_MAKE),)");
161 makefile.writeLine("include $(PDK_INSTALL_PATH)/ti/build/Rules.make");
162 makefile.writeLine("else");
163 makefile.writeLine("include $(RULES_MAKE)");
164 makefile.writeLine("endif");
165 makefile.writeLine("endif");
166
158 makefile.writeLine("\n# INCLUDE Directory"); 167 makefile.writeLine("\n# INCLUDE Directory");
159 makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)"); 168 makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)");
160 169