summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfc6bdd)
raw | patch | inline | side by side (parent: dfc6bdd)
author | Sinthu Raja M <x0257345@ti.com> | |
Mon, 2 Jul 2018 19:41:51 +0000 (01:11 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Mon, 2 Jul 2018 19:56:31 +0000 (01:26 +0530) |
Added RULES_MAKE macro to support build based on custom Rules.make
location
location
build/buildlib.xs | patch | blob | history |
diff --git a/build/buildlib.xs b/build/buildlib.xs
index d8156a6038815ce1e8977d0a3697f56fdf66ba47..ed2294f3686cb16fdd49925e8e1b00f2ff5c1f87 100644 (file)
--- a/build/buildlib.xs
+++ b/build/buildlib.xs
* This file contains common routines that are used by the various IQN2
* components.
*
- * Copyright (C) 2012-13, Texas Instruments, Inc.
+ * Copyright (C) 2012-18, Texas Instruments, Inc.
*****************************************************************************/
/**************************************************************************
makefile.writeLine("\n# ROOT Directory");
makefile.writeLine("export ROOTDIR := "+pkgroot);
+ makefile.writeLine("\n# Include Rules.make");
+ makefile.writeLine("ifndef PDK_INSTALL_DIR_RECIPE");
+ makefile.writeLine("ifeq ($(RULES_MAKE),)");
+ makefile.writeLine("include $(PDK_INSTALL_PATH)/ti/build/Rules.make");
+ makefile.writeLine("else");
+ makefile.writeLine("include $(RULES_MAKE)");
+ makefile.writeLine("endif");
+ makefile.writeLine("endif");
+
makefile.writeLine("\n# INCLUDE Directory");
makefile.writeLine("export INCDIR := "+getxdcpath+";$(ROOTDIR)");