diff options
author | Sinthu Raja M | 2018-07-02 13:22:16 -0500 |
---|---|---|
committer | Sinthu Raja M | 2018-07-02 15:09:46 -0500 |
commit | 6ace1339f1abf58f5ed2312ece8ec0b8ad4682e5 (patch) | |
tree | b1fc69b494cdeddd75d448ad6e85e23067b99e68 | |
parent | 72fe9dc35b9e128a95b4e3e4403cb197616e2e88 (diff) | |
download | qmss-lld-6ace1339f1abf58f5ed2312ece8ec0b8ad4682e5.tar.gz qmss-lld-6ace1339f1abf58f5ed2312ece8ec0b8ad4682e5.tar.xz qmss-lld-6ace1339f1abf58f5ed2312ece8ec0b8ad4682e5.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 8bf9574..89b4442 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 QMSS | 7 | * This file contains common routines that are used by the various QMSS |
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 | ||