summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-08-20 19:40:21 +0000
committerMike Frysinger <vapier@gentoo.org>2011-08-20 19:40:21 +0000
commit34ed1f5446dacc9fa90aa224508dd502bd912cdf (patch)
treee38eb54848b264e8c07c1877f0344fc8895a42ea /dev-embedded
parentAvoid executing git #379999 by Agostino Sarubbo. (diff)
downloadgentoo-2-34ed1f5446dacc9fa90aa224508dd502bd912cdf.tar.gz
gentoo-2-34ed1f5446dacc9fa90aa224508dd502bd912cdf.tar.bz2
gentoo-2-34ed1f5446dacc9fa90aa224508dd502bd912cdf.zip
Add patch by Robert Pearce to support newer FTDI chips #376117.
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/ftdi_eeprom/ChangeLog10
-rw-r--r--dev-embedded/ftdi_eeprom/files/ftdi_eeprom-0.3-newer-chips.patch23
-rw-r--r--dev-embedded/ftdi_eeprom/ftdi_eeprom-0.3-r1.ebuild28
3 files changed, 59 insertions, 2 deletions
diff --git a/dev-embedded/ftdi_eeprom/ChangeLog b/dev-embedded/ftdi_eeprom/ChangeLog
index b8cd8db3c052..ae61e707253a 100644
--- a/dev-embedded/ftdi_eeprom/ChangeLog
+++ b/dev-embedded/ftdi_eeprom/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-embedded/ftdi_eeprom
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ftdi_eeprom/ChangeLog,v 1.4 2010/06/22 22:19:02 vapier Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ftdi_eeprom/ChangeLog,v 1.5 2011/08/20 19:40:21 vapier Exp $
+
+*ftdi_eeprom-0.3-r1 (20 Aug 2011)
+
+ 20 Aug 2011; Mike Frysinger <vapier@gentoo.org> +ftdi_eeprom-0.3-r1.ebuild,
+ +files/ftdi_eeprom-0.3-newer-chips.patch:
+ Add patch by Robert Pearce to support newer FTDI chips #376117.
*ftdi_eeprom-0.3 (22 Jun 2010)
diff --git a/dev-embedded/ftdi_eeprom/files/ftdi_eeprom-0.3-newer-chips.patch b/dev-embedded/ftdi_eeprom/files/ftdi_eeprom-0.3-newer-chips.patch
new file mode 100644
index 000000000000..7a678cd4bce2
--- /dev/null
+++ b/dev-embedded/ftdi_eeprom/files/ftdi_eeprom-0.3-newer-chips.patch
@@ -0,0 +1,23 @@
+latest upstream vcs tree supports this stuff in a diff way
+
+https://bugs.gentoo.org/376117
+
+patch by Robert Pearce
+
+--- ftdi_eeprom-0.2/src/main.c
++++ ftdi_eeprom-0.2/src/main.c
+@@ -131,9 +131,13 @@
+
+ if (i != 0) {
+ printf("Unable to find FTDI devices under given vendor/product id: 0x%X/0x%X\n", eeprom.vendor_id, eeprom.product_id);
+- printf("Retrying with default FTDI id.\n");
++ printf("Retrying with default FTDI ids.\n");
+
+ i = ftdi_usb_open(&ftdi, 0x0403, 0x6001);
++ if (i != 0)
++ i = ftdi_usb_open(&ftdi, 0x0403, 0x6010);
++ if (i != 0)
++ i = ftdi_usb_open(&ftdi, 0x0403, 0x6011);
+ if (i != 0) {
+ printf("Sorry, unable to find FTDI USB chip\n");
+ exit (-1);
diff --git a/dev-embedded/ftdi_eeprom/ftdi_eeprom-0.3-r1.ebuild b/dev-embedded/ftdi_eeprom/ftdi_eeprom-0.3-r1.ebuild
new file mode 100644
index 000000000000..d98e7253ee31
--- /dev/null
+++ b/dev-embedded/ftdi_eeprom/ftdi_eeprom-0.3-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ftdi_eeprom/ftdi_eeprom-0.3-r1.ebuild,v 1.1 2011/08/20 19:40:21 vapier Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Utility to program external EEPROM for FTDI USB chips"
+HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/"
+SRC_URI="http://www.intra2net.com/en/developer/libftdi/download/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-embedded/libftdi
+ dev-libs/confuse"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-newer-chips.patch #376117
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog README src/example.conf
+}