blob: d9d5e14ae9b33bc5c6c7db669b84a5eb54e28074 [file] [log] [blame]
# Copyright 2017 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit cros-constants
DESCRIPTION="Install dynamic media profiles on ARC++"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
media-libs/arc-camera-profile"
S="${WORKDIR}"
src_install() {
insinto /etc/camera/
doins "${FILESDIR}/media_profiles.xml"
# Default media profiles is installed into vendor image.
# /etc/media_profiles.xml in container is a symbolic link to vendor image.
# In order to dynamic generated the profile, 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"
}