summaryrefslogtreecommitdiff
path: root/dev-embedded/jtag
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/jtag')
-rw-r--r--dev-embedded/jtag/Manifest4
-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, 72 insertions, 0 deletions
diff --git a/dev-embedded/jtag/Manifest b/dev-embedded/jtag/Manifest
new file mode 100644
index 000000000000..f6a90cf45851
--- /dev/null
+++ b/dev-embedded/jtag/Manifest
@@ -0,0 +1,4 @@
+AUX jtag-0.5.1-no-erase-overshoot.diff 1132 BLAKE2B 57c61be2101eec9ff2e67fb0155637fc62a83f631b9daf569ea0b4c094fa7e0fd1c5a38abda50742c335603a75a87eb82ceb805c5b9abeb707c2bf7428638a98 SHA512 f687df422df837f484f31ddd85c43969ae68c274e87db2ad3184f81aaf53c4ae4c1826f6fe83cc2cd657385270106e432288262d50454cb4fbe68db1dae3cee2
+DIST jtag-0.5.1.tar.bz2 314857 BLAKE2B 233daafbe7dbfd5948d0877fce6797f2e14c24edd363c42fe5f2bcba7133f12f9d83d82b27a2067b3deaf0f46e26bb7deb32e179709551468bcbe84810625151 SHA512 f8c6000595929f9b3e20dd08a7c665b3c960dfa8b1c4d7f1c591692621ffaffceb5e844b3eb75a60dcfa870a38411604fe07564dc2ec48d6a5df0dbba6e960b6
+EBUILD jtag-0.5.1-r1.ebuild 528 BLAKE2B 01609a113676a82bb14532e49417535d5786978ae4a03269d2850910e4293668708ad4a316bd1e5af7b294731f9f36eaf60821e15b2bdf6c19f188f16f6f988e SHA512 52aeca49fddff6de0733189b61e4434708cc18fbf3835cb9f08e1c4d373d784bb8a189846755f89ec8185afd35a7e0a4424a1af90b04858eb77a33e90ab7e41c
+MISC metadata.xml 330 BLAKE2B ebbc7d714b79e3ac894b34044d3ddaa7e224963547a76443734cf63dbc479c82c261c6bcafcd81a55a464cfb4362186de6b368d75006181b60af97745fed4dcd SHA512 778e63c367986779da9a1fce3c07983721e8c3cc961ef6bbfdd717b61487ab8d7e4e135a8b58103c1b5f5b3b10f9b506bf8b45e0b9504da29714fe6601f7a65b
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>