diff options
-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 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 | ||