From patchwork Sun Feb 7 10:51:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 1437123 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ACmpM6hP; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DYQvy2Rtgz9sCD for ; Sun, 7 Feb 2021 21:52:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8468E2051C; Sun, 7 Feb 2021 10:52:11 +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 ucjFygiDxPQS; Sun, 7 Feb 2021 10:52:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7D7B0204D9; Sun, 7 Feb 2021 10:52:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 363751BF418 for ; Sun, 7 Feb 2021 10:52:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2E828204B4 for ; Sun, 7 Feb 2021 10:52:07 +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 ah+GUkaoE56k for ; Sun, 7 Feb 2021 10:52:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by silver.osuosl.org (Postfix) with ESMTPS id 5017B204E2 for ; Sun, 7 Feb 2021 10:52:04 +0000 (UTC) Received: by mail-wm1-f45.google.com with SMTP id u14so10418667wmq.4 for ; Sun, 07 Feb 2021 02:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=idpr90ru1BuWMcJ/vlXpd9lUhSxHLovZiXG7SipaQTY=; b=ACmpM6hP078UP2Tg5LOWZQj3rUiLBkHOtAB2yIQtBf1JZiehAxfEC1pAarIFBvfLsH KZGK1NvFXsiVRFlabH4B1babv2KFXTUj/aHyD56LoaxM1LMyTPkrVPiJh/+moM8EdWw4 ul3iqkgtAWMnV9NNMiZAz6FfA+fdmw6IqShCdVTLfDqB3Tz9+dfzA9pCCqs0xYvyXROQ CI9J6dOT1Y/fEluaonpIE9i2ZyQHrECGdLVJdjcmXpE9auY/aLVNJ/5LH8FIRRggTpgS HBTcq67VjOtlKDKpUCSXSI//iknHmIxKGlRExvGNSWpg+LKnobwj9U5Hqy8LZhRFtsP7 IGZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=idpr90ru1BuWMcJ/vlXpd9lUhSxHLovZiXG7SipaQTY=; b=CYRaO2TkT5zGA45Sp4jPo0cSKmo6FpK+/2wMI8xv727pi4OrrvMDt8RyOijdWM7YOr SpAshEVtVGJRE6uI3vHqeBVaNVmcE3i41Qq9tZnaJHH/Mvw19hu5Ldi3XWEQvWu5MsXC 2U2UYOLvFn9kROvF27ghjbb6pSys1zxC6nagdoLWSY6ztRv6z0SC26oin60efPpudRb0 EEZ62ISKFymwWmgPLuqIuyY8nyAynWo34UOFd4fLC4c7GTLuPjP2aMXlKK6PRAJqXRLN XMXsKNsHhyJFMrga9Vd9ydz1ZjzczuWkuZMkKo+3PVN1e2zFOZ6E1vN2M0vwjjcosgXK v8hQ== X-Gm-Message-State: AOAM5335heU1oAKw8OXr+j0gTgavzl7qlH9oJbuUcEM+y6Po3ICH/mdl 8cku4wrm0PsOWNT30wKBqN7V9SjvWelFvg== X-Google-Smtp-Source: ABdhPJwp7xgt+hxzzaQlTDfJH1jbwF1ZJLd7EO5Mji2ApiuxWoms1yPrYYALawJU4pKq4PQJCSJJSQ== X-Received: by 2002:a7b:c304:: with SMTP id k4mr10450320wmj.11.1612695122608; Sun, 07 Feb 2021 02:52:02 -0800 (PST) Received: from localhost.localdomain (138.23.87.79.rev.sfr.net. [79.87.23.138]) by smtp.gmail.com with ESMTPSA id k11sm6681088wrv.51.2021.02.07.02.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 02:52:01 -0800 (PST) From: Gilles Talis To: buildroot@buildroot.org Date: Sun, 7 Feb 2021 11:51:54 +0100 Message-Id: <20210207105155.516654-1-gilles.talis@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/wlroots: change mesa3d dependency to virtual libegl/libgles X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adrian Perez de Castro , Eric Le Bihan , Julien Olivain , Gilles Talis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Julien Olivain Since commits: https://github.com/swaywm/wlroots/commit/c2288a7b88240e4377bfc1c67b44efb58f704a42 https://github.com/swaywm/wlroots/commit/e18599b05e0f0cbeba11adbd489e801285470eab Mesa dependency is no longer required. Wlroots is able to run on drivers that provide EGL and GLES2.0 support (with specific EGL wayland extensions) This was verified on NXP's i.MX8MMini using imx-gpu-viv driver. Signed-off-by: Julien Olivain Signed-off-by: Gilles Talis --- package/wlroots/Config.in | 13 +++++-------- package/wlroots/wlroots.mk | 3 ++- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package/wlroots/Config.in b/package/wlroots/Config.in index 2f72fd4945..0dbe57eaad 100644 --- a/package/wlroots/Config.in +++ b/package/wlroots/Config.in @@ -1,6 +1,6 @@ -comment "wlroots needs udev, mesa3d w/ EGL and GLES support" - depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL || \ - !BR2_PACKAGE_MESA3D_OPENGL_ES || \ +comment "wlroots needs udev, EGL and OpenGL ES support" + depends on !BR2_PACKAGE_HAS_LIBEGL || \ + !BR2_PACKAGE_HAS_LIBGLES || \ !BR2_PACKAGE_HAS_UDEV comment "wlroots needs a toolchain w/ threads, dynamic library" @@ -12,11 +12,8 @@ config BR2_PACKAGE_WLROOTS depends on !BR2_STATIC_LIBS # wayland depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm, wayland depends on BR2_PACKAGE_HAS_UDEV # libinput - # Technically wlroots should work with any OpenGL implementation - # which provides EGL, GLES2, and libgbm; but in practice only - # Mesa ships an usable libgbm. - depends on BR2_PACKAGE_MESA3D_OPENGL_EGL - depends on BR2_PACKAGE_MESA3D_OPENGL_ES + depends on BR2_PACKAGE_HAS_LIBEGL + depends on BR2_PACKAGE_HAS_LIBGLES select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_LIBINPUT select BR2_PACKAGE_LIBXKBCOMMON diff --git a/package/wlroots/wlroots.mk b/package/wlroots/wlroots.mk index 5665d5a956..0160b1aedb 100644 --- a/package/wlroots/wlroots.mk +++ b/package/wlroots/wlroots.mk @@ -15,7 +15,8 @@ WLROOTS_DEPENDENCIES = \ host-wayland \ libinput \ libxkbcommon \ - mesa3d \ + libegl \ + libgles \ pixman \ udev \ wayland \