blob: 20a5b257e18d4781abf4cb5d6ba700668c14afd5 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit udev
DESCRIPTION="Veyron bsp (meta package to pull in driver/tool dependencies)"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="-* arm"
IUSE="+veyron-brcmfmac-nvram"
# Add dependencies on other ebuilds from within this board overlay
DEPEND=""
RDEPEND="${DEPEND}
x11-drivers/mali-rules
media-libs/media-rules
net-wireless/broadcom
chromeos-base/ec-utils
"
S=${WORKDIR}
src_install() {
# Install platform specific config files for power_manager.
insinto "/usr/share/power_manager/board_specific"
doins "${FILESDIR}"/powerd_prefs/*
# Install platform specific files for bcm4354 bluetooth.
insinto "/etc/init"
doins "${FILESDIR}"/brcm_patchram_plus.conf
insinto "/etc/modprobe.d"
doins "${FILESDIR}"/blacklist-btsdio.conf
# Install platform specific files to enable persist on ehci-platform
udev_dorules "${FILESDIR}/99-rk3288-ehci-persist.rules"
# Install platform specific files to avoid wakeup system by gpio-charger
udev_dorules "${FILESDIR}/99-rk3288-gpio-charger.rules"
# Install platform specific NVRAM files for brcmfmac.
if use veyron-brcmfmac-nvram ; then
insinto "/lib/firmware/brcm"
doins "${FILESDIR}/firmware/brcmfmac4354-sdio.txt"
fi
}