]> code.ossystems Code Review - meta-freescale.git/commitdiff
chromium: Enable new version 52 for x11 support wayland on older version
authorLauren Post <lauren.post@nxp.com>
Mon, 26 Sep 2016 13:24:35 +0000 (08:24 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 18 Oct 2016 18:25:50 +0000 (16:25 -0200)
Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend [new file with mode: 0644]
dynamic-layers/browser-layer/recipes-browser/chromium/chromium/chromium.patch [new file with mode: 0644]
dynamic-layers/browser-layer/recipes-browser/chromium/chromium_48.0.2548.0.bbappend [deleted file]
dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend [new file with mode: 0644]

diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
new file mode 100644 (file)
index 0000000..7423753
--- /dev/null
@@ -0,0 +1,29 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/chromium:"
+
+include chromium-imx.inc
+
+CHROMIUM_IMX_BRANCH = "master"
+CHROMIUM_IMX_SRCREV = "4a2d15ab899b9944bb3adb2ddd250530da5b2e1a"
+CHROMIUM_IMX_COMMON_PATCHES += "file://${PATCH_BASE_DIR}/common/0001-Enable-share-group-workaround-for-Vivante-GPUs.patch"
+CHROMIUM_ENABLE_WAYLAND = "0"
+
+DEPENDS_append_imxvpu = " imx-vpuwrap"
+
+VPU_PATCHES = "file://${PATCH_BASE_DIR}/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch"
+
+CHROMIUM_IMX_VPU_PATCHES_imxvpu += "${VPU_PATCHES}"
+
+CHROMIUM_IMX_WAYLAND_PATCHES += "file://${PATCH_BASE_DIR}/wayland/0001-Modify-eglwayland-versions-for-Vivante-GPUs.patch"
+
+# Don't use X if it's running through Wayland
+CHROMIUM_ENABLE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', \
+                      bb.utils.contains('DISTRO_FEATURES', 'x11', '0', \
+                      '0', d),d)}"
+
+SRC_URI += "\
+        ${@oe.utils.conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'git://github.com/01org/ozone-wayland.git;destsuffix=${OZONE_WAYLAND_GIT_DESTSUFFIX};branch=${OZONE_WAYLAND_GIT_BRANCH};rev=${OZONE_WAYLAND_GIT_SRCREV}', '', d)} \
+        ${@oe.utils.conditional('CHROMIUM_ENABLE_WAYLAND', '1', ' file://chromium.patch', '', d)} \
+"
+
+# Remove packages as Chromium is changed to statically link against ffmpeg.
+PACKAGES_remove = "${PN}-codecs-ffmpeg ${PN}-plugin-pdf"
diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium/chromium.patch b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium/chromium.patch
new file mode 100644 (file)
index 0000000..0329d42
--- /dev/null
@@ -0,0 +1,51 @@
+diff -Naur chromium-48.0.2548.0_org/third_party/libva/va/va_dec_jpeg.h chromium-48.0.2548.0/third_party/libva/va/va_dec_jpeg.h
+--- chromium-48.0.2548.0_org/third_party/libva/va/va_dec_jpeg.h        2016-05-27 11:45:31.248306710 -0500
++++ chromium-48.0.2548.0/third_party/libva/va/va_dec_jpeg.h    2016-05-27 11:49:53.000000000 -0500
+@@ -36,7 +36,7 @@
+ extern "C" {
+ #endif
+-#include <va/va.h>
++#include <libva/va/va.h>
+ /**
+  * \defgroup api_dec_jpeg JPEG decoding API
+diff -Naur chromium-48.0.2548.0_org/third_party/libva/va/va.h chromium-48.0.2548.0/third_party/libva/va/va.h
+--- chromium-48.0.2548.0_org/third_party/libva/va/va.h 2016-05-27 11:45:31.248306710 -0500
++++ chromium-48.0.2548.0/third_party/libva/va/va.h     2016-05-27 11:49:16.000000000 -0500
+@@ -80,7 +80,7 @@
+ #include <stddef.h>
+ #include <stdint.h>
+-#include <va/va_version.h>
++#include <libva/va/va_version.h>
+ #ifdef __cplusplus
+ extern "C" {
+@@ -2836,16 +2836,16 @@
+  */
+ #define VA_PICTURE_HEVC_RPS_LT_CURR             0x00000040
+-#include <va/va_dec_hevc.h>
+-#include <va/va_dec_jpeg.h>
+-#include <va/va_dec_vp8.h>
+-#include <va/va_dec_vp9.h>
+-#include <va/va_enc_hevc.h>
+-#include <va/va_enc_h264.h>
+-#include <va/va_enc_jpeg.h>
+-#include <va/va_enc_mpeg2.h>
+-#include <va/va_enc_vp8.h>
+-#include <va/va_vpp.h>
++#include <libva/va/va_dec_hevc.h>
++#include <libva/va/va_dec_jpeg.h>
++#include <libva/va/va_dec_vp8.h>
++#include <libva/va/va_dec_vp9.h>
++#include <libva/va/va_enc_hevc.h>
++#include <libva/va/va_enc_h264.h>
++#include <libva/va/va_enc_jpeg.h>
++#include <libva/va/va_enc_mpeg2.h>
++#include <libva/va/va_enc_vp8.h>
++#include <libva/va/va_vpp.h>
+ /**@}*/
diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_48.0.2548.0.bbappend b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_48.0.2548.0.bbappend
deleted file mode 100644 (file)
index 54a0a99..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-include chromium-imx.inc
-
-CHROMIUM_IMX_BRANCH = "master"
-CHROMIUM_IMX_SRCREV = "4a2d15ab899b9944bb3adb2ddd250530da5b2e1a"
-CHROMIUM_IMX_COMMON_PATCHES += "file://${PATCH_BASE_DIR}/common/0001-Enable-share-group-workaround-for-Vivante-GPUs.patch"
-
-CHROMIUM_IMX_VPU_PATCHES_imxvpu += "file://${PATCH_BASE_DIR}/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch"
-
-CHROMIUM_IMX_WAYLAND_PATCHES += "file://${PATCH_BASE_DIR}/wayland/0001-Modify-eglwayland-versions-for-Vivante-GPUs.patch"
diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
new file mode 100644 (file)
index 0000000..0fa2e1e
--- /dev/null
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+include chromium-imx.inc
+
+CHROMIUM_IMX_BRANCH = "master"
+CHROMIUM_IMX_SRCREV = "4a2d15ab899b9944bb3adb2ddd250530da5b2e1a"
+CHROMIUM_IMX_COMMON_PATCHES += "file://${PATCH_BASE_DIR}/common/0001-Enable-share-group-workaround-for-Vivante-GPUs.patch"
+
+# Remove packages as Chromium is changed to statically link against ffmpeg.
+PACKAGES_remove = "${PN}-codecs-ffmpeg ${PN}-plugin-pdf"