From patchwork Wed Sep 7 21:08:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 667161 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sTx0X5s6Xz9s2Q for ; Thu, 8 Sep 2016 07:09:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=X7yAzoeM; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E1FA3C0C53; Wed, 7 Sep 2016 21:08:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UBA9cguN9ByT; Wed, 7 Sep 2016 21:08:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DDBE7C0C3D; Wed, 7 Sep 2016 21:08:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D680D1C2C11 for ; Wed, 7 Sep 2016 21:08:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D0D6B88AD6 for ; Wed, 7 Sep 2016 21:08:51 +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 hXhsm5VR0cAF for ; Wed, 7 Sep 2016 21:08:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id E592488421 for ; Wed, 7 Sep 2016 21:08:50 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id w12so4914470wmf.1 for ; Wed, 07 Sep 2016 14:08:50 -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:in-reply-to:references; bh=JB0WbDXD6g+cak3OaVfdkfkPL0VsC2ZxmMKQQ79wcqw=; b=X7yAzoeMhqxBNxbwaLJB8aWkPTbzrNRV9oVDotmhphvwL9wnOo6+EX/WTuIrgkE+GN hQUMJuTrX/ZnBBDMZyojUhm2AiLzERq+icLTqY6At/Yq0sXKWfMyIedtk7sk1AbvdL8R t02Ry6/woZVmSdGnOlnBMK+tc+FJtVCFu3xqYrO6X9JmCdIknCbZ7hn0OMdO+9GVuvK6 JIjFCpYFtMwPr7uACM4yHinMObsIp2G3PkbPkxkW9Hltyl6v+XLLc20bpHq8RTmTYkQD u9Wft60LuU4T2sFrfu68zIpH4cmeFExDnH0ol8w3hwubud1AeB7rzlHP7ZISrAOaZe2J NFUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JB0WbDXD6g+cak3OaVfdkfkPL0VsC2ZxmMKQQ79wcqw=; b=UBgeGi7+AcLBefelQOb69fPoA147zxiUzPfn5jHr913OLU0DENSK3mYSv87H16ViEK L/mZtNepIlSYmmMSiYIqsbmtS3rxvoZ1ZvVrpA+aIcE45Ys8kBz4BZVyEZjQvv4V4dsl 6mbpL54IpIzpzIPilja039KWQt+4V8PHK6NMWJEgXXVQhj9WDku8chonXb3vCM9//R7Z C86+bJ8irtI7gElbYNZ8yGEmd78tsB1PAWq8Z+637wcaY163/j/sKVdhnjNTBB6u/wIU C2oUwHHU8a/Ugm8dgSovWoUtRjg3CGBHxm9iD2T2dLxKgyVrh7cYgLTRv6vGUtITBOSE Z7RA== X-Gm-Message-State: AE9vXwMjzOCJpLVr7kqxUEU+W2sqxtuViqzwk+bssDh4DB2cZZGk8EBRg2hywhW4Fj/c4Q== X-Received: by 10.194.116.134 with SMTP id jw6mr17009073wjb.134.1473282529502; Wed, 07 Sep 2016 14:08:49 -0700 (PDT) Received: from atlas.localdomain.localdomain (gam75-1-81-57-22-125.fbx.proxad.net. [81.57.22.125]) by smtp.gmail.com with ESMTPSA id x6sm40563004wjk.26.2016.09.07.14.08.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Sep 2016 14:08:48 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 7 Sep 2016 23:08:42 +0200 Message-Id: <1473282523-12796-3-git-send-email-romain.naour@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1473282523-12796-1-git-send-email-romain.naour@gmail.com> References: <1473282523-12796-1-git-send-email-romain.naour@gmail.com> Cc: Romain Naour Subject: [Buildroot] [PATCH 3/4] package/efl: enable libdrm support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" This support is required for Enlightenment wayland support [1] which will be added in a follow up patch. As stated in configure.ac, libdrm support needs libdrm, elput, libxkbcommon and libgbm. libgbm is only provided by mesa3d package when OpenGL EGL support is enabled, so add a direct dependency on mesa3d. Rework the libxkbcommon dependency since it's now required for ecore-wayland and libdrm support. [1] https://www.enlightenment.org/about-wayland Signed-off-by: Romain Naour --- libgdm can be found as a standalone library on github [2] but it seems not very active. I prefer to rely on Mesa3d version. [2] https://github.com/robclark/libgbm --- package/efl/Config.in | 14 ++++++++++++++ package/efl/efl.mk | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package/efl/Config.in b/package/efl/Config.in index df13047..6171b29 100644 --- a/package/efl/Config.in +++ b/package/efl/Config.in @@ -194,6 +194,20 @@ config BR2_PACKAGE_EFL_ELPUT ecore_drm, etc) to handle interfacing with libinput without having to duplicate the code in each subsystem. +config BR2_PACKAGE_EFL_DRM + bool "Evas DRM Engine" + depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm + depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # require libgbm from mesa3d + depends on BR2_PACKAGE_EFL_ELPUT + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_LIBXKBCOMMON + help + This option enable building support for the Evas DRM Engine. + +comment "Evas DRM Engine needs mesa3d w/ EGL support, threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL + depends on BR2_PACKAGE_EFL_ELPUT + comment "libevas loaders" config BR2_PACKAGE_EFL_PNG diff --git a/package/efl/efl.mk b/package/efl/efl.mk index 5b65758..413cf58 100644 --- a/package/efl/efl.mk +++ b/package/efl/efl.mk @@ -146,7 +146,7 @@ EFL_CONF_OPTS += --with-crypto=none endif # BR2_PACKAGE_OPENSSL ifeq ($(BR2_PACKAGE_WAYLAND),y) -EFL_DEPENDENCIES += wayland libxkbcommon +EFL_DEPENDENCIES += wayland EFL_CONF_OPTS += --enable-wayland else EFL_CONF_OPTS += --disable-wayland @@ -200,6 +200,13 @@ ifeq ($(BR2_PACKAGE_EFL_OPENGL_NONE),y) EFL_CONF_OPTS += --with-opengl=none endif +ifeq ($(BR2_PACKAGE_EFL_DRM),y) +EFL_CONF_OPTS += --enable-drm +EFL_DEPENDENCIES += libdrm libegl mesa3d +endif + +EFL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBXKBCOMMON),libxkbcommon) + # Loaders that need external dependencies needs to be --enable-XXX=yes # otherwise the default is '=static'. # All other loaders are statically built-in