From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Date: Thu, 5 Nov 2015 01:21:53 -0600 Subject: [U-Boot] [PATCH v3 3/5] ARM: omap-common: Add standard access for board description EEPROM In-Reply-To: <563AF074.9000502@ti.com> References: <1446674413-28163-1-git-send-email-s-kipisz2@ti.com> <1446674413-28163-4-git-send-email-s-kipisz2@ti.com> <563AF074.9000502@ti.com> Message-ID: <563B0391.80100@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/05/2015 12:00 AM, Lokesh Vutla wrote: [...] >> diff --git a/board/ti/common/board.h b/board/ti/common/board.h >> new file mode 100644 >> index 000000000000..19d63cad82f9 >> --- /dev/null >> +++ b/board/ti/common/board.h > > May be keep this header file under arch/arm/include/asm/ so that it can > be included properly. > if we do something like this: then we'd not have to add cruft to the generic location.. 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/ -- Regards, Nishanth Menon