blob: bc41dbd856c4525b8d06afea6a5c706fc9b418d8 [file] [log] [blame]
# Copyright 2010 Google Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:
EAPI="2"
CROS_WORKON_COMMIT="e53fa0fc543a587f18d00a855e3dd1f985db3a5e"
inherit cros-workon toolchain-funcs
DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips"
HOMEPAGE="http://flashrom.org"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="ftdi serprog"
CROS_WORKON_LOCALNAME="flashrom"
CROS_WORKON_PROJECT="flashrom"
RDEPEND="sys-apps/pciutils
ftdi? ( dev-embedded/libftdi )"
src_compile() {
emake CC="$(tc-getCC)" STRIP="" || die "emake failed"
}
src_install() {
dosbin flashrom || die
doman flashrom.8 || die
}