summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/flashrom')
-rw-r--r--sys-apps/flashrom/ChangeLog8
-rw-r--r--sys-apps/flashrom/flashrom-0.9.3.ebuild100
-rw-r--r--sys-apps/flashrom/metadata.xml20
3 files changed, 123 insertions, 5 deletions
diff --git a/sys-apps/flashrom/ChangeLog b/sys-apps/flashrom/ChangeLog
index 7bc66ed03f36..b48c53c226ef 100644
--- a/sys-apps/flashrom/ChangeLog
+++ b/sys-apps/flashrom/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/flashrom
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/ChangeLog,v 1.7 2010/07/10 15:13:44 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/ChangeLog,v 1.8 2010/12/03 17:25:28 idl0r Exp $
+
+*flashrom-0.9.3 (03 Dec 2010)
+
+ 03 Dec 2010; Christian Ruppert <idl0r@gentoo.org> +flashrom-0.9.3.ebuild,
+ metadata.xml:
+ Version bump to 0.9.3. Add new useflags/features.
10 Jul 2010; Christian Faulhammer <fauli@gentoo.org>
flashrom-0.9.2.ebuild:
diff --git a/sys-apps/flashrom/flashrom-0.9.3.ebuild b/sys-apps/flashrom/flashrom-0.9.3.ebuild
new file mode 100644
index 000000000000..9a1a2099a687
--- /dev/null
+++ b/sys-apps/flashrom/flashrom-0.9.3.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/flashrom-0.9.3.ebuild,v 1.1 2010/12/03 17:25:28 idl0r Exp $
+
+EAPI="3"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips"
+HOMEPAGE="http://flashrom.org"
+SRC_URI="http://qa.coreboot.org/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="atahpt bitbang_spi buspirate_spi dediprog drkaiser
+dummy ft2232_spi gfxnvidia +internal nic3com nicintel_spi nicnatsemi nicrealtek rayer_spi
+satasii serprog +wiki"
+
+COMMON_DEPEND="atahpt? ( sys-apps/pciutils )
+ dediprog? ( virtual/libusb:0 )
+ drkaiser? ( sys-apps/pciutils )
+ ft2232_spi? ( dev-embedded/libftdi )
+ gfxnvidia? ( sys-apps/pciutils )
+ internal? ( sys-apps/pciutils )
+ nic3com? ( sys-apps/pciutils )
+ nicintel_spi? ( sys-apps/pciutils )
+ nicnatsemi? ( sys-apps/pciutils )
+ nicrealtek? ( sys-apps/pciutils )
+ rayer_spi? ( sys-apps/pciutils )
+ satasii? ( sys-apps/pciutils )"
+RDEPEND="${COMMON_DEPEND}
+ internal? ( sys-apps/dmidecode )"
+DEPEND="${COMMON_DEPEND}
+ sys-apps/diffutils"
+
+_flashrom_enable() {
+ local flag=${1}
+ local macro=${2}
+
+ if use $flag; then
+ args="${args} ${macro}=yes"
+ else
+ args="${args} ${macro}=no"
+ fi
+}
+
+src_compile() {
+ local progs=0
+ local args=""
+
+ # Programmer
+ _flashrom_enable atahpt CONFIG_ATAHPT
+ _flashrom_enable bitbang_spi CONFIG_BITBANG_SPI
+ _flashrom_enable buspirate_spi CONFIG_BUSPIRATE_SPI
+ _flashrom_enable dediprog CONFIG_DEDIPROG
+ _flashrom_enable drkaiser CONFIG_DRKAISER
+ _flashrom_enable ft2232_spi CONFIG_FT2232_SPI
+ _flashrom_enable gfxnvidia CONFIG_GFXNVIDIA
+ _flashrom_enable nic3com CONFIG_NIC3COM
+ _flashrom_enable nicintel_spi CONFIG_NICINTEL_SPI
+ _flashrom_enable nicnatsemi CONFIG_NICNATSEMI
+ _flashrom_enable nicrealtek CONFIG_NICREALTEK
+ _flashrom_enable rayer_spi CONFIG_RAYER_SPI
+ _flashrom_enable satasii CONFIG_SATASII
+ _flashrom_enable serprog CONFIG_SERPROG
+
+ _flashrom_enable internal CONFIG_INTERNAL
+ _flashrom_enable dummy CONFIG_DUMMY
+ _flashrom_enable wiki CONFIG_PRINT_WIKI
+
+ # You have to specify at least one programmer, and if you specify more than
+ # one programmer you have to include either dummy or internal in the list.
+ for prog in $IUSE; do
+ prog=$(echo $prog | sed 's:^[+-]::')
+
+ [ "${prog}" = "internal" ] || [ "${prog}" = "dummy" ] || [ "${prog}" = "wiki" ] && continue
+
+ use $prog && progs=$((progs + 1))
+ done
+ if [ $progs -ne 1 ]; then
+ if ! use internal && ! use dummy; then
+ ewarn "You have to specify at least one programmer,"
+ ewarn "and if you specify more than one programmer you have to enable"
+ ewarn "either dummy or internal as well"
+ ewarn "'internal' will be the default now"
+ sleep 3
+ args="${args} CONFIG_INTERNAL=yes"
+ fi
+ fi
+
+ emake CC="$(tc-getCC)" ${args} || die
+}
+
+src_install() {
+ dosbin flashrom || die
+ doman flashrom.8
+ dodoc ChangeLog README
+}
diff --git a/sys-apps/flashrom/metadata.xml b/sys-apps/flashrom/metadata.xml
index 15aae63020e4..1353e7bc04b9 100644
--- a/sys-apps/flashrom/metadata.xml
+++ b/sys-apps/flashrom/metadata.xml
@@ -14,13 +14,25 @@
<description>Please CC on all bugs</description>
</maintainer>
<use>
+ <!-- flashrom 0.9.2 only -->
<flag name="buspiratespi">Enable Bus Pirate SPI programmer</flag>
+ <flag name="ftdi">Enable ftdi programmer, flashing through FTDI/SPI USB interface</flag>
+ <flag name="nvidia">Enable NVIDIA programmer</flag>
+
+ <flag name="atahpt">Highpoint (HPT) ATA/RAID controller support</flag>
+ <flag name="bitbang_spi">Bitbanging SPI infrastructure</flag>
+ <flag name="buspirate_spi">Enable Bus Pirate SPI programmer</flag>
+ <flag name="dediprog">Dediprog SF100 support</flag>
<flag name="drkaiser">Enable Dr. Kaiser programmer</flag>
<flag name="dummy">Enable dummy tracing</flag>
- <flag name="ftdi">Enable ftdi programmer, flashing through FTDI/SPI USB interface</flag>
+ <flag name="ft2232_spi">Enable ftdi programmer, flashing through FTDI/SPI USB interface</flag>
+ <flag name="gfxnvidia">Enable NVIDIA programmer</flag>
<flag name="internal">Enable internal/onboard support</flag>
<flag name="nic3com">Enable 3Com NIC programmer</flag>
- <flag name="nvidia">Enable NVIDIA programmer</flag>
+ <flag name="nicintel_spi">Support for SPI on Intel NICs</flag>
+ <flag name="nicnatsemi">Support for National Semiconductor NICs</flag>
+ <flag name="nicrealtek">Support for Realtek NICs</flag>
+ <flag name="rayer_spi">RayeR SPIPGM hardware support</flag>
<flag name="satasii">Enable programmer for SiI SATA controllers</flag>
<flag name="serprog">Enable Serial Flasher programmer</flag>
<flag name="wiki">Enable wiki informations, like supported devices etc.</flag>
@@ -28,7 +40,7 @@
<longdescription lang="en">
flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various programmer devices.
- * Supports more than 225 flash chips, 128 chipsets, 186 mainboards, 19 PCI devices, 3 USB devices and all external programmers which use the serprog protocol.
+ * Supports more than 261 flash chips, 152 chipsets, 259 mainboards, 43 PCI devices, 5 USB devices and various parallel/serial port-based programmers.
* Supports parallel, LPC, FWH and SPI flash interfaces and various chip packages (DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40, TSOP48, and more)
* No physical access needed, root access is sufficient.
* No bootable floppy disk, bootable CD-ROM or other media needed.
@@ -37,6 +49,6 @@ flashrom is a utility for identifying, reading, writing, verifying and erasing f
* 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 often much faster than most vendor flash tools.
- * Portability. Supports DOS, Linux, FreeBSD, NetBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes. Partial Windows support is available (full support as patch).
+ * Portability. Supports DOS, Linux, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes. Partial Windows support is available (full support as patch).
</longdescription>
</pkgmetadata>