blob: 10dfb46ca2a2c51611096c6cdcc8e8b8f0a9d871 [file] [log] [blame] [edit]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit appid
DESCRIPTION="Candy bsp (meta package to pull in driver/tool deps)"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
S="${WORKDIR}"
RDEPEND="
chromeos-base/ec-utils
sys-kernel/linux-firmware
media-gfx/ply-image
"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_install() {
doappid "{BABC2E82-8F7D-26E5-EE66-4C60A2B41DBC}"
# Install platform specific config files for power_manager.
insinto "/usr/share/power_manager/board_specific"
doins "${FILESDIR}/battery_stabilized_after_startup_ms"
doins "${FILESDIR}/low_battery_shutdown_percent"
# Battery cut-off
dosbin "${FILESDIR}/battery_cut_off.sh"
dosbin "${FILESDIR}/board_factory_wipe.sh"
dosbin "${FILESDIR}/board_factory_reset.sh"
dosbin "${FILESDIR}/board_charge_battery.sh"
dosbin "${FILESDIR}/board_discharge_battery.sh"
dosbin "${FILESDIR}/rma_battery_cut_off.sh"
insinto "/usr/share/factory/images"
doins "${FILESDIR}/remove_ac.png"
doins "${FILESDIR}/cutting_off.png"
doins "${FILESDIR}/cutoff_failed.png"
doins "${FILESDIR}/charging.png"
doins "${FILESDIR}/connect_ac.png"
doins "${FILESDIR}/discharging.png"
# Install Bluetooth ID override.
insinto "/etc/bluetooth"
doins "${FILESDIR}/main.conf"
}