| # Copyright 2015 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=4 |
| |
| inherit appid udev |
| |
| DESCRIPTION="Sumo 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 "{FEF8EE3B-4E4C-956F-15CA-B36006D11E46}" "CHROMEBASE" |
| dosbin "${FILESDIR}/board_factory_wipe.sh" |
| dosbin "${FILESDIR}/board_factory_reset.sh" |
| |
| # Install Bluetooth ID override. |
| insinto "/etc/bluetooth" |
| doins "${FILESDIR}/main.conf" |
| |
| # Install platform-specific internal keyboard keymap. |
| # It should probbaly go into /lib/udev/hwdb.d but |
| # unfortunately udevadm on 64 dev boxes does not check |
| # that directory (it wants to look in /lib64/udev). |
| insinto "${EPREFIX}/etc/udev/hwdb.d" |
| doins "${FILESDIR}/61-sumo-keyboard.hwdb" |
| } |
| |
| pkg_postinst() { |
| udevadm hwdb --update --root="${ROOT%/}" |
| # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
| [ "${ROOT:-/}" = "/" ] && udevadm control --reload |
| } |