meta-freescale/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-imx.inc
Pablo Saavedra 02eb3ffd5a conf/layer.conf: Rename browser-layer as chromium-browser-layer
This commit updates the directory name of the browser-layer
dynamic-layer because the changes introduced in
https://github.com/OSSystems/meta-browser/pull/470. This browser-layer
doesn't exist anymore in the meta-browser layer being replaced by a new
chromium-browser-layer.

For backwards compatibility this changes keeps the entries associated to
the former browser-layer pointing to the new chromium-browser-layer.

Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
2021-03-26 08:37:10 -03:00

45 lines
1.8 KiB
PHP

DEPENDS_append_imxvpu = " imx-vpuwrap"
# Additional imx code and patches are included in the chromium-imx git repository.
# The code below fetches this repository, copies the extra source over to the main
# chromium source directory, and applies the patches.
CHROMIUM_IMX_BRANCH ?= "master"
CHROMIUM_IMX_SRCREV ?= "HEAD"
CHROMIUM_IMX_DESTSUFFIX ?= "chromium-imx-git"
PATCH_BASE_DIR = "${WORKDIR}/${CHROMIUM_IMX_DESTSUFFIX}/patches"
CHROMIUM_IMX_COMMON_PATCHES ?= " "
CHROMIUM_IMX_VPU_PATCHES ?= " "
CHROMIUM_IMX_WAYLAND_PATCHES ?= " "
SRC_URI += "git://github.com/Freescale/chromium-imx.git;destsuffix=${CHROMIUM_IMX_DESTSUFFIX};branch=${CHROMIUM_IMX_BRANCH};rev=${CHROMIUM_IMX_SRCREV}"
do_unpack[postfuncs] += "copy_chromium_imx_files"
# using =+ instead of += to make sure add_chromium_imx_patches is
# executed before add_ozone_wayland_patches in the main recipe;
# this is necessary because add_chromium_imx_patches appends
# patches to the OZONE_WAYLAND_EXTRA_PATCHES variable
do_patch[prefuncs] =+ "add_chromium_imx_patches"
# * Lost context problems are not known to happen with Vivante GPUs,
# so it is safe to use ignore-lost-context
# * Proprietary codecs need to be enabled for h.264 and MP4 support
PACKAGECONFIG_append = " ignore-lost-context proprietary-codecs"
copy_chromium_imx_files() {
# sources in src/ are already organized in a manner
# that matches the subdirectories in the chromium
# source directory; just copy over the files in src/
cp -r ${WORKDIR}/chromium-imx-git/src/* ${S}/
}
python add_chromium_imx_patches() {
d.appendVar('SRC_URI', ' ' + d.getVar('CHROMIUM_IMX_COMMON_PATCHES', 1))
d.appendVar('SRC_URI', ' ' + d.getVar('CHROMIUM_IMX_VPU_PATCHES', 1))
d.appendVar('OZONE_WAYLAND_EXTRA_PATCHES', ' ' + d.getVar('CHROMIUM_IMX_WAYLAND_PATCHES', 1))
}
COMPATIBLE_MACHINE = "(mx6)"