diff options
author | M V Pratap Reddy | 2018-07-11 15:38:48 -0500 |
---|---|---|
committer | M V Pratap Reddy | 2018-07-11 15:38:48 -0500 |
commit | 14c4d3c8009e94953f5d62a1b33856e482206dd5 (patch) | |
tree | 4c2859105d7f4152e5763f10141707c45be868c5 | |
parent | a300e7d1f262bdfa48c92851bad0da228a41acc3 (diff) | |
download | fault_mgmt-14c4d3c8009e94953f5d62a1b33856e482206dd5.tar.gz fault_mgmt-14c4d3c8009e94953f5d62a1b33856e482206dd5.tar.xz fault_mgmt-14c4d3c8009e94953f5d62a1b33856e482206dd5.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.xs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/buildlib.xs b/build/buildlib.xs index f66a4ae..4f0836d 100644 --- a/build/buildlib.xs +++ b/build/buildlib.xs | |||
@@ -153,7 +153,16 @@ function createMake(makefile) | |||
153 | 153 | ||
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 | ||