From patchwork Thu Jun 13 08:03:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Naumann X-Patchwork-Id: 251007 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id CE7112C007E for ; Thu, 13 Jun 2013 18:20:46 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CD6398C5F7; Thu, 13 Jun 2013 08:20:35 +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 D1fbsOl6Wxd9; Thu, 13 Jun 2013 08:19:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AE1EF8CBE4; Thu, 13 Jun 2013 08:19:49 +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 B062D8F7B5 for ; Thu, 13 Jun 2013 08:19:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8006C89AB9 for ; Thu, 13 Jun 2013 08:19:47 +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 l9AgK3Veb+1k for ; Thu, 13 Jun 2013 08:19:37 +0000 (UTC) X-Greylist: delayed 00:17:26 by SQLgrey-1.7.6 Received: from mail.ultratronik.de (mail.ultratronik.de [82.100.224.114]) by whitealder.osuosl.org (Postfix) with ESMTP id 3C2648CBE4 for ; Thu, 13 Jun 2013 08:19:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.ultratronik.de (Postfix) with ESMTP id EE1A86374F; Thu, 13 Jun 2013 10:03:48 +0200 (CEST) Received: from mail.ultratronik.de ([127.0.0.1]) by localhost (mail.ultratronik.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16050-03; Thu, 13 Jun 2013 10:03:48 +0200 (CEST) Received: from sv03ultra002.ultratronik.de (unknown [192.168.100.2]) by mail.ultratronik.de (Postfix) with ESMTP id D1C4E63727; Thu, 13 Jun 2013 10:03:48 +0200 (CEST) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 13 Jun 2013 10:03:48 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Buildroot] [RFC] ti-gfx: add new package Thread-Index: Ac5nk0lrUw8qCIANRg2rweaaWQxLpwAdsP1A References: <1370636307-23089-1-git-send-email-spenser@gillilanding.com> From: "Naumann Andreas" Importance: normal To: "Spenser Gilliland" , "Charles Krinke" Priority: normal X-Virus-Scanned: by SmoothZap (http://www.smoothwall.net/) Cc: buildroot Subject: Re: [Buildroot] [RFC] ti-gfx: add new package 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Hi, I'm happily jumping on integrating the egl stuff in buildroot (and qt), thanks for you start Spenser. As for Charles concerns, I too see the kernel build being triggered by ti-gfx, but that's natural since the modules depend on it. I have no problems with that. However, since I'm using a 3.1 kernel, the newclkapi patch broke the ti-gfx build for me. I just removed it, but maybe this can be solved better. To go further with the qt support, I have added staging headers and libs, see patch below. I can now build qt5 with the gui module (which needs the eglfs support). However, when preparing an out of tree qt-project with buildroots qmake, the subsequent make step says it's got nothing to do. Looking into it, the SOURCES from the .pro file did not get picked up, but I have no idea why. Maybe this is another post though. Here's my patch: Betreff: [PATCH] ti-gfx: Install headers and libs to staging. This enables the qt5 packages to successfully build with OpenGL / EGL support. --- package/ti-gfx/ti-gfx.mk | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/package/ti-gfx/ti-gfx.mk b/package/ti-gfx/ti-gfx.mk index 154c792..1446fe5 100644 --- a/package/ti-gfx/ti-gfx.mk +++ b/package/ti-gfx/ti-gfx.mk @@ -30,6 +30,12 @@ TI_GFX_OMAPES = 8.x TI_GFX_PLATFORM = ti335x endif +ifeq ($(BR2_PACKAGE_TI_GFX_DEBUG),y) +TI_GFX_RELDBG = rel +else +TI_GFX_RELDBG = dbg +endif + define TI_GFX_EXTRACT_CMDS $(RM) -rf $(TI_GFX_DIR) chmod +x $(DL_DIR)/$(TI_GFX_SOURCE) @@ -50,13 +56,20 @@ TI_GFX_MAKE_CMD = cd $(TI_GFX_SRCDIR)/GFX_Linux_KM && \ SUPPORT_XORG=0 \ KERNELDIR=$(LINUX_DIR) +TI_GFX_BIN_PATH = gfx_$(TI_GFX_RELDBG)_es$(TI_GFX_OMAPES) + define TI_GFX_BUILD_CMDS ( $(TI_GFX_MAKE_CMD) clean && \ $(TI_GFX_MAKE_CMD) all ) endef +SUB_FOLDER = EGL EWS GLES2 KHR define TI_GFX_INSTALL_STAGING_CMDS - + for folder in $(SUB_FOLDER); do \ + $(INSTALL) -d $(STAGING_DIR)/usr/include/$$folder ; \ + $(INSTALL) -D -m 0644 $(@D)/include/OGLES2/$$folder/*.h $(STAGING_DIR)/usr/include/$$folder ; \ + done + $(INSTALL) -D -m 0644 $(@D)/$(TI_GFX_BIN_PATH)/*.so $(STAGING_DIR)/usr/lib endef define TI_GFX_INSTALL_TARGET_CMDS