From a39060e66bb84dc55da450a6007c25051c660b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Sun, 26 May 2019 09:50:11 +0000 Subject: [PATCH 01/15] Update to poky warrior and wpewebkit-2.24.2 --- .gitmodules | 16 ++++++++-------- base-image/meta-gstreamer1.0 | 1 - base-image/meta-openembedded | 2 +- base-image/meta-qt5 | 1 + base-image/meta-raspberrypi | 2 +- base-image/meta-resin-wpe/conf/layer.conf | 2 +- .../conf/samples/bblayers.conf.sample | 2 +- .../conf/samples/local.conf.sample | 6 +++--- base-image/meta-webkit | 2 +- base-image/poky | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) delete mode 160000 base-image/meta-gstreamer1.0 create mode 160000 base-image/meta-qt5 diff --git a/.gitmodules b/.gitmodules index 5ed2017..a5c7749 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,20 +1,20 @@ [submodule "base-image/meta-openembedded"] path = base-image/meta-openembedded url = git://git.openembedded.org/meta-openembedded - branch = sumo + branch = warrior [submodule "base-image/poky"] path = base-image/poky url = git://git.yoctoproject.org/poky - branch = sumo + branch = warrior [submodule "base-image/meta-raspberrypi"] path = base-image/meta-raspberrypi url = git://git.yoctoproject.org/meta-raspberrypi - branch = sumo -[submodule "base-image/meta-gstreamer1.0"] - path = base-image/meta-gstreamer1.0 - url = https://github.com/OSSystems/meta-gstreamer1.0 - branch = sumo + branch = warrior +[submodule "base-image/meta-qt5"] + path = base-image/meta-qt5 + url = https://github.com/meta-qt5/meta-qt5.git + branch = warrior [submodule "base-image/meta-webkit"] path = base-image/meta-webkit url = https://github.com/Igalia/meta-webkit - branch = sumo + branch = master diff --git a/base-image/meta-gstreamer1.0 b/base-image/meta-gstreamer1.0 deleted file mode 160000 index 59dfad7..0000000 --- a/base-image/meta-gstreamer1.0 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 59dfad71768cf53f7863cbe53432cbb77a25a6ee diff --git a/base-image/meta-openembedded b/base-image/meta-openembedded index 8760fac..6fa72d5 160000 --- a/base-image/meta-openembedded +++ b/base-image/meta-openembedded @@ -1 +1 @@ -Subproject commit 8760facba1bceb299b3613b8955621ddaa3d4c3f +Subproject commit 6fa72d587aab8e9d56d67a2552eb9cfbe25c86d2 diff --git a/base-image/meta-qt5 b/base-image/meta-qt5 new file mode 160000 index 0000000..2a5f941 --- /dev/null +++ b/base-image/meta-qt5 @@ -0,0 +1 @@ +Subproject commit 2a5f9415e48a38f6f4eb0cf375737a2d8438e2fe diff --git a/base-image/meta-raspberrypi b/base-image/meta-raspberrypi index 2d40b00..7059c37 160000 --- a/base-image/meta-raspberrypi +++ b/base-image/meta-raspberrypi @@ -1 +1 @@ -Subproject commit 2d40b000021bc8a9ef7f329ed0ad410f8d227b97 +Subproject commit 7059c374512f1c1c0df9ecab0703d11438bdf78b diff --git a/base-image/meta-resin-wpe/conf/layer.conf b/base-image/meta-resin-wpe/conf/layer.conf index d69daaa..4a34f5d 100644 --- a/base-image/meta-resin-wpe/conf/layer.conf +++ b/base-image/meta-resin-wpe/conf/layer.conf @@ -7,4 +7,4 @@ BBFILE_COLLECTIONS += "resin-wpe" BBFILE_PATTERN_resin-wpe := "^${LAYERDIR}/" BBFILE_PRIORITY_resin-wpe = "99" -LAYERSERIES_COMPAT_resin-wpe = "sumo" +LAYERSERIES_COMPAT_resin-wpe = "sumo thud warrior" diff --git a/base-image/meta-resin-wpe/conf/samples/bblayers.conf.sample b/base-image/meta-resin-wpe/conf/samples/bblayers.conf.sample index 096d7e3..f262e8e 100644 --- a/base-image/meta-resin-wpe/conf/samples/bblayers.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/bblayers.conf.sample @@ -12,7 +12,7 @@ BBLAYERS ?= " \ ${TOPDIR}/../meta-raspberrypi \ ${TOPDIR}/../meta-webkit \ ${TOPDIR}/../meta-resin-wpe \ - ${TOPDIR}/../meta-gstreamer1.0 \ + ${TOPDIR}/../meta-qt5 \ ${TOPDIR}/../meta-openembedded/meta-oe \ ${TOPDIR}/../meta-openembedded/meta-python \ " diff --git a/base-image/meta-resin-wpe/conf/samples/local.conf.sample b/base-image/meta-resin-wpe/conf/samples/local.conf.sample index e2ba7ab..6b0006b 100644 --- a/base-image/meta-resin-wpe/conf/samples/local.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/local.conf.sample @@ -44,6 +44,6 @@ PACKAGECONFIG_append_pn-cairo = " glesv2 egl" PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" # Specify versions -PREFERRED_VERSION_cog = "0.2.%" -PREFERRED_VERSION_libwpe = "1.0.%" -PREFERRED_VERSION_wpewebkit = "2.22.%" +PREFERRED_VERSION_cog = "0.3.%" +PREFERRED_VERSION_libwpe = "1.2.%" +PREFERRED_VERSION_wpewebkit = "2.24.2" diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 0fd8a2e..3b2ca93 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 0fd8a2eeb86b97799b22f5e5be03bd8132d8eeda +Subproject commit 3b2ca936515873b12eacbf0f5f3a45af32d6c9d3 diff --git a/base-image/poky b/base-image/poky index 5ddf7ff..f2b442c 160000 --- a/base-image/poky +++ b/base-image/poky @@ -1 +1 @@ -Subproject commit 5ddf7fff992b065ee512878d2fe65f3e35d818cf +Subproject commit f2b442c5c8e3925a4d3fc9693f1e47863dade2a9 From febd4191652d22343612d83b010b9365f8bcd356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Tue, 30 Apr 2019 11:53:57 +0000 Subject: [PATCH 02/15] Change wpe API to 1.0 --- .../0002-WPEBackend-fix-wpe-version.patch | 31 +++++++++++++++++++ .../wpebackend-rdk_1.20180925.bbappend | 5 +++ 2 files changed, 36 insertions(+) create mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch create mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch new file mode 100644 index 0000000..ec58bc0 --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch @@ -0,0 +1,31 @@ +From c275769547745e10b8fdb8bfb792d869c2469786 Mon Sep 17 00:00:00 2001 +From: Eric Stobbart +Date: Sun, 17 Mar 2019 14:04:57 -0700 +Subject: [PATCH] [cmake] find required WPE package + +--- + cmake/FindWPE.cmake | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/cmake/FindWPE.cmake b/cmake/FindWPE.cmake +index 7f4ffd2..a062481 100644 +--- a/cmake/FindWPE.cmake ++++ b/cmake/FindWPE.cmake +@@ -29,7 +29,7 @@ + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + find_package(PkgConfig) +-pkg_check_modules(PC_WPE QUIET wpe-0.2) ++pkg_check_modules(PC_WPE QUIET wpe-1.0) + + find_path(WPE_INCLUDE_DIRS + NAMES wpe/wpe.h +@@ -37,7 +37,7 @@ find_path(WPE_INCLUDE_DIRS + ) + + find_library(WPE_LIBRARIES +- NAMES wpe-0.2 ++ NAMES wpe-1.0 + HINTS ${PC_WPE_LIBDIR} ${PC_WPE_LIBRARY_DIRS} + ) + diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend new file mode 100644 index 0000000..fde4d05 --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/files" + +SRC_URI += " \ + file://0002-WPEBackend-fix-wpe-version.patch \ + " From 53ca4eabba9b2ae7585739a6162d836003fbf3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Sun, 26 May 2019 18:03:05 +0000 Subject: [PATCH 03/15] Build GnuTLS with system trust --- .../meta-resin-wpe/recipes-support/gnutls/gnutls_%.bbappend | 2 ++ base-image/meta-webkit | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 base-image/meta-resin-wpe/recipes-support/gnutls/gnutls_%.bbappend diff --git a/base-image/meta-resin-wpe/recipes-support/gnutls/gnutls_%.bbappend b/base-image/meta-resin-wpe/recipes-support/gnutls/gnutls_%.bbappend new file mode 100644 index 0000000..9a4251f --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-support/gnutls/gnutls_%.bbappend @@ -0,0 +1,2 @@ +# We need to build GnuTLS with "system trust" +EXTRA_OECONF += " --with-default-trust-store-dir=/etc/ssl/certs" diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 3b2ca93..0b79718 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 3b2ca936515873b12eacbf0f5f3a45af32d6c9d3 +Subproject commit 0b79718dc79416d0bddf416408e5a0955e16ea75 From 021a5e0d7964a459b186306bdc1cba22afcbbbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Sat, 1 Jun 2019 08:24:52 +0000 Subject: [PATCH 04/15] Configure cairo with glesv2 only (not opengl as well) --- base-image/meta-resin-wpe/conf/samples/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base-image/meta-resin-wpe/conf/samples/local.conf.sample b/base-image/meta-resin-wpe/conf/samples/local.conf.sample index 6b0006b..db8d0cd 100644 --- a/base-image/meta-resin-wpe/conf/samples/local.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/local.conf.sample @@ -39,11 +39,13 @@ PACKAGECONFIG_pn-wpebackend-rdk = "rpi" IMAGE_INSTALL_append = " gstreamer1.0-omx" LICENSE_FLAGS_WHITELIST_append = " commercial" -# Enable accelerated 2D HTML5 canvas +# Enable accelerated 2D HTML5 canvas (cannot specify both glesv2 and opengl for cairo) PACKAGECONFIG_append_pn-cairo = " glesv2 egl" +PACKAGECONFIG_remove_pn-cairo = " opengl" PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" # Specify versions PREFERRED_VERSION_cog = "0.3.%" PREFERRED_VERSION_libwpe = "1.2.%" PREFERRED_VERSION_wpewebkit = "2.24.2" + From 8d2bb8da758f30b73a160eccd6a16b5ccd3acea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Tue, 25 Jun 2019 18:50:52 +0200 Subject: [PATCH 05/15] Don't use disk cache as this consumes a lot of memory and can eventually lead to a crash --- wpe-init | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wpe-init b/wpe-init index 54cf5aa..6508f3f 100755 --- a/wpe-init +++ b/wpe-init @@ -12,13 +12,6 @@ if [ -f /sys/class/backlight/rpi_backlight/brightness ]; then echo $RPI_BACKLIGHT > /sys/class/backlight/rpi_backlight/brightness fi -# Writable directories. See documentation here: -# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html -export HOME=/tmp/balena -mkdir -p /tmp/balena/xdg_runtime -chmod 0700 /tmp/balena/xdg_runtime -export XDG_RUNTIME_DIR=/tmp/balena/xdg_runtime - # Enable touch screen export WPE_BCMRPI_TOUCH=1 From 3191e5af14dbda9f93f19a4650f445abbc22ef1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Sun, 1 Sep 2019 16:34:37 +0000 Subject: [PATCH 06/15] Update to build 2.24.3 --- base-image/meta-openembedded | 2 +- base-image/meta-resin-wpe/conf/samples/local.conf.sample | 2 +- base-image/meta-webkit | 2 +- base-image/poky | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base-image/meta-openembedded b/base-image/meta-openembedded index 6fa72d5..8d5dcd6 160000 --- a/base-image/meta-openembedded +++ b/base-image/meta-openembedded @@ -1 +1 @@ -Subproject commit 6fa72d587aab8e9d56d67a2552eb9cfbe25c86d2 +Subproject commit 8d5dcd6522e9d15e68637b6d7dda0401f9bb91d0 diff --git a/base-image/meta-resin-wpe/conf/samples/local.conf.sample b/base-image/meta-resin-wpe/conf/samples/local.conf.sample index db8d0cd..fbe0aa4 100644 --- a/base-image/meta-resin-wpe/conf/samples/local.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/local.conf.sample @@ -47,5 +47,5 @@ PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" # Specify versions PREFERRED_VERSION_cog = "0.3.%" PREFERRED_VERSION_libwpe = "1.2.%" -PREFERRED_VERSION_wpewebkit = "2.24.2" +PREFERRED_VERSION_wpewebkit = "2.24.%" diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 0b79718..5466b4c 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 0b79718dc79416d0bddf416408e5a0955e16ea75 +Subproject commit 5466b4c21d775b23364c3bb064598bb2572ce43e diff --git a/base-image/poky b/base-image/poky index f2b442c..01b8a8b 160000 --- a/base-image/poky +++ b/base-image/poky @@ -1 +1 @@ -Subproject commit f2b442c5c8e3925a4d3fc9693f1e47863dade2a9 +Subproject commit 01b8a8b54bc569e5ef3f5e6fc6abcee365ab25d9 From cadc1e760e355f540ef548b4fbec1270fc1dd123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Mon, 30 Sep 2019 16:35:39 +0000 Subject: [PATCH 07/15] Update to build latest versions --- base-image/meta-resin-wpe/conf/samples/local.conf.sample | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/base-image/meta-resin-wpe/conf/samples/local.conf.sample b/base-image/meta-resin-wpe/conf/samples/local.conf.sample index fbe0aa4..9a15ff5 100644 --- a/base-image/meta-resin-wpe/conf/samples/local.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/local.conf.sample @@ -32,6 +32,7 @@ DISTRO_FEATURES_append = " opengl wayland" IMAGE_FEATURES_append = " hwcodecs" # Use proprietary Broadcom OpenGL drivers and wpebackend-rdk +MACHINE_FEATURES_remove = "vc4graphics" PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-rdk" PACKAGECONFIG_pn-wpebackend-rdk = "rpi" @@ -45,7 +46,7 @@ PACKAGECONFIG_remove_pn-cairo = " opengl" PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" # Specify versions -PREFERRED_VERSION_cog = "0.3.%" -PREFERRED_VERSION_libwpe = "1.2.%" -PREFERRED_VERSION_wpewebkit = "2.24.%" +PREFERRED_VERSION_cog = "0.4.%" +PREFERRED_VERSION_libwpe = "1.4.%" +PREFERRED_VERSION_wpewebkit = "2.26.%" From 4e2c5f854680875f8f01adbe491aa81b6c9f550f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Mon, 30 Sep 2019 16:37:02 +0000 Subject: [PATCH 08/15] Updated layers to latest versions --- base-image/meta-openembedded | 2 +- base-image/meta-qt5 | 2 +- base-image/meta-raspberrypi | 2 +- base-image/meta-webkit | 2 +- base-image/poky | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base-image/meta-openembedded b/base-image/meta-openembedded index 8d5dcd6..3bdbf72 160000 --- a/base-image/meta-openembedded +++ b/base-image/meta-openembedded @@ -1 +1 @@ -Subproject commit 8d5dcd6522e9d15e68637b6d7dda0401f9bb91d0 +Subproject commit 3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9 diff --git a/base-image/meta-qt5 b/base-image/meta-qt5 index 2a5f941..dc2dede 160000 --- a/base-image/meta-qt5 +++ b/base-image/meta-qt5 @@ -1 +1 @@ -Subproject commit 2a5f9415e48a38f6f4eb0cf375737a2d8438e2fe +Subproject commit dc2dedef9961950b88f4245ba7499538ec4244ab diff --git a/base-image/meta-raspberrypi b/base-image/meta-raspberrypi index 7059c37..0750d5d 160000 --- a/base-image/meta-raspberrypi +++ b/base-image/meta-raspberrypi @@ -1 +1 @@ -Subproject commit 7059c374512f1c1c0df9ecab0703d11438bdf78b +Subproject commit 0750d5d2bc9596f35d5d61bb0ff657be4b02bfdc diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 5466b4c..55d17d2 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 5466b4c21d775b23364c3bb064598bb2572ce43e +Subproject commit 55d17d2f53c52da97260dc09f2fdc173cb530827 diff --git a/base-image/poky b/base-image/poky index 01b8a8b..411624f 160000 --- a/base-image/poky +++ b/base-image/poky @@ -1 +1 @@ -Subproject commit 01b8a8b54bc569e5ef3f5e6fc6abcee365ab25d9 +Subproject commit 411624fa506a74eba7f1b1e159bd1a2286aa6686 From 77a2ea0d2e4da4f5f29f4a8b5fa00767f1911a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Mon, 30 Sep 2019 16:38:01 +0000 Subject: [PATCH 09/15] Allow cookies in browser --- wpe-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpe-init b/wpe-init index 6508f3f..6f37413 100755 --- a/wpe-init +++ b/wpe-init @@ -16,7 +16,7 @@ fi export WPE_BCMRPI_TOUCH=1 # Start browser -cog $WPE_URL & +cog --cookie-store=always $WPE_URL & # Start Tohora ./tohora 8080 cog From e5a3899edd0f670e4501ae086721c3de606303ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Fri, 22 Nov 2019 21:59:16 +0000 Subject: [PATCH 10/15] Updated to build 2.26.2 --- base-image/meta-openembedded | 2 +- base-image/meta-qt5 | 2 +- base-image/meta-raspberrypi | 2 +- base-image/meta-webkit | 2 +- base-image/poky | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base-image/meta-openembedded b/base-image/meta-openembedded index 3bdbf72..a24acf9 160000 --- a/base-image/meta-openembedded +++ b/base-image/meta-openembedded @@ -1 +1 @@ -Subproject commit 3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9 +Subproject commit a24acf94d48d635eca668ea34598c6e5c857e3f8 diff --git a/base-image/meta-qt5 b/base-image/meta-qt5 index dc2dede..1718712 160000 --- a/base-image/meta-qt5 +++ b/base-image/meta-qt5 @@ -1 +1 @@ -Subproject commit dc2dedef9961950b88f4245ba7499538ec4244ab +Subproject commit 171871280307126c94faeeb90fb635a26495459d diff --git a/base-image/meta-raspberrypi b/base-image/meta-raspberrypi index 0750d5d..5cb49f4 160000 --- a/base-image/meta-raspberrypi +++ b/base-image/meta-raspberrypi @@ -1 +1 @@ -Subproject commit 0750d5d2bc9596f35d5d61bb0ff657be4b02bfdc +Subproject commit 5cb49f4d76a311201bd36cf6538e23a59e3d8030 diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 55d17d2..4e5bdf2 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 55d17d2f53c52da97260dc09f2fdc173cb530827 +Subproject commit 4e5bdf2ab215293137ab3c33eff4dee7ba8a39a7 diff --git a/base-image/poky b/base-image/poky index 411624f..c9a1a60 160000 --- a/base-image/poky +++ b/base-image/poky @@ -1 +1 @@ -Subproject commit 411624fa506a74eba7f1b1e159bd1a2286aa6686 +Subproject commit c9a1a608f5146e5dcfebc8e566cb7f6388a3986f From 802958ea517f66c408f03804db8c601db1485055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Thu, 18 Jun 2020 20:20:10 +0000 Subject: [PATCH 11/15] Delete old patches --- .../0002-WPEBackend-fix-wpe-version.patch | 31 ------ .../wpebackend-rdk_1.20180925.bbappend | 5 - ...ke-gstreamer-audio-sink-configurable.patch | 97 ------------------- .../wpewebkit/wpewebkit_2.22.5.bbappend | 5 - 4 files changed, 138 deletions(-) delete mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch delete mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend delete mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpewebkit/files/0001-platform-make-gstreamer-audio-sink-configurable.patch delete mode 100644 base-image/meta-resin-wpe/recipes-webkit/wpewebkit/wpewebkit_2.22.5.bbappend diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch deleted file mode 100644 index ec58bc0..0000000 --- a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/files/0002-WPEBackend-fix-wpe-version.patch +++ /dev/null @@ -1,31 +0,0 @@ -From c275769547745e10b8fdb8bfb792d869c2469786 Mon Sep 17 00:00:00 2001 -From: Eric Stobbart -Date: Sun, 17 Mar 2019 14:04:57 -0700 -Subject: [PATCH] [cmake] find required WPE package - ---- - cmake/FindWPE.cmake | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/cmake/FindWPE.cmake b/cmake/FindWPE.cmake -index 7f4ffd2..a062481 100644 ---- a/cmake/FindWPE.cmake -+++ b/cmake/FindWPE.cmake -@@ -29,7 +29,7 @@ - # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - find_package(PkgConfig) --pkg_check_modules(PC_WPE QUIET wpe-0.2) -+pkg_check_modules(PC_WPE QUIET wpe-1.0) - - find_path(WPE_INCLUDE_DIRS - NAMES wpe/wpe.h -@@ -37,7 +37,7 @@ find_path(WPE_INCLUDE_DIRS - ) - - find_library(WPE_LIBRARIES -- NAMES wpe-0.2 -+ NAMES wpe-1.0 - HINTS ${PC_WPE_LIBDIR} ${PC_WPE_LIBRARY_DIRS} - ) - diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend b/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend deleted file mode 100644 index fde4d05..0000000 --- a/base-image/meta-resin-wpe/recipes-webkit/wpebackend-rdk/wpebackend-rdk_1.20180925.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -FILESEXTRAPATHS_append := ":${THISDIR}/files" - -SRC_URI += " \ - file://0002-WPEBackend-fix-wpe-version.patch \ - " diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/files/0001-platform-make-gstreamer-audio-sink-configurable.patch b/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/files/0001-platform-make-gstreamer-audio-sink-configurable.patch deleted file mode 100644 index 4613c1b..0000000 --- a/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/files/0001-platform-make-gstreamer-audio-sink-configurable.patch +++ /dev/null @@ -1,97 +0,0 @@ -From b2485ab61e183a99e1b13fc1fea6dc862c656625 Mon Sep 17 00:00:00 2001 -From: Petros Angelatos -Date: Sun, 20 May 2018 22:54:59 -0700 -Subject: [PATCH] platform: make gstreamer audio sink configurable - -On the RaspberryPi autoaudiosink will always select omxhdmiaudiosink if -an HDMI cable is connected but some users might want to output the audio -on the 3.5mm Jack or some other alsa sound card. - -Introduce the WPE_GSTREAMER_AUDIO_SINK environment variable that can -override the default audio sink. - -Signed-off-by: Petros Angelatos ---- - .../audio/gstreamer/AudioDestinationGStreamer.cpp | 10 +++++++--- - .../audio/gstreamer/AudioSourceProviderGStreamer.cpp | 7 ++++++- - .../graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp | 8 ++++++-- - 3 files changed, 19 insertions(+), 6 deletions(-) - -diff --git a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp -index 5bf8fda6b29..3b11744b276 100644 ---- a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp -+++ b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp -@@ -95,10 +95,14 @@ AudioDestinationGStreamer::AudioDestinationGStreamer(AudioIOCallback& callback, - "provider", &m_callback, - "frames", framesToPull, nullptr)); - -- GRefPtr audioSink = gst_element_factory_make("autoaudiosink", nullptr); -+ const char* audioSinkName = getenv("WPE_GSTREAMER_AUDIO_SINK"); -+ if (!audioSinkName) { -+ audioSinkName = "autoaudiosink"; -+ } -+ GRefPtr audioSink = gst_element_factory_make(audioSinkName, nullptr); - m_audioSinkAvailable = audioSink; - if (!audioSink) { -- LOG_ERROR("Failed to create GStreamer autoaudiosink element"); -+ LOG_ERROR("Failed to create GStreamer %s element", audioSinkName); - return; - } - -@@ -109,7 +113,7 @@ AudioDestinationGStreamer::AudioDestinationGStreamer(AudioIOCallback& callback, - // audiosink was loaded correctly. - GstStateChangeReturn stateChangeReturn = gst_element_set_state(audioSink.get(), GST_STATE_READY); - if (stateChangeReturn == GST_STATE_CHANGE_FAILURE) { -- LOG_ERROR("Failed to change autoaudiosink element state"); -+ LOG_ERROR("Failed to change %s element state", audioSinkName); - gst_element_set_state(audioSink.get(), GST_STATE_NULL); - m_audioSinkAvailable = false; - return; -diff --git a/Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp -index 01882e1edf9..3b39c3668f9 100644 ---- a/Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp -+++ b/Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp -@@ -116,6 +116,11 @@ void AudioSourceProviderGStreamer::configureAudioBin(GstElement* audioBin, GstEl - { - m_audioSinkBin = audioBin; - -+ const char* audioSinkName = getenv("WPE_GSTREAMER_AUDIO_SINK"); -+ if (!audioSinkName) { -+ audioSinkName = "autoaudiosink"; -+ } -+ - GstElement* audioTee = gst_element_factory_make("tee", "audioTee"); - GstElement* audioQueue = gst_element_factory_make("queue", nullptr); - GstElement* audioConvert = gst_element_factory_make("audioconvert", nullptr); -@@ -123,7 +128,7 @@ void AudioSourceProviderGStreamer::configureAudioBin(GstElement* audioBin, GstEl - GstElement* audioResample = gst_element_factory_make("audioresample", nullptr); - GstElement* audioResample2 = gst_element_factory_make("audioresample", nullptr); - GstElement* volumeElement = gst_element_factory_make("volume", "volume"); -- GstElement* audioSink = gst_element_factory_make("autoaudiosink", nullptr); -+ GstElement* audioSink = gst_element_factory_make(audioSinkName, nullptr); - - gst_bin_add_many(GST_BIN(m_audioSinkBin.get()), audioTee, audioQueue, audioConvert, audioResample, volumeElement, audioConvert2, audioResample2, audioSink, nullptr); - -diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp -index 2994862b63b..187b52148f8 100644 ---- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp -+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp -@@ -2250,9 +2250,13 @@ void MediaPlayerPrivateGStreamer::setPreload(MediaPlayer::Preload preload) - - GstElement* MediaPlayerPrivateGStreamer::createAudioSink() - { -- m_autoAudioSink = gst_element_factory_make("autoaudiosink", nullptr); -+ const char* audioSinkName = getenv("WPE_GSTREAMER_AUDIO_SINK"); -+ if (!audioSinkName) { -+ audioSinkName = "autoaudiosink"; -+ } -+ m_autoAudioSink = gst_element_factory_make(audioSinkName, nullptr); - if (!m_autoAudioSink) { -- GST_WARNING("GStreamer's autoaudiosink not found. Please check your gst-plugins-good installation"); -+ GST_WARNING("GStreamer's %s not found. Please check your plugins installation", audioSinkName); - return nullptr; - } - --- -2.17.0 - diff --git a/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/wpewebkit_2.22.5.bbappend b/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/wpewebkit_2.22.5.bbappend deleted file mode 100644 index a7c7b7d..0000000 --- a/base-image/meta-resin-wpe/recipes-webkit/wpewebkit/wpewebkit_2.22.5.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -FILESEXTRAPATHS_append := ":${THISDIR}/files" - -SRC_URI_append = " \ - file://0001-platform-make-gstreamer-audio-sink-configurable.patch \ -" From a7777eae757764cb97ef9c7e67c25612827aa5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Thu, 18 Jun 2020 20:32:27 +0000 Subject: [PATCH 12/15] Update to poky dunfell --- .gitmodules | 8 ++++---- base-image/meta-openembedded | 2 +- base-image/meta-qt5 | 2 +- base-image/meta-raspberrypi | 2 +- base-image/meta-webkit | 2 +- base-image/poky | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitmodules b/.gitmodules index a5c7749..0103110 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,19 +1,19 @@ [submodule "base-image/meta-openembedded"] path = base-image/meta-openembedded url = git://git.openembedded.org/meta-openembedded - branch = warrior + branch = dunfell [submodule "base-image/poky"] path = base-image/poky url = git://git.yoctoproject.org/poky - branch = warrior + branch = dunfell [submodule "base-image/meta-raspberrypi"] path = base-image/meta-raspberrypi url = git://git.yoctoproject.org/meta-raspberrypi - branch = warrior + branch = dunfell [submodule "base-image/meta-qt5"] path = base-image/meta-qt5 url = https://github.com/meta-qt5/meta-qt5.git - branch = warrior + branch = dunfell [submodule "base-image/meta-webkit"] path = base-image/meta-webkit url = https://github.com/Igalia/meta-webkit diff --git a/base-image/meta-openembedded b/base-image/meta-openembedded index a24acf9..8a72d29 160000 --- a/base-image/meta-openembedded +++ b/base-image/meta-openembedded @@ -1 +1 @@ -Subproject commit a24acf94d48d635eca668ea34598c6e5c857e3f8 +Subproject commit 8a72d29e0876830ffd96b85d7d0308302eb07a5d diff --git a/base-image/meta-qt5 b/base-image/meta-qt5 index 1718712..fdd1951 160000 --- a/base-image/meta-qt5 +++ b/base-image/meta-qt5 @@ -1 +1 @@ -Subproject commit 171871280307126c94faeeb90fb635a26495459d +Subproject commit fdd19517e17240b0b61765bd02fc483a1bde986f diff --git a/base-image/meta-raspberrypi b/base-image/meta-raspberrypi index 5cb49f4..ac71747 160000 --- a/base-image/meta-raspberrypi +++ b/base-image/meta-raspberrypi @@ -1 +1 @@ -Subproject commit 5cb49f4d76a311201bd36cf6538e23a59e3d8030 +Subproject commit ac717473e89b835da2eb418b0507644d71aa61c2 diff --git a/base-image/meta-webkit b/base-image/meta-webkit index 4e5bdf2..f940cc1 160000 --- a/base-image/meta-webkit +++ b/base-image/meta-webkit @@ -1 +1 @@ -Subproject commit 4e5bdf2ab215293137ab3c33eff4dee7ba8a39a7 +Subproject commit f940cc145e5c1c25b39c42afa8e02ef55ef56e50 diff --git a/base-image/poky b/base-image/poky index c9a1a60..0fc9d32 160000 --- a/base-image/poky +++ b/base-image/poky @@ -1 +1 @@ -Subproject commit c9a1a608f5146e5dcfebc8e566cb7f6388a3986f +Subproject commit 0fc9d32ae11ebb53aa33342f50887c1e692a1f32 From bdf2ad0000e61b48697a66e7bebd16f97436880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Fri, 19 Jun 2020 06:29:25 +0000 Subject: [PATCH 13/15] Add dunfell --- base-image/meta-resin-wpe/conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base-image/meta-resin-wpe/conf/layer.conf b/base-image/meta-resin-wpe/conf/layer.conf index 4a34f5d..c56a3bf 100644 --- a/base-image/meta-resin-wpe/conf/layer.conf +++ b/base-image/meta-resin-wpe/conf/layer.conf @@ -7,4 +7,4 @@ BBFILE_COLLECTIONS += "resin-wpe" BBFILE_PATTERN_resin-wpe := "^${LAYERDIR}/" BBFILE_PRIORITY_resin-wpe = "99" -LAYERSERIES_COMPAT_resin-wpe = "sumo thud warrior" +LAYERSERIES_COMPAT_resin-wpe = "sumo thud warrior dunfell" From 522ee1439588afc0bd6236936c5df86c813dd360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Fri, 19 Jun 2020 06:30:06 +0000 Subject: [PATCH 14/15] Update wpewebkit to latest --- base-image/meta-resin-wpe/conf/samples/local.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base-image/meta-resin-wpe/conf/samples/local.conf.sample b/base-image/meta-resin-wpe/conf/samples/local.conf.sample index 9a15ff5..d768cb7 100644 --- a/base-image/meta-resin-wpe/conf/samples/local.conf.sample +++ b/base-image/meta-resin-wpe/conf/samples/local.conf.sample @@ -46,7 +46,7 @@ PACKAGECONFIG_remove_pn-cairo = " opengl" PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas" # Specify versions -PREFERRED_VERSION_cog = "0.4.%" -PREFERRED_VERSION_libwpe = "1.4.%" -PREFERRED_VERSION_wpewebkit = "2.26.%" +PREFERRED_VERSION_cog = "0.6.%" +PREFERRED_VERSION_libwpe = "1.6.%" +PREFERRED_VERSION_wpewebkit = "2.28.%" From 7a4a48de85f0527e42f64003a9e2193d2d11d7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8y?= Date: Fri, 19 Jun 2020 06:31:26 +0000 Subject: [PATCH 15/15] Add updated recipe --- .../recipes-browser/cog/cog.inc | 49 ++++++++ .../recipes-browser/cog/cog_0.6.0.bb | 8 ++ .../recipes-browser/wpewebkit/wpewebkit.inc | 109 ++++++++++++++++++ .../wpewebkit/wpewebkit_2.28.2.bb | 12 ++ 4 files changed, 178 insertions(+) create mode 100644 base-image/meta-resin-wpe/recipes-browser/cog/cog.inc create mode 100644 base-image/meta-resin-wpe/recipes-browser/cog/cog_0.6.0.bb create mode 100644 base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit.inc create mode 100644 base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit_2.28.2.bb diff --git a/base-image/meta-resin-wpe/recipes-browser/cog/cog.inc b/base-image/meta-resin-wpe/recipes-browser/cog/cog.inc new file mode 100644 index 0000000..22193b9 --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-browser/cog/cog.inc @@ -0,0 +1,49 @@ +SUMMARY = "Cog is a small launcher designed for the WebKit WPE port. \ + But it also allows to use the WebKit GTK port instead. \ + Cog is small: provides no user interface, and is suitable \ + to be used as a Web application container. Cog may be \ + presented fullscreen depending on the WPE backend being used. \ + " +HOMEPAGE = "https://github.com/Igalia/cog" +BUGTRACKER = "https://github.com/Igalia/cog/issues" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=bf1229cd7425b302d60cdb641b0ce5fb" + +# Depend on wpewebkit unless the webkitgtk packageconfig option is selected. +DEPENDS = " \ + ${@bb.utils.contains('PACKAGECONFIG', 'webkitgtk', 'webkitgtk', 'wpewebkit', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'fdo', 'wayland', '', d)} \ + libsoup-2.4 glib-2.0 wayland-native wayland-protocols \ + " + +DEPENDS_append_class-target = " \ + ${@bb.utils.contains('PACKAGECONFIG', 'fdo', 'wayland-native', '', d)} \ + " + +# At run-time cog package should depend on virtual/wpebackend unless webkitgtk+ is enabled. +RDEPENDS_${PN} += "\ + ${@bb.utils.contains('PACKAGECONFIG', 'webkitgtk', '', 'virtual/wpebackend', d)} \ + xkeyboard-config \ + " + +inherit cmake + +# Cog can work with any wpebackend. +# But for using wpebackend-fdo this has to be enabled at build time. +PREFERRED_PROVIDER_virtual/wpebackend ?= "wpebackend-fdo" +PACKAGECONFIG ?= " ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/wpebackend', 'wpebackend-fdo', 'fdo', '', d)} " + +# libcogplatform*.so are plugins that should go on the main package (not on -dev) +# https://github.com/Igalia/cog/commit/758ed08555e8152a2becd2178d1f3a4ce6e67af9 +# Also libWPEBackend-default.so should go into the main package. +FILES_SOLIBSDEV = "${libdir}/libcogcore*.so" +FILES_${PN} += "${libdir}/libcogplatform*.so" +INSANE_SKIP_${PN} = "dev-so" + +# Use WebKitGTK+ instead of WPEWebKit +PACKAGECONFIG[webkitgtk] = "-DCOG_USE_WEBKITGTK=ON,-DCOG_USE_WEBKITGTK=OFF" +# Expose remote control interface on system bus. +PACKAGECONFIG[dbus] = "-DCOG_DBUS_SYSTEM_BUS=ON,-DCOG_DBUS_SYSTEM_BUS=OFF" +# Use wpebackend-fdo. +PACKAGECONFIG[fdo] = "-DCOG_PLATFORM_FDO=ON,-DCOG_PLATFORM_FDO=OFF,wpebackend-fdo" +PACKAGECONFIG[drm] = "-DCOG_PLATFORM_DRM=ON,-DCOG_PLATFORM_DRM=OFF,wpebackend-fdo libdrm virtual/libgbm libinput" diff --git a/base-image/meta-resin-wpe/recipes-browser/cog/cog_0.6.0.bb b/base-image/meta-resin-wpe/recipes-browser/cog/cog_0.6.0.bb new file mode 100644 index 0000000..1e1594d --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-browser/cog/cog_0.6.0.bb @@ -0,0 +1,8 @@ +require cog.inc + +SRC_URI = "https://github.com/Igalia/cog/releases/download/v${PV}/cog-${PV}.tar.xz" + +SRC_URI[md5sum] = "a97df4f0e2d25f4da7cd9bb55294d30e" +SRC_URI[sha256sum] = "208f58e0533b269400875237a95e994c93da7234a29fd1c904e756b88963e35d" + +RDEPENDS_${PN} += "wpewebkit (>= 2.24)" diff --git a/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit.inc b/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit.inc new file mode 100644 index 0000000..f7accb4 --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit.inc @@ -0,0 +1,109 @@ +SUMMARY = "WPE WebKit port pairs the WebKit engine with OpenGL-ES (OpenGL for Embedded Systems), \ + allowing embedders to create simple and performant systems based on Web platform technologies. \ + It is designed with hardware acceleration in mind, relying on EGL, and OpenGL ES." +HOMEPAGE = "https://trac.webkit.org/wiki/WPE" +BUGTRACKER = "https://bugs.webkit.org/" +LICENSE = "BSD & LGPLv2+" +LIC_FILES_CHKSUM = "file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 " + +DEPENDS = " \ + bison-native gperf-native harfbuzz-native libxml2-native ccache-native ninja-native ruby-native cairo \ + fontconfig freetype glib-2.0 gnutls harfbuzz icu jpeg pcre sqlite3 zlib libpng \ + libsoup-2.4 libwebp libxml2 libxslt virtual/egl virtual/libgles2 libepoxy libgcrypt \ +" + +inherit cmake pkgconfig perlnative python3native +inherit ${@'cmake_qt5' if 'qt5-layer' in d.getVar('BBFILE_COLLECTIONS').split() else ''} + +CCACHE_DISABLE[unexport] = "1" + +PACKAGECONFIG ??= "fetchapi indexeddb mediasource video webaudio webcrypto woff2 gst_gl remote-inspector openjpeg unified-builds" + +# WPE features +PACKAGECONFIG[accessibility] = "-DENABLE_ACCESSIBILITY=ON,-DENABLE_ACCESSIBILITY=OFF,atk at-spi2-atk" +PACKAGECONFIG[bubblewrap] = "-DENABLE_BUBBLEWRAP_SANDBOX=ON,-DENABLE_BUBBLEWRAP_SANDBOX=OFF,bubblewrap xdg-dbus-proxy bubblewrap-native xdg-dbus-proxy-native libseccomp" +PACKAGECONFIG[developer-mode] = "-DDEVELOPER_MODE=ON,-DDEVELOPER_MODE=OFF,wayland-native wayland-protocols wpebackend-fdo" +PACKAGECONFIG[deviceorientation] = "-DENABLE_DEVICE_ORIENTATION=ON,-DENABLE_DEVICE_ORIENTATION=OFF," +PACKAGECONFIG[encryptedmedia] = "-DENABLE_ENCRYPTED_MEDIA=ON,-DENABLE_ENCRYPTED_MEDIA=OFF,libgcrypt" +PACKAGECONFIG[fetchapi] = "-DENABLE_FETCH_API=ON,-DENABLE_FETCH_API=OFF," +PACKAGECONFIG[gamepad] = "-DENABLE_GAMEPAD=ON,-DENABLE_GAMEPAD=OFF," +PACKAGECONFIG[geolocation] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue" +PACKAGECONFIG[gst_gl] = "-DUSE_GSTREAMER_GL=ON,-DUSE_GSTREAMER_GL=OFF,gstreamer1.0-plugins-base" +PACKAGECONFIG[indexeddb] = "-DENABLE_INDEXED_DATABASE=ON,-DENABLE_INDEXED_DATABASE=OFF," +PACKAGECONFIG[mediasource] = "-DENABLE_MEDIA_SOURCE=ON,-DENABLE_MEDIA_SOURCE=OFF,gstreamer1.0 gstreamer1.0-plugins-good" +PACKAGECONFIG[service-worker] = "-DENABLE_SERVICE_WORKER=ON,-DENABLE_SERVICE_WORKER=OFF," +PACKAGECONFIG[video] = "-DENABLE_VIDEO=ON -DENABLE_VIDEO_TRACK=ON,-DENABLE_VIDEO=OFF -DENABLE_VIDEO_TRACK=OFF,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[webaudio] = "-DENABLE_WEB_AUDIO=ON,-DENABLE_WEB_AUDIO=OFF,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good" +PACKAGECONFIG[webcrypto] = "-DENABLE_WEB_CRYPTO=ON,-DENABLE_WEB_CRYPTO=OFF,libgcrypt libtasn1" +PACKAGECONFIG[webgl2] = "-DENABLE_WEBGL2=ON,-DENABLE_WEBGL2=OFF," +PACKAGECONFIG[woff2] = "-DUSE_WOFF2=ON,-DUSE_WOFF2=OFF,woff2" +# 2dcanvas requires cairo with opengl support. Try by setting in local.conf: PACKAGECONFIG_append_pn-cairo = " glesv2" +PACKAGECONFIG[2dcanvas] = "-DENABLE_ACCELERATED_2D_CANVAS=ON,-DENABLE_ACCELERATED_2D_CANVAS=OFF," +PACKAGECONFIG[remote-inspector] = "-DENABLE_REMOTE_INSPECTOR=ON,-DENABLE_REMOTE_INSPECTOR=OFF," +PACKAGECONFIG[webrtc] = "-DENABLE_WEB_RTC=ON,-DENABLE_WEB_RTC=OFF,libvpx libevent libopus" +PACKAGECONFIG[qtwpe] = "-DENABLE_WPE_QT_API=ON,-DENABLE_WPE_QT_API=OFF,qtbase-native qtbase qtdeclarative qtquickcontrols2 libepoxy wpebackend-fdo" +PACKAGECONFIG[openjpeg] = "-DUSE_OPENJPEG=ON,-DUSE_OPENJPEG=OFF,openjpeg" +PACKAGECONFIG[unified-builds] = "-DENABLE_UNIFIED_BUILDS=ON,-DENABLE_UNIFIED_BUILDS=OFF," + + +EXTRA_OECMAKE = " -DPORT=WPE -DCMAKE_BUILD_TYPE=Release -G Ninja" + +# If SSE code compiles, assume it runs successfully (it can't actually run +# because of cross compiling) +EXTRA_OECMAKE_append_x86 = " -DHAVE_SSE2_EXTENSIONS_EXITCODE=0" +# mips/gold does not yet implement +# error: .gnu.hash is incompatible with the MIPS ABI +EXTRA_OECMAKE_append_mipsarch = " -DUSE_LD_GOLD=OFF " + +LDFLAGS_append_riscv64 = " -pthread" + +FULL_OPTIMIZATION_remove = "-g" + +LEAD_SONAME = "libWPEWebKit.so" +PACKAGES =+ "${PN}-web-inspector-plugin ${PN}-qtwpe-qml-plugin" +FILES_${PN} += "${libdir}/wpe-webkit*/injected-bundle/libWPEInjectedBundle.so" +FILES_${PN}-web-inspector-plugin += "${libdir}/libWPEWebInspectorResources.so ${libdir}/wpe-webkit-*/libWPEWebInspectorResources.so" +INSANE_SKIP_${PN}-web-inspector-plugin = "dev-so" + +FILES_${PN}-qtwpe-qml-plugin += "${libdir}/qt5/qml/org/wpewebkit/qtwpe/*" +INSANE_SKIP_${PN}-qtwpe-qml-plugin = "dev-so" + +# JSC JIT on ARMv7 is better supported with Thumb2 instruction set. +ARM_INSTRUCTION_SET_armv7a = "thumb" +ARM_INSTRUCTION_SET_armv7r = "thumb" +ARM_INSTRUCTION_SET_armv7m = "thumb" +ARM_INSTRUCTION_SET_armv7ve = "thumb" + +# Extra runtime depends +RDEPENDS_${PN} += " \ + virtual/wpebackend \ + ${@bb.utils.contains('PACKAGECONFIG', 'mediasource', 'gstreamer1.0-plugins-good-isomp4', '', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'webaudio', 'gstreamer1.0-plugins-good-wavparse', '', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-base-opengl', '', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'video', 'gstreamer1.0-plugins-base-app \ + gstreamer1.0-plugins-base-playback \ + gstreamer1.0-plugins-base-audioconvert \ + gstreamer1.0-plugins-base-audioresample \ + gstreamer1.0-plugins-base-gio \ + gstreamer1.0-plugins-base-videoconvert \ + gstreamer1.0-plugins-base-videoscale \ + gstreamer1.0-plugins-base-volume \ + gstreamer1.0-plugins-base-typefindfunctions \ + gstreamer1.0-plugins-good-audiofx \ + gstreamer1.0-plugins-good-audioparsers \ + gstreamer1.0-plugins-good-autodetect \ + gstreamer1.0-plugins-good-avi \ + gstreamer1.0-plugins-good-deinterlace \ + gstreamer1.0-plugins-good-interleave \ + ', '', d)} \ +" + +# Extra runtime recommends +RRECOMMENDS_${PN} += " \ + ca-certificates \ + shared-mime-info \ + ttf-bitstream-vera \ + ${PN}-web-inspector-plugin \ + ${PN}-qtwpe-qml-plugin \ + ${@bb.utils.contains('PACKAGECONFIG', 'video', 'gstreamer1.0-plugins-base-meta gstreamer1.0-plugins-good-meta gstreamer1.0-plugins-bad-meta', '', d)} \ +" diff --git a/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit_2.28.2.bb b/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit_2.28.2.bb new file mode 100644 index 0000000..63c753f --- /dev/null +++ b/base-image/meta-resin-wpe/recipes-browser/wpewebkit/wpewebkit_2.28.2.bb @@ -0,0 +1,12 @@ +require wpewebkit.inc + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI = "\ + https://wpewebkit.org/releases/${BPN}-${PV}.tar.xz \ +" +SRC_URI[md5sum] = "c1f17d4b031e9462692443e3c089789c" +SRC_URI[sha256sum] = "6929d28744702ead3574484ca02645c457a6fdcd6b43ccc9766d98dc3664e8dc" + +DEPENDS += " libwpe" +RCONFLICTS_${PN} = "libwpe (< 1.2) wpebackend-fdo (< 1.2)" +