aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authortjohann <thorsten.johannvorderbrueggen@t-online.de>2014-07-01 19:04:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-03 19:23:12 +0700
commit0a5a14fdb9f2ef2d77ada62162ef6ebc2ffe77eb (patch)
tree3d5191f540fe7b3cf4eb60d0edf0f4899f22dfc6 /development
parent11a3f04a17b767a995a96e48c28dc80595a73154 (diff)
development/openocd: Added (jtag interface).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/openocd/README9
-rw-r--r--development/openocd/openocd.SlackBuild86
-rw-r--r--development/openocd/openocd.info10
-rw-r--r--development/openocd/slack-desc19
4 files changed, 124 insertions, 0 deletions
diff --git a/development/openocd/README b/development/openocd/README
new file mode 100644
index 0000000000000..376dd703ad429
--- /dev/null
+++ b/development/openocd/README
@@ -0,0 +1,9 @@
+OpenOCD is an on-chip debugging, in-system programming and boundary-scan
+testing tool for ARM systems. The debugger uses an IEEE 1149-1
+compliant JTAG TAP bus master to access on-chip debug functionality available
+on ARM based microcontrollers or system-on-chip solutions.
+
+User interaction is realized through a telnet command line interface, a
+gdb (the GNU debugger) remote protocol server.
+
+OpenOCD supports many different types of JTAG interfaces/programmers.
diff --git a/development/openocd/openocd.SlackBuild b/development/openocd/openocd.SlackBuild
new file mode 100644
index 0000000000000..c75a62622a803
--- /dev/null
+++ b/development/openocd/openocd.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+# Slackware build script for openocd
+
+# Written by thorsten johannvorderbrueggen <thorsten.johannvorderbrueggen@t-online.de>
+
+PRGNAM=openocd
+VERSION=${VERSION:-0.8.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --infodir=/usr/info \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/openocd/openocd.info b/development/openocd/openocd.info
new file mode 100644
index 0000000000000..95d6cade9177b
--- /dev/null
+++ b/development/openocd/openocd.info
@@ -0,0 +1,10 @@
+PRGNAM="openocd"
+VERSION="0.8.0"
+HOMEPAGE="http://openocd.sourceforge.net/"
+DOWNLOAD="http://sourceforge.net/projects/openocd/files/openocd/0.8.0/openocd-0.8.0.tar.gz"
+MD5SUM="271086c0efe0c454db7ddb0f55ace218"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="tjohann"
+EMAIL="thorsten.johannvorderbrueggen@t-online.de"
diff --git a/development/openocd/slack-desc b/development/openocd/slack-desc
new file mode 100644
index 0000000000000..4eaad812d8137
--- /dev/null
+++ b/development/openocd/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+openocd: openocd (jtag interface)
+openocd:
+openocd: OpenOCD is an on-chip debugging, in-system programming and
+openocd: boundary-scan testing tool for ARM systems.
+openocd:
+openocd:
+openocd: Homepage: http://openocd.sourceforge.net/
+openocd:
+openocd:
+openocd:
+openocd: