From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from webbox1416.server-home.net ([77.236.96.61]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WT4Uf-0006CP-Ui for ptxdist@pengutronix.de; Thu, 27 Mar 2014 08:12:54 +0100 Received: from comm.systec-electronic.de (unknown [212.185.67.148]) by webbox1416.server-home.net (Postfix) with ESMTPA id A7E6227A5ED for ; Thu, 27 Mar 2014 07:14:22 +0100 (CET) From: Alexander Stein Date: Thu, 27 Mar 2014 08:11:47 +0100 Message-Id: <1395904307-20841-1-git-send-email-alexander.stein@systec-electronic.com> Subject: [ptxdist] [PATCH] host-u-boot-tools: Add patch to use project includes prior to system ones Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Stein In case lensfun is installed on the system gcc will pick the wrong header when host-u-boot-tools are build. Signed-off-by: Alexander Stein --- ...r-u-boot-includes-to-system-include-direc.patch | 27 ++++++++++++++++++++++ patches/u-boot-2011.12/series | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 patches/u-boot-2011.12/0001-tools-Prefer-u-boot-includes-to-system-include-direc.patch create mode 100644 patches/u-boot-2011.12/series diff --git a/patches/u-boot-2011.12/0001-tools-Prefer-u-boot-includes-to-system-include-direc.patch b/patches/u-boot-2011.12/0001-tools-Prefer-u-boot-includes-to-system-include-direc.patch new file mode 100644 index 0000000..39f2ba9 --- /dev/null +++ b/patches/u-boot-2011.12/0001-tools-Prefer-u-boot-includes-to-system-include-direc.patch @@ -0,0 +1,27 @@ +From: Alexander Stein +Date: Wed, 26 Mar 2014 22:46:22 +0100 +Subject: [PATCH] tools: Prefer u-boot includes to system include directory + +This fixes the following build error when lensfun is installed: +In file included from /usr/include/image.h:22:0, + from aisimage.c:29: +/usr/include/rgbpixel.h:22:20: fatal error: config.h: No such file or directory + +Signed-off-by: Alexander Stein +--- + tools/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/Makefile b/tools/Makefile +index a5f989a..bc6ffe3 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -157,7 +157,7 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_OBJ_FILES-y)) + # Use native tools and options + # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps + # +-HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \ ++HOSTCPPFLAGS = -I $(SRCTREE)/include \ + -idirafter $(OBJTREE)/include2 \ + -idirafter $(OBJTREE)/include \ + -I $(SRCTREE)/lib/libfdt \ diff --git a/patches/u-boot-2011.12/series b/patches/u-boot-2011.12/series new file mode 100644 index 0000000..eea4611 --- /dev/null +++ b/patches/u-boot-2011.12/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-tools-Prefer-u-boot-includes-to-system-include-direc.patch +# 944f1726d2ab9856a3d9b36c7af8e95b - git-ptx-patches magic -- 1.8.3.2 -- ptxdist mailing list ptxdist@pengutronix.de