summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy <andy@mailbox.tu-berlin.de>2012-09-22 20:13:02 +0200
committerandy <andy@mailbox.tu-berlin.de>2012-09-22 20:13:02 +0200
commit977a678c580c652218b662c772ef1ef8f163e3d3 (patch)
tree19c58a6f9f29fe1c3ee78edbc11c082c293ee299
parentAdded mimeo to user overlay (diff)
downloadandy-977a678c580c652218b662c772ef1ef8f163e3d3.tar.gz
andy-977a678c580c652218b662c772ef1ef8f163e3d3.tar.bz2
andy-977a678c580c652218b662c772ef1ef8f163e3d3.zip
added Segger J-Link JTAG Adapter Tools
-rw-r--r--dev-embedded/jlink/Manifest4
-rwxr-xr-xdev-embedded/jlink/files/JLinkExe8
-rwxr-xr-xdev-embedded/jlink/files/JLinkGDBServer8
-rw-r--r--dev-embedded/jlink/jlink-4.50.9.ebuild61
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-embedded/jlink/Manifest b/dev-embedded/jlink/Manifest
new file mode 100644
index 0000000..3ef6b41
--- /dev/null
+++ b/dev-embedded/jlink/Manifest
@@ -0,0 +1,4 @@
+AUX JLinkExe 107 SHA256 f96b544f0eb1aca665e5df552f87aab0490397ecabf4e035be19e282eb275470 SHA512 d845f2734325c81ccaabf258388971ebd0df50244e8ded908f005a0ac042944d910c232fca6e9c045978837edab08acc10485bd852cf054260bf4856c7f333a9 WHIRLPOOL 5bd1f52f43c01ae04233df2cfcc59dd4bb30f1c4c82291d10bed9e836de34ef29410fc10ce31bf9066b6cec0fe6ba4a45fb9f0c483eb48224f1a306e6e185c62
+AUX JLinkGDBServer 113 SHA256 e3a2cd09cb3149e5cbb8ec38dd5995b67ced6dd92032530ed32e33a2667af4f0 SHA512 712eec1ef383964984b7817ff99aee8ee93f8ad755cef111fd73b4fffe823ac733f8d97bca1a41b7ab2228fe1f06e17f45161b7e0c6abeb49e423c9905c34a60 WHIRLPOOL 5d087429beb389a74a64a8942dfd3241581e044f5f2999079cecad2352db3632b6445d4f59f35f34de440989199bf37a52f750524c67588da042bab59bd50e89
+DIST JLink_Linux_V450i.tgz 2023433 SHA256 81fec304815e48ea9841c56302eb18cce3051729bb88810628efab929bfc216c SHA512 fa3227b0ad83833a5585a0d42d747d86d46f36a896819479b844ae003fb3f91c010cb19eccfb22ce71c901396dbccb355c6534ec9757fb74458a5802d817a301 WHIRLPOOL e33914fcc86b6c22a4136ee793b0ab6f8263b79ec6e1a616213ed2010d09183ff106f611ea63911f1455f1c5665316da195660422e588de9a3b8ac18620fdba7
+EBUILD jlink-4.50.9.ebuild 1446 SHA256 c18a6f5b3eaa800bffbd7322c1a64a0f32180ca4bcce6125f5d255565445449b SHA512 02a56a1a2729a5598a68a86c154b6f12719cd4e490fc07b9aebefb91824da48b6ab65791bd2ef59ef8b44d578f6a0019f8de1e9c47e8c0a3bf60d2b87d298ce3 WHIRLPOOL 9adce674cdec3a268d59f4a97ee2f55251210758505d3a51d4014b1e1afb064fea3acdf145298717aef2938ae69da8e73250243f9bfcfc275daf3131817626ca
diff --git a/dev-embedded/jlink/files/JLinkExe b/dev-embedded/jlink/files/JLinkExe
new file mode 100755
index 0000000..857a68d
--- /dev/null
+++ b/dev-embedded/jlink/files/JLinkExe
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+#
+# Run JLink_EXE
+#
+export LD_LIBRARY_PATH=/opt/jlink/lib:$LD_LIBRARY_PATH
+/opt/jlink/JLinkExe
+
diff --git a/dev-embedded/jlink/files/JLinkGDBServer b/dev-embedded/jlink/files/JLinkGDBServer
new file mode 100755
index 0000000..b238c96
--- /dev/null
+++ b/dev-embedded/jlink/files/JLinkGDBServer
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+#
+# Run JLink_EXE
+#
+export LD_LIBRARY_PATH=/opt/jlink/lib:$LD_LIBRARY_PATH
+/opt/jlink/JLinkGDBServer
+
diff --git a/dev-embedded/jlink/jlink-4.50.9.ebuild b/dev-embedded/jlink/jlink-4.50.9.ebuild
new file mode 100644
index 0000000..efd7faf
--- /dev/null
+++ b/dev-embedded/jlink/jlink-4.50.9.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit versionator
+
+MY_MINOR="$(get_version_component_range 3-3)"
+MY_SUBPV="$(printf \\$(printf '%03o' $((96+${MY_MINOR}))))"
+MINOR_CHAR_VERSION="${MY_SUBPV}"
+
+MY_PV="V$(get_major_version)$(get_version_component_range 2-2)${MINOR_CHAR_VERSION}"
+FILENAME="JLink_Linux_${MY_PV}"
+INSTALLDIR="/opt/${PN}"
+
+DESCRIPTION="J-Link gdb-server and commander for Segger J-Link jtag adapter"
+HOMEPAGE="http://www.segger.com/jlink-software.html"
+SRC_URI="${FILENAME}.tgz"
+
+LICENSE="J-Link EDU Terms of Use"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RESTRICT="fetch strip"
+DEPEND=""
+RDEPEND="${DEPEND}
+ amd64? ( app-emulation/emul-linux-x86-xlibs )"
+
+S=${WORKDIR}
+
+src_install() {
+ cd "${S}/${FILENAME}"
+
+ dodir ${INSTALLDIR}
+ dodir ${INSTALLDIR}/lib
+ dodir ${INSTALLDIR}/doc
+ dodir ${INSTALLDIR}/share
+
+ cp lib* "${D}/${INSTALLDIR}/lib" || die "dolib failed"
+
+ docinto ${INSTALLDIR}/doc
+ dodoc README || die "dodoc failed"
+
+ insinto ${INSTALLDIR}/share
+ doins -r Samples || die "doins failed"
+
+ exeinto ${INSTALLDIR}
+ doexe JLinkExe JLinkGDBServer || die "doexe failed"
+
+ insinto /lib/udev/rules.d/
+ doins 45-jlink.rules || die "doins udev rules failed"
+
+ dosym /lib32/libreadline.so.6 ${INSTALLDIR}/lib/libreadline.so.5 || die "dosym failed"
+
+ exeinto /usr/bin
+ doexe "${FILESDIR}/JLinkExe"
+ doexe "${FILESDIR}/JLinkGDBServer"
+}
+