blob: 7a508c91cabc8d4ce4cb072be2668e6a86707535 [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 appid
DESCRIPTION="Ebuild which pulls in any necessary ebuilds as dependencies
or portage actions."
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
S="${WORKDIR}"
# Add dependencies on other ebuilds from within this board overlay
RDEPEND="
chromeos-base/chromeos-bsp-baseboard-auron
chromeos-base/ec-utils
sys-kernel/linux-firmware
media-gfx/ply-image
"
DEPEND="${RDEPEND}"
src_install() {
doappid "{40C6BCAB-B8D4-466F-9C3C-069B8CAC36D7}"
# Install platform specific config files for power_manager.
insinto "/usr/share/power_manager/board_specific"
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"
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"
}