Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon
@ 2020-04-06 17:42 Charlie Turner
  2020-04-06 17:42 ` [Buildroot] [PATCH v2 2/3] package/cog: add wayland dependencies Charlie Turner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Charlie Turner @ 2020-04-06 17:42 UTC (permalink / raw)
  To: buildroot

The always-built FDO backend relies on this.

Signed-off-by: Charlie Turner <cturner@igalia.com>
---
 package/cog/Config.in | 1 +
 package/cog/cog.mk    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/cog/Config.in b/package/cog/Config.in
index b25991d4ae..6671405230 100644
--- a/package/cog/Config.in
+++ b/package/cog/Config.in
@@ -8,6 +8,7 @@ config BR2_PACKAGE_COG
 	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
 	depends on BR2_USE_MMU # dbus
 	select BR2_PACKAGE_DBUS
+	select BR2_PACKAGE_LIBXKBCOMMON
 	help
 	  Single "window" launcher for the WebKit WPE port, and
 	  helper library for implementing WPE launcher. It does
diff --git a/package/cog/cog.mk b/package/cog/cog.mk
index 64e2277e3d..26ce79f91d 100644
--- a/package/cog/cog.mk
+++ b/package/cog/cog.mk
@@ -8,7 +8,7 @@ COG_VERSION = 0.6.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 libxkbcommon
 COG_LICENSE = MIT
 COG_LICENSE_FILES = COPYING
 COG_CONF_OPTS = \
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 2/3] package/cog: add wayland dependencies
  2020-04-06 17:42 [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Charlie Turner
@ 2020-04-06 17:42 ` Charlie Turner
  2020-04-06 17:42 ` [Buildroot] [PATCH v2 3/3] package/cog: support choosing either DRM or FDO platform Charlie Turner
  2020-04-06 19:51 ` [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Charlie Turner @ 2020-04-06 17:42 UTC (permalink / raw)
  To: buildroot

The always-built FDO backend relies on this.

Signed-off-by: Charlie Turner <cturner@igalia.com>
---
 package/cog/Config.in | 2 ++
 package/cog/cog.mk    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/cog/Config.in b/package/cog/Config.in
index 6671405230..c20ee86827 100644
--- a/package/cog/Config.in
+++ b/package/cog/Config.in
@@ -9,6 +9,8 @@ config BR2_PACKAGE_COG
 	depends on BR2_USE_MMU # dbus
 	select BR2_PACKAGE_DBUS
 	select BR2_PACKAGE_LIBXKBCOMMON
+	select BR2_PACKAGE_WAYLAND
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 	help
 	  Single "window" launcher for the WebKit WPE port, and
 	  helper library for implementing WPE launcher. It does
diff --git a/package/cog/cog.mk b/package/cog/cog.mk
index 26ce79f91d..c6fae34a65 100644
--- a/package/cog/cog.mk
+++ b/package/cog/cog.mk
@@ -8,7 +8,7 @@ COG_VERSION = 0.6.0
 COG_SITE = https://wpewebkit.org/releases
 COG_SOURCE = cog-$(COG_VERSION).tar.xz
 COG_INSTALL_STAGING = YES
-COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo libxkbcommon
+COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo libxkbcommon wayland wayland-protocols
 COG_LICENSE = MIT
 COG_LICENSE_FILES = COPYING
 COG_CONF_OPTS = \
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 3/3] package/cog: support choosing either DRM or FDO platform
  2020-04-06 17:42 [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Charlie Turner
  2020-04-06 17:42 ` [Buildroot] [PATCH v2 2/3] package/cog: add wayland dependencies Charlie Turner
@ 2020-04-06 17:42 ` Charlie Turner
  2020-04-06 19:51 ` [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Charlie Turner @ 2020-04-06 17:42 UTC (permalink / raw)
  To: buildroot

A new DRM platform has landed, now you can choose to build with the
DRM or FDO platform, or neither. If neither are selected, Cog will
fallback to a simple WPE backend like WPEBackend-rdk
(https://github.com/WebPlatformForEmbedded/WPEBackend-rdk).

Don't be confused that in both cases the *wpebackend-fdo* package is
required. This is an unfortunate naming issue.

Signed-off-by: Charlie Turner <cturner@igalia.com>
---
 package/cog/Config.in | 25 +++++++++++++++++++++++--
 package/cog/cog.mk    | 18 +++++++++++++++---
 2 files changed, 38 insertions(+), 5 deletions(-)

diff --git a/package/cog/Config.in b/package/cog/Config.in
index c20ee86827..64a4f3d0b7 100644
--- a/package/cog/Config.in
+++ b/package/cog/Config.in
@@ -8,9 +8,7 @@ config BR2_PACKAGE_COG
 	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
 	depends on BR2_USE_MMU # dbus
 	select BR2_PACKAGE_DBUS
-	select BR2_PACKAGE_LIBXKBCOMMON
 	select BR2_PACKAGE_WAYLAND
-	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 	help
 	  Single "window" launcher for the WebKit WPE port, and
 	  helper library for implementing WPE launcher. It does
@@ -29,4 +27,27 @@ 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"
+        default y
+	select BR2_PACKAGE_LIBXKBCOMMON
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS
+	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"
+	depends on BR2_PACKAGE_HAS_UDEV # libinput
+	depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # gbm
+	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 c6fae34a65..a826252829 100644
--- a/package/cog/cog.mk
+++ b/package/cog/cog.mk
@@ -8,15 +8,27 @@ COG_VERSION = 0.6.0
 COG_SITE = https://wpewebkit.org/releases
 COG_SOURCE = cog-$(COG_VERSION).tar.xz
 COG_INSTALL_STAGING = YES
-COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo libxkbcommon wayland wayland-protocols
+COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo wayland
 COG_LICENSE = MIT
 COG_LICENSE_FILES = COPYING
 COG_CONF_OPTS = \
 	-DCOG_BUILD_PROGRAMS=ON \
-	-DCOG_PLATFORM_FDO=ON \
-	-DCOG_PLATFORM_DRM=OFF \
 	-DCOG_WESTON_DIRECT_DISPLAY=OFF \
 	-DINSTALL_MAN_PAGES=OFF \
 	-DCOG_HOME_URI='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))'
 
+ifeq ($(BR2_PACKAGE_COG_PLATFORM_FDO),y)
+COG_CONF_OPTS += -DCOG_PLATFORM_FDO=ON
+COG_DEPENDENCIES += libxkbcommon wayland-protocols
+else
+COG_CONF_OPTS += -DCOG_PLATFORM_FDO=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
+COG_CONF_OPTS += -DCOG_PLATFORM_DRM=ON
+COG_DEPENDENCIES += libdrm libinput
+else
+COG_CONF_OPTS += -DCOG_PLATFORM_DRM=OFF
+endif
+
 $(eval $(cmake-package))
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon
  2020-04-06 17:42 [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Charlie Turner
  2020-04-06 17:42 ` [Buildroot] [PATCH v2 2/3] package/cog: add wayland dependencies Charlie Turner
  2020-04-06 17:42 ` [Buildroot] [PATCH v2 3/3] package/cog: support choosing either DRM or FDO platform Charlie Turner
@ 2020-04-06 19:51 ` Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-04-06 19:51 UTC (permalink / raw)
  To: buildroot

On Mon,  6 Apr 2020 18:42:03 +0100
Charlie Turner <cturner@igalia.com> wrote:

> The always-built FDO backend relies on this.
> 
> Signed-off-by: Charlie Turner <cturner@igalia.com>
> ---
>  package/cog/Config.in | 1 +
>  package/cog/cog.mk    | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

Thanks, series applied. There was a minor formatting issue in PATCH
3/3, where the "default y" line was not properly indented, which was
detected by "make check-package".

Thanks,

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-06 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 17:42 [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Charlie Turner
2020-04-06 17:42 ` [Buildroot] [PATCH v2 2/3] package/cog: add wayland dependencies Charlie Turner
2020-04-06 17:42 ` [Buildroot] [PATCH v2 3/3] package/cog: support choosing either DRM or FDO platform Charlie Turner
2020-04-06 19:51 ` [Buildroot] [PATCH v2 1/3] package/cog: depend on libxkbcommon Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox