| # Copyright 2014 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=4 |
| |
| inherit appid udev |
| |
| DESCRIPTION="Pi bsp (meta package to pull in driver/tool deps)" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="-* arm" |
| |
| DEPEND="!<chromeos-base/chromeos-bsp-pi-private-0.0.2" |
| RDEPEND="${DEPEND} |
| chromeos-base/ec-utils |
| chromeos-base/thermal |
| " |
| |
| S=${WORKDIR} |
| |
| src_install() { |
| doappid "{5615D466-EF74-FCD0-46EA-D7F60416B3CD}" # peach-pi |
| |
| dosbin "${FILESDIR}/battery_cut_off.sh" |
| dosbin "${FILESDIR}/board_factory_wipe.sh" |
| dosbin "${FILESDIR}/board_factory_reset.sh" |
| |
| insinto "/usr/share/factory/images" |
| doins "${FILESDIR}/remove_ac.png" |
| doins "${FILESDIR}/cutting_off.png" |
| doins "${FILESDIR}/cutoff_failed.png" |
| |
| # Install platform-specific ambient light sensor configuration. |
| udev_dorules "${FILESDIR}/99-light-sensor.rules" |
| exeinto $(udev_get_udevdir) |
| doexe "${FILESDIR}/light-sensor-set-multiplier.sh" |
| |
| # Install platform specific config files for power_manager. |
| insinto "/usr/share/power_manager/board_specific" |
| doins "${FILESDIR}"/powerd_prefs/* |
| |
| # Install platform specific laptop mode tools configuration files |
| insinto "/etc/laptop-mode/conf.d/board-specific" |
| doins "${FILESDIR}/cpufreq.conf" |
| } |