Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4] package/cog: add option for platform DRM.
Date: Sat, 4 Apr 2020 23:46:30 +0200	[thread overview]
Message-ID: <20200404234630.712aca1d@windsurf.home> (raw)
In-Reply-To: <20200402113455.4391-1-cturner@igalia.com>

Hello,

On Thu,  2 Apr 2020 12:34:55 +0100
Charlie Turner <cturner@igalia.com> wrote:

> diff --git a/package/cog/Config.in b/package/cog/Config.in
> index b25991d4ae..6a7c5668a5 100644
> --- a/package/cog/Config.in
> +++ b/package/cog/Config.in
> @@ -7,7 +7,9 @@ config BR2_PACKAGE_COG
>  	depends on BR2_PACKAGE_WPEWEBKIT
>  	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
>  	depends on BR2_USE_MMU # dbus
> +

Why this new empty line?

>  	select BR2_PACKAGE_DBUS
> +

Ditto?

>  	help
>  	  Single "window" launcher for the WebKit WPE port, and
>  	  helper library for implementing WPE launcher. It does
> @@ -26,4 +28,30 @@ config BR2_PACKAGE_COG_PROGRAMS_HOME_URI
>  	  string is used, there is no default and the URI to open
>  	  must be always specified in the command line.
>  
> +config BR2_PACKAGE_COG_PLATFORM_FDO
> +	bool "FreeDesktop.org backend"
> +

Don't add these empty lines.

> +	select BR2_PACKAGE_LIBXKBCOMMON

Why do we have this new dependency? I thought so far the FDO backend
was the default, so I assume it was the one used until now, and it
build with libxkbcommon.

Also, if the FDO backend is currently enabled by default, and you make
it optional, you should have a "default y" on this option to keep
backward compatibility.

Another question: what happens if neither FDO nor DRM backends are
enabled?

> +

No empty line please.

> +	help
> +	  Enable the FreeDesktop.org backend. Cog will interface with
> +	  a compositor over the Wayland protocol.
> +
> +config BR2_PACKAGE_COG_PLATFORM_DRM
> +	bool "DRM backend"
> +

Not empty line please.

> +	depends on BR2_PACKAGE_HAS_UDEV # libinput
> +	depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # gbm
> +

No empty line please.

> +	select BR2_PACKAGE_LIBDRM
> +	select BR2_PACKAGE_LIBINPUT
> +
> +	help
> +	  Enable the DRM platform backend. Cog will interface directly
> +	  with video drivers that support kernel mode-setting (KMS)
> +	  via the DRM user-space API.
> +
> +comment "DRM platform needs mesa3d w/ EGL driver and GBM"
> +	depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL
> +
>  endif
> diff --git a/package/cog/cog.mk b/package/cog/cog.mk
> index d0e5b79c38..339187126a 100644
> --- a/package/cog/cog.mk
> +++ b/package/cog/cog.mk
> @@ -8,13 +8,25 @@ COG_VERSION = 0.4.0
>  COG_SITE = https://wpewebkit.org/releases
>  COG_SOURCE = cog-$(COG_VERSION).tar.xz
>  COG_INSTALL_STAGING = YES
> -COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo
> +COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo wayland wayland-protocols

Why are you dropping the wayland and wayland-protocols dependencies?
Overall, it makes sense because cog does not depends/select wayland or
wayland-protocols. Ditto for wpebackend-fdo.

But dropping these should be done as a separate preliminary patch.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-04-04 21:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 11:22 [Buildroot] [PATCH 1/2] package/cog: add option for platform DRM Charlie Turner
2020-03-10 11:22 ` [Buildroot] [PATCH 2/2] board/raspberrypi: add post-image option for VC4 overlay Charlie Turner
2020-03-10 12:58   ` Peter Seiderer
2020-03-10 13:42     ` Charles Turner
2020-03-10 12:36 ` [Buildroot] [PATCH 1/2] package/cog: add option for platform DRM Peter Seiderer
2020-03-10 13:49   ` Charles Turner
2020-03-10 14:23     ` Peter Seiderer
2020-03-11 10:30 ` [Buildroot] [PATCH v2 1/1] " Charlie Turner
2020-03-11 12:49   ` Adrian Perez de Castro
2020-03-12 11:03   ` Thomas Petazzoni
2020-03-12 13:11     ` Charles Turner
2020-03-12 13:36       ` Thomas Petazzoni
2020-03-12 19:36         ` Charles Turner
2020-03-12 19:47   ` [Buildroot] [PATCH v3 " Charlie Turner
2020-03-23 13:30     ` Charles Turner
2020-03-31 21:57     ` Adrian Perez de Castro
2020-04-02 11:34     ` [Buildroot] [PATCH v4] " Charlie Turner
2020-04-04 21:46       ` Thomas Petazzoni [this message]
2020-04-04 22:49         ` Adrian Perez de Castro
2020-04-06  5:29           ` Thomas Petazzoni
2020-04-06 17:04           ` Charles Turner
2020-04-06 17:18             ` Baruch Siach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200404234630.712aca1d@windsurf.home \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox