summaryrefslogtreecommitdiffstats
path: root/browser-layer/recipes-browser/chromium/chromium-imx.inc
diff options
context:
space:
mode:
Diffstat (limited to 'browser-layer/recipes-browser/chromium/chromium-imx.inc')
-rw-r--r--browser-layer/recipes-browser/chromium/chromium-imx.inc49
1 files changed, 49 insertions, 0 deletions
diff --git a/browser-layer/recipes-browser/chromium/chromium-imx.inc b/browser-layer/recipes-browser/chromium/chromium-imx.inc
new file mode 100644
index 00000000..f63807d5
--- /dev/null
+++ b/browser-layer/recipes-browser/chromium/chromium-imx.inc
@@ -0,0 +1,49 @@
1DEPENDS_append_mx6q = " libfslvpuwrap"
2DEPENDS_append_mx6dl = " libfslvpuwrap"
3
4# Additional imx code and patches are included in the chromium-imx git repository.
5# The code below fetches this repository, copies the extra source over to the main
6# chromium source directory, and applies the patches.
7
8CHROMIUM_IMX_BRANCH ?= "master"
9CHROMIUM_IMX_SRCREV ?= "HEAD"
10CHROMIUM_IMX_DESTSUFFIX ?= "chromium-imx-git"
11
12PATCH_BASE_DIR = "${WORKDIR}/${CHROMIUM_IMX_DESTSUFFIX}/patches"
13
14CHROMIUM_IMX_COMMON_PATCHES ?= " "
15CHROMIUM_IMX_VPU_PATCHES ?= " "
16CHROMIUM_IMX_WAYLAND_PATCHES ?= " "
17
18SRC_URI += "git://github.com/Freescale/chromium-imx.git;destsuffix=${CHROMIUM_IMX_DESTSUFFIX};branch=${CHROMIUM_IMX_BRANCH};rev=${CHROMIUM_IMX_SRCREV}"
19
20do_unpack[postfuncs] += "copy_chromium_imx_files"
21# using =+ instead of += to make sure add_chromium_imx_patches is
22# executed before add_ozone_wayland_patches in the main recipe;
23# this is necessary because add_chromium_imx_patches appends
24# patches to the OZONE_WAYLAND_EXTRA_PATCHES variable
25do_patch[prefuncs] =+ "add_chromium_imx_patches"
26
27# * Lost context problems are not known to happen with Vivante GPUs,
28# so it is safe to use ignore-lost-context
29# * EGL is on by default due to the GPU on the i.MX6
30PACKAGECONFIG_append = " use-egl ignore-lost-context"
31
32copy_chromium_imx_files() {
33 # sources in src/ are already organized in a manner
34 # that matches the subdirectories in the chromium
35 # source directory; just copy over the files in src/
36 cp -r ${WORKDIR}/chromium-imx-git/src/* ${S}/
37}
38
39python add_chromium_imx_patches() {
40 d.appendVar('SRC_URI', ' ' + d.getVar('CHROMIUM_IMX_COMMON_PATCHES', 1))
41 d.appendVar('SRC_URI', ' ' + d.getVar('CHROMIUM_IMX_VPU_PATCHES', 1))
42 d.appendVar('OZONE_WAYLAND_EXTRA_PATCHES', ' ' + d.getVar('CHROMIUM_IMX_WAYLAND_PATCHES', 1))
43}
44
45# Necessary flags to enable support for h.264 and MP4 in Chromium
46# (Parsing is done by ffmpeg)
47EXTRA_OEGYP += "-Dproprietary_codecs=1 -Dffmpeg_branding=Chrome"
48
49COMPATIBLE_MACHINE = "(mx6)"