Initial Commit
- initial default booting image
This commit is contained in:
29
package/cog/0001-Add-support-for-weston-15-protocols.patch
Normal file
29
package/cog/0001-Add-support-for-weston-15-protocols.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From b59d3a3c0feceecb10f0376ac2695d9466c9ecf6 Mon Sep 17 00:00:00 2001
|
||||
From: James Hilliard <james.hilliard1@gmail.com>
|
||||
Date: Tue, 1 Oct 2024 10:24:56 -0600
|
||||
Subject: [PATCH] Add support for weston 15 protocols
|
||||
|
||||
Weston 14 was released recently and the weston development branch is
|
||||
now using libweston-15-protocols.
|
||||
|
||||
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
|
||||
Upstream: https://github.com/Igalia/cog/commit/b59d3a3c0feceecb10f0376ac2695d9466c9ecf6
|
||||
---
|
||||
platform/wayland/meson.build | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/platform/wayland/meson.build b/platform/wayland/meson.build
|
||||
index 74215f0..dad47a6 100644
|
||||
--- a/platform/wayland/meson.build
|
||||
+++ b/platform/wayland/meson.build
|
||||
@@ -49,6 +49,7 @@ wayland_protocols_path = wayland_protocols_dep.get_variable(pkgconfig: 'pkgdatad
|
||||
|
||||
if wayland_platform_weston_protocols.length() > 0
|
||||
foreach weston_dep_name : [
|
||||
+ 'libweston-15-protocols',
|
||||
'libweston-14-protocols',
|
||||
'libweston-13-protocols',
|
||||
'libweston-12-protocols',
|
||||
--
|
||||
2.53.0
|
||||
|
||||
65
package/cog/Config.in
Normal file
65
package/cog/Config.in
Normal file
@@ -0,0 +1,65 @@
|
||||
comment "cog needs wpewebkit and a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_WPEWEBKIT || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_COG
|
||||
bool "cog"
|
||||
depends on BR2_PACKAGE_WPEWEBKIT
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
|
||||
depends on BR2_USE_MMU # dbus
|
||||
select BR2_PACKAGE_DBUS
|
||||
select BR2_PACKAGE_WAYLAND
|
||||
help
|
||||
Single "window" launcher for the WebKit WPE port, and
|
||||
helper library for implementing WPE launcher. It does
|
||||
not provide any chrome, and is suitable to be used
|
||||
as a Web application container.
|
||||
|
||||
https://github.com/Igalia/cog
|
||||
|
||||
if BR2_PACKAGE_COG
|
||||
|
||||
config BR2_PACKAGE_COG_PROGRAMS_HOME_URI
|
||||
string "home uri"
|
||||
default "https://wpewebkit.org"
|
||||
help
|
||||
Default URI to open when "cog" is launched. If an empty
|
||||
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 "Wayland backend"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBXKBCOMMON
|
||||
select BR2_PACKAGE_WAYLAND_PROTOCOLS
|
||||
help
|
||||
Enable the Wayland 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_HAS_LIBEGL
|
||||
depends on BR2_PACKAGE_HAS_LIBGBM
|
||||
depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF
|
||||
depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
|
||||
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.
|
||||
|
||||
config BR2_PACKAGE_COG_USE_SYSTEM_DBUS
|
||||
bool "expose system D-Bus control interface"
|
||||
help
|
||||
Expose remote control interface on system bus
|
||||
|
||||
comment "DRM platform needs EGL and GBM"
|
||||
depends on \
|
||||
!BR2_PACKAGE_HAS_LIBEGL || \
|
||||
!BR2_PACKAGE_HAS_LIBGBM || \
|
||||
!BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF || \
|
||||
!BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
|
||||
|
||||
endif
|
||||
7
package/cog/cog.hash
Normal file
7
package/cog/cog.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://wpewebkit.org/releases/cog-0.18.5.tar.xz.sums
|
||||
md5 3df784f9930353ac4cb2d95fdd56e21d cog-0.18.5.tar.xz
|
||||
sha1 49a79797fa4d0aa41680095161df7cdb155f8fe9 cog-0.18.5.tar.xz
|
||||
sha256 0ede9d09ab635ac519beec0543378e3fc51b56561a5fb7aa9c0cbca54c31b97c cog-0.18.5.tar.xz
|
||||
|
||||
# Hashes for license files:
|
||||
sha256 e6c42d93c68b292bcccf6d2ec3e13da85df90b718ba27c2c2a01053a9d009252 COPYING
|
||||
54
package/cog/cog.mk
Normal file
54
package/cog/cog.mk
Normal file
@@ -0,0 +1,54 @@
|
||||
################################################################################
|
||||
#
|
||||
# cog
|
||||
#
|
||||
################################################################################
|
||||
|
||||
COG_VERSION = 0.18.5
|
||||
COG_SITE = https://wpewebkit.org/releases
|
||||
COG_SOURCE = cog-$(COG_VERSION).tar.xz
|
||||
COG_INSTALL_STAGING = YES
|
||||
COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo wayland
|
||||
COG_LICENSE = MIT
|
||||
COG_LICENSE_FILES = COPYING
|
||||
COG_CONF_OPTS = \
|
||||
-Ddocumentation=false \
|
||||
-Dmanpages=false \
|
||||
-Dprograms=true \
|
||||
-Dwpe_api=2.0 \
|
||||
-Dcog_home_uri='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))' \
|
||||
-Dplatforms='$(subst $(space),$(comma),$(strip $(COG_PLATFORMS_LIST)))'
|
||||
|
||||
COG_PLATFORMS_LIST = headless
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WESTON),y)
|
||||
COG_CONF_OPTS += -Dwayland_weston_direct_display=true
|
||||
COG_DEPENDENCIES += weston
|
||||
else
|
||||
COG_CONF_OPTS += -Dwayland_weston_direct_display=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_COG_PLATFORM_FDO),y)
|
||||
COG_PLATFORMS_LIST += wayland
|
||||
COG_DEPENDENCIES += libxkbcommon wayland-protocols
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
|
||||
COG_PLATFORMS_LIST += drm
|
||||
COG_DEPENDENCIES += libdrm libinput libgbm libegl udev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_COG_USE_SYSTEM_DBUS),y)
|
||||
COG_CONF_OPTS += -Dcog_dbus_control=system
|
||||
else
|
||||
COG_CONF_OPTS += -Dcog_dbus_control=user
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMANETTE),y)
|
||||
COG_CONF_OPTS += -Dlibmanette=enabled
|
||||
COG_DEPENDENCIES += libmanette
|
||||
else
|
||||
COG_CONF_OPTS += -Dlibmanette=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user