From patchwork Thu Nov 5 07:21:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56022 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp240068lbr; Wed, 4 Nov 2015 23:22:08 -0800 (PST) X-Received: by 10.194.176.70 with SMTP id cg6mr7280477wjc.155.1446708128935; Wed, 04 Nov 2015 23:22:08 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id fd7si6303824wjc.157.2015.11.04.23.22.08; Wed, 04 Nov 2015 23:22:08 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6FBEE4BB55; Thu, 5 Nov 2015 08:22:07 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EaSVILlTkCUg; Thu, 5 Nov 2015 08:22:06 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6BAB34BB4A; Thu, 5 Nov 2015 08:22:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A3A444BB4A for ; Thu, 5 Nov 2015 08:22:02 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tGRrB4th2fln for ; Thu, 5 Nov 2015 08:22:02 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by theia.denx.de (Postfix) with ESMTPS id 2A1B64BB49 for ; Thu, 5 Nov 2015 08:21:58 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id tA57Ls7C013113; Thu, 5 Nov 2015 01:21:54 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tA57LsqC005939; Thu, 5 Nov 2015 01:21:54 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Thu, 5 Nov 2015 01:21:54 -0600 Received: from [128.247.9.115] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id tA57Lrrp023252; Thu, 5 Nov 2015 01:21:54 -0600 To: Lokesh Vutla , Steve Kipisz , , , , , , , , , , , , 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> From: Nishanth Menon Message-ID: <563B0391.80100@ti.com> Date: Thu, 5 Nov 2015 01:21:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <563AF074.9000502@ti.com> Subject: Re: [U-Boot] [PATCH v3 3/5] ARM: omap-common: Add standard access for board description EEPROM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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.. libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/ -- Regards, Nishanth Menon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot 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/