From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from avon.wwwdotorg.org ([70.85.31.133]:37221 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936065Ab3BOQZl (ORCPT ); Fri, 15 Feb 2013 11:25:41 -0500 Message-ID: <511E617E.6080206@wwwdotorg.org> Date: Fri, 15 Feb 2013 09:25:34 -0700 From: Stephen Warren MIME-Version: 1.0 Subject: Re: [RFC 1/2] Makefile: Add arch/arch/$(hdr-arch)/boot in header include path References: <1360918364-27960-1-git-send-email-hdoyu@nvidia.com> In-Reply-To: <1360918364-27960-1-git-send-email-hdoyu@nvidia.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Hiroshi Doyu Cc: linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Michal Marek , Stephen Warren , Mike Turquette , Peter De Schrijver , Prashant Gaikwad , Joseph Lo , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Grant Likely , Rob Herring , devicetree-discuss On 02/15/2013 01:52 AM, Hiroshi Doyu wrote: > With a new feature dtc+cpp, DT can introduces some definitions in its > header files for their own. Some of those DT info can be used in > kernel source as well, instead of having the duplicate info in kernel > headers. This patch allows kernel source to include those DT > headers. For example: > > + #include Since this is devicetree-related, the DT maintainers should also be CC'd. I've added them on this email, hence quoting the entire patch. > > Signed-off-by: Hiroshi Doyu > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 0b4bf62..7f54cdb 100644 > --- a/Makefile > +++ b/Makefile > @@ -364,7 +364,7 @@ LINUXINCLUDE := \ > -I$(srctree)/arch/$(hdr-arch)/include \ > -Iarch/$(hdr-arch)/include/generated \ > $(if $(KBUILD_SRC), -I$(srctree)/include) \ > - -Iinclude \ > + -Iinclude -Iarch/$(hdr-arch)/boot \ > $(USERINCLUDE) > > KBUILD_CPPFLAGS := -D__KERNEL__ > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [RFC 1/2] Makefile: Add arch/arch/$(hdr-arch)/boot in header include path Date: Fri, 15 Feb 2013 09:25:34 -0700 Message-ID: <511E617E.6080206@wwwdotorg.org> References: <1360918364-27960-1-git-send-email-hdoyu@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1360918364-27960-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Hiroshi Doyu Cc: Michal Marek , Stephen Warren , linux-kbuild-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Joseph Lo , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mike Turquette , devicetree-discuss , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-tegra@vger.kernel.org On 02/15/2013 01:52 AM, Hiroshi Doyu wrote: > With a new feature dtc+cpp, DT can introduces some definitions in its > header files for their own. Some of those DT info can be used in > kernel source as well, instead of having the duplicate info in kernel > headers. This patch allows kernel source to include those DT > headers. For example: > > + #include Since this is devicetree-related, the DT maintainers should also be CC'd. I've added them on this email, hence quoting the entire patch. > > Signed-off-by: Hiroshi Doyu > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 0b4bf62..7f54cdb 100644 > --- a/Makefile > +++ b/Makefile > @@ -364,7 +364,7 @@ LINUXINCLUDE := \ > -I$(srctree)/arch/$(hdr-arch)/include \ > -Iarch/$(hdr-arch)/include/generated \ > $(if $(KBUILD_SRC), -I$(srctree)/include) \ > - -Iinclude \ > + -Iinclude -Iarch/$(hdr-arch)/boot \ > $(USERINCLUDE) > > KBUILD_CPPFLAGS := -D__KERNEL__ > From mboxrd@z Thu Jan 1 00:00:00 1970 From: swarren@wwwdotorg.org (Stephen Warren) Date: Fri, 15 Feb 2013 09:25:34 -0700 Subject: [RFC 1/2] Makefile: Add arch/arch/$(hdr-arch)/boot in header include path In-Reply-To: <1360918364-27960-1-git-send-email-hdoyu@nvidia.com> References: <1360918364-27960-1-git-send-email-hdoyu@nvidia.com> Message-ID: <511E617E.6080206@wwwdotorg.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/15/2013 01:52 AM, Hiroshi Doyu wrote: > With a new feature dtc+cpp, DT can introduces some definitions in its > header files for their own. Some of those DT info can be used in > kernel source as well, instead of having the duplicate info in kernel > headers. This patch allows kernel source to include those DT > headers. For example: > > + #include Since this is devicetree-related, the DT maintainers should also be CC'd. I've added them on this email, hence quoting the entire patch. > > Signed-off-by: Hiroshi Doyu > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 0b4bf62..7f54cdb 100644 > --- a/Makefile > +++ b/Makefile > @@ -364,7 +364,7 @@ LINUXINCLUDE := \ > -I$(srctree)/arch/$(hdr-arch)/include \ > -Iarch/$(hdr-arch)/include/generated \ > $(if $(KBUILD_SRC), -I$(srctree)/include) \ > - -Iinclude \ > + -Iinclude -Iarch/$(hdr-arch)/boot \ > $(USERINCLUDE) > > KBUILD_CPPFLAGS := -D__KERNEL__ >