Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to wpewebkit 2.26.x on poky warrior #62

Closed
wants to merge 12 commits into from
16 changes: 8 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion base-image/meta-gstreamer1.0
Submodule meta-gstreamer1.0 deleted from 59dfad
2 changes: 1 addition & 1 deletion base-image/meta-openembedded
Submodule meta-openembedded updated from 8760fa to a24acf
1 change: 1 addition & 0 deletions base-image/meta-qt5
Submodule meta-qt5 added at 171871
2 changes: 1 addition & 1 deletion base-image/meta-raspberrypi
Submodule meta-raspberrypi updated from 2d40b0 to 5cb49f
2 changes: 1 addition & 1 deletion base-image/meta-resin-wpe/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
"
11 changes: 7 additions & 4 deletions base-image/meta-resin-wpe/conf/samples/local.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ 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"

# Enable H.264 decoding in hardware
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.2.%"
PREFERRED_VERSION_libwpe = "1.0.%"
PREFERRED_VERSION_wpewebkit = "2.22.%"
PREFERRED_VERSION_cog = "0.4.%"
PREFERRED_VERSION_libwpe = "1.4.%"
PREFERRED_VERSION_wpewebkit = "2.26.%"

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# We need to build GnuTLS with "system trust"
EXTRA_OECONF += " --with-default-trust-store-dir=/etc/ssl/certs"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From c275769547745e10b8fdb8bfb792d869c2469786 Mon Sep 17 00:00:00 2001
From: Eric Stobbart <[email protected]>
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}
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FILESEXTRAPATHS_append := ":${THISDIR}/files"

SRC_URI += " \
file://0002-WPEBackend-fix-wpe-version.patch \
"
2 changes: 1 addition & 1 deletion base-image/meta-webkit
Submodule meta-webkit updated 45 files
+100 −0 .gitlab-ci.yml
+15 −0 README.md
+6 −1 conf/layer.conf
+15 −0 dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/files/CMakeLists.txt
+34 −0 dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/files/main.cpp
+16 −0 dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/files/main.qml
+5 −0 dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/files/qml.qrc
+21 −0 dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/qt-wpe-simple-browser_0.1.bb
+7 −1 recipes-browser/cog/cog.inc
+0 −6 recipes-browser/cog/cog_0.1.0.bb
+8 −0 recipes-browser/cog/cog_0.1.1.bb
+8 −0 recipes-browser/cog/cog_0.3.0.bb
+8 −0 recipes-browser/cog/cog_0.4.0.bb
+2 −2 recipes-browser/cog/cog_git.bb
+4 −1 recipes-browser/libwpe/libwpe.inc
+3 −0 recipes-browser/libwpe/libwpe_1.0.0.bb
+10 −0 recipes-browser/libwpe/libwpe_1.2.0.bb
+10 −0 recipes-browser/libwpe/libwpe_1.4.0.bb
+3 −3 recipes-browser/libwpe/libwpe_git.bb
+2 −2 recipes-browser/webkitgtk/webkitgtk_2.22.6.bb
+2 −1 recipes-browser/wpebackend-fdo/wpebackend-fdo.inc
+0 −9 recipes-browser/wpebackend-fdo/wpebackend-fdo_1.0.0.bb
+9 −0 recipes-browser/wpebackend-fdo/wpebackend-fdo_1.0.1.bb
+9 −0 recipes-browser/wpebackend-fdo/wpebackend-fdo_1.2.1.bb
+9 −0 recipes-browser/wpebackend-fdo/wpebackend-fdo_1.4.0.bb
+2 −2 recipes-browser/wpebackend-fdo/wpebackend-fdo_git.bb
+37 −0 recipes-browser/wpebackend-rdk/wpebackend-rdk.inc
+633 −0 recipes-browser/wpebackend-rdk/wpebackend-rdk/0001-Fix-include-of-headers-after-WPEBackend-commit-2bf3c.patch
+36 −0 recipes-browser/wpebackend-rdk/wpebackend-rdk/0001-WPEBackend-libraries-are-versioned-now.patch
+12 −0 recipes-browser/wpebackend-rdk/wpebackend-rdk_1.20180411.bb
+11 −0 recipes-browser/wpebackend-rdk/wpebackend-rdk_1.20180925.bb
+4 −35 recipes-browser/wpebackend-rdk/wpebackend-rdk_git.bb
+3 −0 recipes-browser/wpebackend/wpebackend.inc
+31 −10 recipes-browser/wpewebkit/wpewebkit.inc
+1 −1 recipes-browser/wpewebkit/wpewebkit_2.20.2.bb
+2 −2 recipes-browser/wpewebkit/wpewebkit_2.22.4.bb
+9 −0 recipes-browser/wpewebkit/wpewebkit_2.24.3.bb
+9 −0 recipes-browser/wpewebkit/wpewebkit_2.26.2.bb
+1 −1 recipes-browser/wpewebkit/wpewebkit_downstream.bb
+1 −1 recipes-browser/wpewebkit/wpewebkit_trunk.bb
+0 −1 recipes-devtools/luajit/luajit_2.0.5.bbappend
+5 −4 recipes-extended/brotli/brotli_1.0.7.bb
+21 −0 recipes-flatpak/bubblewrap/bubblewrap_0.3.1.bb
+14 −0 recipes-flatpak/xdg-dbus-proxy/xdg-dbus-proxy_0.1.0.bb
+3 −3 recipes-graphics/woff2/woff2_1.0.2.bb
2 changes: 1 addition & 1 deletion base-image/poky
Submodule poky updated from 5ddf7f to c9a1a6
9 changes: 1 addition & 8 deletions wpe-init
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ 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

# Start browser
cog $WPE_URL &
cog --cookie-store=always $WPE_URL &

# Start Tohora
./tohora 8080 cog