summaryrefslogtreecommitdiff
path: root/dev-embedded/jtag
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/jtag')
-rw-r--r--dev-embedded/jtag/Manifest6
-rw-r--r--dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff34
-rw-r--r--dev-embedded/jtag/jtag-0.5.1-r1.ebuild23
-rw-r--r--dev-embedded/jtag/metadata.xml11
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-embedded/jtag/Manifest b/dev-embedded/jtag/Manifest
new file mode 100644
index 000000000000..6dfbe800d84b
--- /dev/null
+++ b/dev-embedded/jtag/Manifest
@@ -0,0 +1,6 @@
+AUX jtag-0.5.1-no-erase-overshoot.diff 1132 SHA256 ce53cef506170f3b2dcd7c553da9b5e32c69383d187c747ef4d8e17483cc3af9 SHA512 f687df422df837f484f31ddd85c43969ae68c274e87db2ad3184f81aaf53c4ae4c1826f6fe83cc2cd657385270106e432288262d50454cb4fbe68db1dae3cee2 WHIRLPOOL 732c3dc2420f2531a5215fe53b1d97fd8098174e330aa596c46779d3d70779968c2b344ddb25edee04f378d2d0049281448a74d9a6c4ebfd7b18b150004c178a
+DIST jtag-0.5.1.tar.bz2 314857 SHA256 4036f97ef693e9cbe6f99137ad6920b2679ba97d58cf5e78442a4d60308563b6 SHA512 f8c6000595929f9b3e20dd08a7c665b3c960dfa8b1c4d7f1c591692621ffaffceb5e844b3eb75a60dcfa870a38411604fe07564dc2ec48d6a5df0dbba6e960b6 WHIRLPOOL 8c1b718dc6b7670dfb60e47be6935a47707840da5b39c3334361e79a1f2ec920cc330ee7b478be1083ebb8da09e4c67fafb95c83672f3179f968cea20ded4fdc
+EBUILD jtag-0.5.1-r1.ebuild 528 SHA256 adbfad7a910768c126b2457485b6544b945275d2a2907ed02e85edac8e0247cb SHA512 52aeca49fddff6de0733189b61e4434708cc18fbf3835cb9f08e1c4d373d784bb8a189846755f89ec8185afd35a7e0a4424a1af90b04858eb77a33e90ab7e41c WHIRLPOOL ef451764ed63d8fe1f770a913dbe4f0360b5c31d1482c2f8c3ad0349619ef1b5f8aeca4b1876bd97b3afe124774b65a73aab58106c5a7c0c0ccda0d568ef93c7
+MISC ChangeLog 2473 SHA256 3ea4f9b0fab4917720689b51a599bed0ac049afbc74165623b07d5e5d83b4e27 SHA512 63bc80c7be8e0f4fb7ece35fd65efd2b7c6a7b4f152fbf8d4b1ee45a775128355b6c060d83cf4178fdb001d7a5aa975a130b838c30e83de7568f1410f63ac9f3 WHIRLPOOL c4875d888dff7d0e62f5a11d7ba4cfc375e02b41108287d0f931d0959cbbbefcf3f5f5afcddabd85b89935f71bceac9dbe761e8b4109773d3a2a41c10401b866
+MISC ChangeLog-2015 1713 SHA256 af0d7e2b7c37f2e24874cf3b5c1d93f4ada0e8385069e8a3e03674d49ce1792c SHA512 48bf4ce1f6c84b946064d6dec69d94a14431aef9132e97e6a21dd4bedb8428de4afa6eb3ac5569e1acf70c147dc261d0e02f409c4d4702baddd051990a3e1b4c WHIRLPOOL c8e13f49ab4d849a4789dbfc695e0d74a3049e5b1b7ddf73109cc7d5b942d3472a2e62c9838b5452e6c54e9a87728d208fc68f2ff9273a68699135f2012bdf71
+MISC metadata.xml 330 SHA256 25f25eb9e5a53878144cb7957f43904be9f812f4e374c0d2abdfd4452bfbdb6d SHA512 778e63c367986779da9a1fce3c07983721e8c3cc961ef6bbfdd717b61487ab8d7e4e135a8b58103c1b5f5b3b10f9b506bf8b45e0b9504da29714fe6601f7a65b WHIRLPOOL 586a0f608ff474b54823f44928838e428f0c67f838781d7bb182416ded95a376991155ae4ef550997eaecbba1fd615a27f4e8f2fa0b488ed44dcacf3cc9d8c54
diff --git a/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff b/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff
new file mode 100644
index 000000000000..a79450d2bf58
--- /dev/null
+++ b/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff
@@ -0,0 +1,34 @@
+*** jtag-0.5.1/src/flash.c.orig Wed Jun 23 14:02:44 2004
+--- jtag-0.5.1/src/flash.c Wed Jun 23 14:03:39 2004
+***************
+*** 293,306 ****
+ int bc = 0, bn = 0;
+ int block_no = find_block( cfi, adr );
+
+! if (!erased[block_no]) {
+ flash_driver->unlock_block( cfi_array, adr );
+ printf( _("\nblock %d unlocked\n"), block_no );
+ printf( _("erasing block %d: %d\n"), block_no, flash_driver->erase_block( cfi_array, adr ) );
+ erased[block_no] = 1;
+ }
+
+- bn = fread( b, 1, BSIZE, f );
+ for (bc = 0; bc < bn; bc += flash_driver->bus_width) {
+ int j;
+ printf( _("addr: 0x%08X"), adr );
+--- 293,307 ----
+ int bc = 0, bn = 0;
+ int block_no = find_block( cfi, adr );
+
+! bn = fread( b, 1, BSIZE, f );
+!
+! if (bn && !erased[block_no]) {
+ flash_driver->unlock_block( cfi_array, adr );
+ printf( _("\nblock %d unlocked\n"), block_no );
+ printf( _("erasing block %d: %d\n"), block_no, flash_driver->erase_block( cfi_array, adr ) );
+ erased[block_no] = 1;
+ }
+
+ for (bc = 0; bc < bn; bc += flash_driver->bus_width) {
+ int j;
+ printf( _("addr: 0x%08X"), adr );
diff --git a/dev-embedded/jtag/jtag-0.5.1-r1.ebuild b/dev-embedded/jtag/jtag-0.5.1-r1.ebuild
new file mode 100644
index 000000000000..d6ffcb47a471
--- /dev/null
+++ b/dev-embedded/jtag/jtag-0.5.1-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Tool for working with JTAG-aware devices and boards through JTAG adapter"
+HOMEPAGE="http://openwince.sourceforge.net/jtag/"
+SRC_URI="mirror://sourceforge/openwince/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 sparc ~ppc"
+IUSE=""
+
+DEPEND="dev-embedded/include"
+RDEPEND="${DEPEND}
+ !dev-embedded/urjtag"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-erase-overshoot.diff
+}
diff --git a/dev-embedded/jtag/metadata.xml b/dev-embedded/jtag/metadata.xml
new file mode 100644
index 000000000000..57324191fdc5
--- /dev/null
+++ b/dev-embedded/jtag/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">openwince</remote-id>
+ </upstream>
+</pkgmetadata>