diff options
Diffstat (limited to 'browser-layer/recipes-browser/chromium/chromium-imx.inc')
| -rw-r--r-- | browser-layer/recipes-browser/chromium/chromium-imx.inc | 49 |
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 000000000..f63807d57 --- /dev/null +++ b/browser-layer/recipes-browser/chromium/chromium-imx.inc | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | DEPENDS_append_mx6q = " libfslvpuwrap" | ||
| 2 | DEPENDS_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 | |||
| 8 | CHROMIUM_IMX_BRANCH ?= "master" | ||
| 9 | CHROMIUM_IMX_SRCREV ?= "HEAD" | ||
| 10 | CHROMIUM_IMX_DESTSUFFIX ?= "chromium-imx-git" | ||
| 11 | |||
| 12 | PATCH_BASE_DIR = "${WORKDIR}/${CHROMIUM_IMX_DESTSUFFIX}/patches" | ||
| 13 | |||
| 14 | CHROMIUM_IMX_COMMON_PATCHES ?= " " | ||
| 15 | CHROMIUM_IMX_VPU_PATCHES ?= " " | ||
| 16 | CHROMIUM_IMX_WAYLAND_PATCHES ?= " " | ||
| 17 | |||
| 18 | SRC_URI += "git://github.com/Freescale/chromium-imx.git;destsuffix=${CHROMIUM_IMX_DESTSUFFIX};branch=${CHROMIUM_IMX_BRANCH};rev=${CHROMIUM_IMX_SRCREV}" | ||
| 19 | |||
| 20 | do_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 | ||
| 25 | do_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 | ||
| 30 | PACKAGECONFIG_append = " use-egl ignore-lost-context" | ||
| 31 | |||
| 32 | copy_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 | |||
| 39 | python 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) | ||
| 47 | EXTRA_OEGYP += "-Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" | ||
| 48 | |||
| 49 | COMPATIBLE_MACHINE = "(mx6)" | ||
