diff options
author | Sinthu Raja M | 2018-07-02 14:42:07 -0500 |
---|---|---|
committer | Sinthu Raja M | 2018-07-02 14:56:43 -0500 |
commit | 6f5dcb86f561f47092655c9241a9309008767aba (patch) | |
tree | 614e5e32a2396c0da2fe7109eb9575714c2de65c | |
parent | a701bbb5ed2976d5723c955c87a685f7517cffa3 (diff) | |
download | aif2-lld-6f5dcb86f561f47092655c9241a9309008767aba.tar.gz aif2-lld-6f5dcb86f561f47092655c9241a9309008767aba.tar.xz aif2-lld-6f5dcb86f561f47092655c9241a9309008767aba.zip |
PRSDK-2194 Added RULES_MAKE macro
Added RULES_MAKE macro to support build based on custom Rules.make
location
-rwxr-xr-x | build/buildlib.xs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/buildlib.xs b/build/buildlib.xs index 86a16aa..310acb2 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 AIF2 driver | 7 | * This file contains common routines that are used by the various AIF2 driver |
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 | /************************************************************************** |
@@ -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 | ||