All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: Include vendor common library in include search path
@ 2015-11-05  7:28 Nishanth Menon
  2015-11-05  7:32 ` Nishanth Menon
  0 siblings, 1 reply; 22+ messages in thread
From: Nishanth Menon @ 2015-11-05  7:28 UTC (permalink / raw)
  To: u-boot

When the vendor common libraries exists, then board should be able to
reference headers located there, rather than having to do weird logic
such as '#include "../common/xyz.h"'.

Signed-off-by: Nishanth Menon <nm@ti.com>
---

 Makefile                | 1 +
 board/ti/am57xx/board.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3c21f8ddf9e9..75d5ea802dfd 100644
--- a/Makefile
+++ b/Makefile
@@ -620,6 +620,7 @@ c_flags := $(KBUILD_CFLAGS) $(cpp_flags)
 # U-Boot objects....order is important (i.e. start must be first)
 
 HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n)
+UBOOTINCLUDE += $(if $(HAVE_VENDOR_COMMON_LIB:y=1), -I$(srctree)/board/$(VENDOR)/common)
 
 libs-y += lib/
 libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-11-12 17:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05  7:28 [U-Boot] [PATCH] Makefile: Include vendor common library in include search path Nishanth Menon
2015-11-05  7:32 ` Nishanth Menon
2015-11-06  0:15   ` Simon Glass
2015-11-06  3:30     ` Nishanth Menon
2015-11-06  4:50       ` Masahiro Yamada
2015-11-06 17:10         ` Nishanth Menon
2015-11-06 18:23           ` Nishanth Menon
2015-11-06 23:58             ` Simon Glass
2015-11-08  2:18               ` Tom Rini
2015-11-08 15:56                 ` menon.nishanth at gmail.com
2015-11-08 16:38                   ` Tom Rini
2015-11-09 16:03                     ` Masahiro Yamada
2015-11-09 17:37                       ` Nishanth Menon
2015-11-09 20:24                         ` Simon Glass
2015-11-10  3:25                           ` Masahiro Yamada
2015-11-10 14:55                             ` Nishanth Menon
2015-11-10 15:34                               ` Nishanth Menon
2015-11-12 16:16                                 ` Simon Glass
2015-11-12 16:22                                   ` Tom Rini
2015-11-12 16:45                                     ` Nishanth Menon
2015-11-12 16:56                                       ` Simon Glass
2015-11-12 17:05                                         ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.