summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2009-05-05 22:46:55 +0000
committerMart Raudsepp <leio@gentoo.org>2009-05-05 22:46:55 +0000
commit23a48aee3692e3721bdbf540cd3f88fd0302a5f2 (patch)
tree075be844524840176cecf6d1fd7d75fb95d34d5c /sys-apps/flashrom
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-23a48aee3692e3721bdbf540cd3f88fd0302a5f2.tar.gz
gentoo-2-23a48aee3692e3721bdbf540cd3f88fd0302a5f2.tar.bz2
gentoo-2-23a48aee3692e3721bdbf540cd3f88fd0302a5f2.zip
Initial import of flashrom - a utility for reading, writing, verifying and erasing flash ROM chips. It's used to flash BIOS/coreboot/firmware images. Roughly based on ebuilds from Peter Stuge and Christian Ruppert. Closes bug 196945
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'sys-apps/flashrom')
-rw-r--r--sys-apps/flashrom/ChangeLog13
-rw-r--r--sys-apps/flashrom/flashrom-0.9.0.ebuild38
-rw-r--r--sys-apps/flashrom/metadata.xml31
3 files changed, 82 insertions, 0 deletions
diff --git a/sys-apps/flashrom/ChangeLog b/sys-apps/flashrom/ChangeLog
new file mode 100644
index 000000000000..880dc0a0c1af
--- /dev/null
+++ b/sys-apps/flashrom/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-apps/flashrom
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/ChangeLog,v 1.1 2009/05/05 22:46:55 leio Exp $
+
+*flashrom-0.9.0 (05 May 2009)
+
+ 05 May 2009; Mart Raudsepp <leio@gentoo.org> +metadata.xml,
+ +flashrom-0.9.0.ebuild:
+ Initial import of flashrom - a utility for reading, writing, verifying and
+ erasing flash ROM chips. It's used to flash BIOS/coreboot/firmware images.
+ Roughly based on ebuilds from Peter Stuge and Christian Ruppert. Closes bug
+ 196945
+
diff --git a/sys-apps/flashrom/flashrom-0.9.0.ebuild b/sys-apps/flashrom/flashrom-0.9.0.ebuild
new file mode 100644
index 000000000000..b537f1513b1a
--- /dev/null
+++ b/sys-apps/flashrom/flashrom-0.9.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/flashrom-0.9.0.ebuild,v 1.1 2009/05/05 22:46:55 leio Exp $
+
+EAPI=2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips."
+HOMEPAGE="http://www.coreboot.org/Flashrom/"
+SRC_URI="http://qa.coreboot.org/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-apps/pciutils"
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+src_prepare()
+{
+ sed -i -e '/STRIP/d' \
+ -e "s:-Os -Wall -Werror:-Wall ${CFLAGS}:" \
+ -e "s:LDFLAGS = :LDFLAGS = ${LDFLAGS}:" "${S}/Makefile" || die "sed failed"
+}
+
+src_compile()
+{
+ emake -j1 CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dosbin flashrom
+ doman flashrom.8
+ dodoc README
+}
diff --git a/sys-apps/flashrom/metadata.xml b/sys-apps/flashrom/metadata.xml
new file mode 100644
index 000000000000..95ca007e5b2e
--- /dev/null
+++ b/sys-apps/flashrom/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>leio@gentoo.org</email>
+</maintainer>
+<maintainer>
+ <email>peter@stuge.se</email>
+ <description>Please CC on all bugs</description>
+</maintainer>
+<longdescription lang="en">
+flashrom is a utility for reading, writing, verifying and erasing flash ROM chips. It's often used to flash BIOS/coreboot/firmware images.
+
+Highlights of flashrom include:
+
+ * Supports parallel, LPC, FWH and SPI flash interfaces.
+ * Supports more than 150 flash chip families and half a dozen variants of each family.
+ * Flash chip package agnostic. DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40 and more have all been verified to work.
+ * Supports more than 75 different chipsets, some with multiple flash controllers.
+ * Features special mainboard enabling code for dozens of nonstandard mainboards.
+ * No physical access needed, root access is sufficient.
+ * No bootable floppy disk, bootable CD-ROM or other media needed.
+ * No keyboard or monitor needed. Simply reflash remotely via SSH.
+ * No instant reboot needed. Reflash your ROM in a running system, verify it, be happy. The new firmware will be present next time you boot.
+ * Crossflashing and hotflashing is possible as long as the flash chips are electrically and logically compatible (same protocol). Great for recovery.
+ * Scriptability. Reflash a whole pool of identical machines at the same time from the command line. It is recommended to check flashrom output and error codes.
+ * Speed. flashrom is much faster than most vendor flash tools.
+ * Supports Linux, FreeBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes.
+</longdescription>
+</pkgmetadata>