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 \ From patchwork Sun Feb 7 10:51:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 1437122 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.138; helo=whitealder.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=AJQDdVXe; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DYQvw3HVfz9sCD for ; Sun, 7 Feb 2021 21:52:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 48E1286CE3; Sun, 7 Feb 2021 10:52:09 +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 KNj1hjraORy5; Sun, 7 Feb 2021 10:52:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 69D0B86C8B; Sun, 7 Feb 2021 10:52:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id EA4CD1BF418 for ; Sun, 7 Feb 2021 10:52:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E72F9861F0 for ; Sun, 7 Feb 2021 10:52:06 +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 Yougu5ukT_fb for ; Sun, 7 Feb 2021 10:52:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 797ED86329 for ; Sun, 7 Feb 2021 10:52:05 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id m1so10440165wml.2 for ; Sun, 07 Feb 2021 02:52:05 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=c3pjaqrMumviSiDCchQ9/mILItv0qL/KDi+d0mgLee8=; b=AJQDdVXeCi3hAPDnS3Bgb9odqtKZwY5EYyu7j4Ptbpi1gQlgcdDjwCmGu/NxR2FLda 1YjBg1DxEDo/YuB4tTK0rl+WFFtrSU42OFY6YRZxZpV1tpVyySy214GGPwll0MvsUdAq oV6+LM4jxtaLhoIQ7JqKwwvlIqCdY5jd4vfu9CVEENJruEerYDmHotkY2cTm97K+naTU DobtXkOdcIBrnMTYjB/msME8T0ZUBYSlquLJDb2C06Vac7sc7PudU5LcZrul95kcC/3k csH7K1yB9MsaK6Jiwynlrq6xmILWdXGHVjDW4sd4ob3pwqE7NjfqtWoZCxSKCPSnirnI kKrw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=c3pjaqrMumviSiDCchQ9/mILItv0qL/KDi+d0mgLee8=; b=DTIeWhIW5kwZt89MGSOEGdrkRPGmfPMFDyiDXVNpvNN4D0cizqWzFxqzQAXvteP7Lw qH/iblBItKv4yTFMUbOSs8WvZnq3hULO49sM2IOCFR013Qtep8106FXG8Ngx4a9dAad5 tIXzVeoeg8+jlQY6OqUshy9eq4S0cc+ZvtyxeKQG/94vg4rMJqo9FDiMApW2CdDDltY0 SdyBPB2je24xaLl3Ci26sMV7r1yRly8ArEDpGq7pgqynvkawLyAqwfZSc5JayOBUjxxD Im2ELa694F3gsTye86pUTsWQNJUB9KCesR6khWtd7TepoAYaQRHm5ce76ZvntVSVCgSk ej8Q== X-Gm-Message-State: AOAM533gLDWDyjZxmUFNkM3bMGwTZinQh/CalQBXiklvvd4TqXjMQ2nZ KqZGyjpSOQnMm4G6K61oUIgRQeXkZ95CXQ== X-Google-Smtp-Source: ABdhPJwcM6rs7X8kgt0sIQ9zKUaY4ZxT9KU/R8QbjPAe2+kvey1k9hDZ82Qdcxak2Ur4dgkyx5ZXXw== X-Received: by 2002:a7b:c842:: with SMTP id c2mr10523449wml.100.1612695123570; Sun, 07 Feb 2021 02:52:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 02:52:03 -0800 (PST) From: Gilles Talis To: buildroot@buildroot.org Date: Sun, 7 Feb 2021 11:51:55 +0100 Message-Id: <20210207105155.516654-2-gilles.talis@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210207105155.516654-1-gilles.talis@gmail.com> References: <20210207105155.516654-1-gilles.talis@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/cage: update dependencies to match wlroot's 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 Signed-off-by: Julien Olivain Signed-off-by: Gilles Talis --- package/cage/Config.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/cage/Config.in b/package/cage/Config.in index 3bef08f037..4f823c768c 100644 --- a/package/cage/Config.in +++ b/package/cage/Config.in @@ -1,6 +1,6 @@ -comment "cage needs udev, mesa3d w/ EGL and GLES support" - depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL || \ - !BR2_PACKAGE_MESA3D_OPENGL_ES || \ +comment "cage needs udev, EGL and OpenGL ES support" + depends on !BR2_PACKAGE_HAS_LIBEGL || \ + !BR2_PACKAGE_HAS_LIBGLES || \ !BR2_PACKAGE_HAS_UDEV comment "cage needs a toolchain w/ threads, dynamic library" @@ -11,9 +11,9 @@ config BR2_PACKAGE_CAGE bool "cage" depends on !BR2_STATIC_LIBS # wlroots depends on BR2_TOOLCHAIN_HAS_THREADS # wlroots + depends on BR2_PACKAGE_HAS_LIBEGL # wlroots + depends on BR2_PACKAGE_HAS_LIBGLES # wlroots depends on BR2_PACKAGE_HAS_UDEV # wlroots - depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # wlroots - depends on BR2_PACKAGE_MESA3D_OPENGL_ES # wlroots select BR2_PACKAGE_WLROOTS help Kiosk compositor for Wayland, which displays a single