diff options
author | Sinthu Raja M | 2018-07-02 14:44:56 -0500 |
---|---|---|
committer | Sinthu Raja M | 2018-07-02 14:57:43 -0500 |
commit | 0306d41170458b0827b791f7ade9302a869527d7 (patch) | |
tree | 202ebbc839a7171cff28084ae0f490aa507a1400 | |
parent | 9c6f36b68df41eb7a81aadb6d9ceba2ed3e090b2 (diff) | |
download | nwal-lld-0306d41170458b0827b791f7ade9302a869527d7.tar.gz nwal-lld-0306d41170458b0827b791f7ade9302a869527d7.tar.xz nwal-lld-0306d41170458b0827b791f7ade9302a869527d7.zip |
PRSDK-2194 Added RULES_MAKE macro
Added RULES_MAKE macro to support build based on custom Rules.make
location
-rwxr-xr-x | ti/drv/nwal/build/buildlib.xs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ti/drv/nwal/build/buildlib.xs b/ti/drv/nwal/build/buildlib.xs index 6ee71ef..9d8ffd8 100755 --- a/ti/drv/nwal/build/buildlib.xs +++ b/ti/drv/nwal/build/buildlib.xs | |||
@@ -7,7 +7,7 @@ | |||
7 | * This file contains common routines that are used by the various NWAL | 7 | * This file contains common routines that are used by the various NWAL |
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 | /************************************************************************** |
@@ -159,6 +159,15 @@ function createMake(makefile) | |||
159 | makefile.writeLine("\n# ROOT Directory"); | 159 | makefile.writeLine("\n# ROOT Directory"); |
160 | makefile.writeLine("export ROOTDIR := "+pkgroot); | 160 | makefile.writeLine("export ROOTDIR := "+pkgroot); |
161 | 161 | ||
162 | makefile.writeLine("\n# Include Rules.make"); | ||
163 | makefile.writeLine("ifndef PDK_INSTALL_DIR_RECIPE"); | ||
164 | makefile.writeLine("ifeq ($(RULES_MAKE),)"); | ||
165 | makefile.writeLine("include $(PDK_INSTALL_PATH)/ti/build/Rules.make"); | ||
166 | makefile.writeLine("else"); | ||
167 | makefile.writeLine("include $(RULES_MAKE)"); | ||
168 | makefile.writeLine("endif"); | ||
169 | makefile.writeLine("endif"); | ||
170 | |||
162 | makefile.writeLine("\n# INCLUDE Directory"); | 171 | makefile.writeLine("\n# INCLUDE Directory"); |
163 | makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)"); | 172 | makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)"); |
164 | 173 | ||