| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=2 |
| |
| inherit cros-binary |
| |
| DESCRIPTION="NVIDIA binary nvrm daemon and libraries for Tegra2" |
| SLOT="0" |
| KEYWORDS="arm" |
| IUSE="tegra-local-bins hardfp" |
| |
| RDEPEND="" |
| DEPEND="${RDEPEND}" |
| |
| if use tegra-local-bins; then |
| URI_BASE="file://" |
| else |
| URI_BASE="ssh://bcs-tegra2-private@git.chromium.org:6222/overlay-tegra2-private" |
| fi |
| if use hardfp; then |
| CROS_BINARY_URI="${URI_BASE}/${CATEGORY}/${PN}/${PN}-hardfp-${PV}.tbz2" |
| CROS_BINARY_SUM="9c12a9c06cea82a79907c024c5914c1f77f5d658" |
| else |
| CROS_BINARY_URI="${URI_BASE}/${CATEGORY}/${PN}/${P}.tbz2" |
| CROS_BINARY_SUM="cf0eaece8b224ef21c8b648285f283472fd57587" |
| fi |
| |
| src_install() { |
| insinto /etc/udev/rules.d |
| doins ${FILESDIR}/etc/udev/rules.d/51-nvrm.rules || die |
| |
| cros-binary_src_install |
| } |