From patchwork Fri Jul 25 06:42:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 373581 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 8F467140120 for ; Fri, 25 Jul 2014 16:42:34 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BF01E32357; Fri, 25 Jul 2014 06:42:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zbJrHRoW8+S1; Fri, 25 Jul 2014 06:42:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0AEF5329E6; Fri, 25 Jul 2014 06:42:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8F6F31BFA9E for ; Fri, 25 Jul 2014 06:42:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A0658C1CE for ; Fri, 25 Jul 2014 06:42:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RLhRmjAOKQSq for ; Fri, 25 Jul 2014 06:42:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id DF9A189CF4 for ; Fri, 25 Jul 2014 06:42:29 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id et14so5447408pad.23 for ; Thu, 24 Jul 2014 23:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=YK8cYxiv0WbwDM/DXdDaCFB1MYm2nrfx1HGnavcsE3c=; b=PgDzzLz/4cI2rve44bbmzoFdzO0nG1Mj1PALXImz9VZFGHN+HkTxymYhoP1+brLrBr vbs8JfbQ2J6kVD8n4cF8UWJnix2PbX7663n40QMNGoniQpgukW+a2rlgj15lAb3/Qdsa y+cHMC6Lw9zsSII4PDWXlxmV8CGkt3bGlf2S29R8d4AdDD9hupN5JGR4scgHMOt1v3EQ AOQk7yUCl7oKSr4e/r0RXFijhPVwhSpL2JIc6QOX9rSGs78a6TGm+4vUoTQYYiEBcYtA b35r2IcSv2VatsEVmxOHzL9szMHymhmnd4cX7/GDiJMm2tb+h+U7QliaEEZTVtob+ETt 7K/w== X-Received: by 10.66.235.134 with SMTP id um6mr16061982pac.129.1406270549604; Thu, 24 Jul 2014 23:42:29 -0700 (PDT) Received: from n411z.WORKGROUP. (c-24-22-143-40.hsd1.wa.comcast.net. [24.22.143.40]) by mx.google.com with ESMTPSA id t12sm10276998pdj.12.2014.07.24.23.42.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Jul 2014 23:42:28 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Thu, 24 Jul 2014 23:42:16 -0700 Message-Id: <1406270536-17145-1-git-send-email-bisson.gary@gmail.com> X-Mailer: git-send-email 2.0.1 Cc: Gary Bisson , yann.morin.1998@free.fr Subject: [Buildroot] [PATCH] gst-fsl-plugins: fix includes for recent toolchains X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Build was failing starting with CodeSourcery 2013.11 due to new v4l kernel headers. Signed-off-by: Gary Bisson --- Yann, all, I know this patch will look bad as we already discussed the use of -I instead of -idirafter. However it has been reported and verified that this package doesn't build using recent toolchain such as CodeSourcery 2013.11. It seems to come from the fact that the kernel headers in the toolchain have been updated which brings some incompatibility. Using -idirafter, the v4l header picked up is from the toolchain which is missing some older structures like v4l2_dbg_chip_ident. The CPPFLAGS setup is now exactly the same as what is done in Yocto. Let me know your thoughts. Thanks, Gary --- package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk b/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk index 1ae6596..b441233 100644 --- a/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk +++ b/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk @@ -24,7 +24,8 @@ GST_FSL_PLUGINS_CONF_ENV = \ # needs access to imx-specific kernel headers GST_FSL_PLUGINS_DEPENDENCIES += linux -GST_FSL_PLUGINS_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -idirafter $(LINUX_DIR)/include/uapi" +GST_FSL_PLUGINS_CONF_ENV += \ + CPPFLAGS="-I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/include" ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) GST_FSL_PLUGINS_DEPENDENCIES += xlib_libX11