blob: 4b8cb1f0a6f7fd7f57b276a1168f06a15645b43f [file] [log] [blame]
# Copyright 2017 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit cros-constants
DESCRIPTION="Install media profiles on ARC++"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
S="${WORKDIR}"
src_install() {
insinto /etc/camera/
doins "${FILESDIR}/media_profiles.xml"
dobin "${FILESDIR}/generate_camera_profile"
# /etc/media_profiles.xml in container is a symbolic link to vendor image.
# In order to change profile at runtime, we have to install the file
# into /oem partition. Create a symbolic link in vendor image to redirect
# profiles correctly.
dosym "/oem/etc/media_profiles.xml" \
"${ARC_VENDOR_DIR}/etc/media_profiles.xml"
}