summaryrefslogtreecommitdiff
path: root/community/arm-none-eabi-gdb
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-24 03:17:10 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-24 03:17:10 +0000
commit15cd70d8180c2a45287e4bd8ce01a2a9248e8d62 (patch)
tree3a87c7cdfa5736a8fe7515db195d2b8baf7857fd /community/arm-none-eabi-gdb
parent1d20e4962664ab152948a14b4320b12204a1053e (diff)
Mon Feb 24 03:14:11 UTC 2014
Diffstat (limited to 'community/arm-none-eabi-gdb')
-rw-r--r--community/arm-none-eabi-gdb/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/arm-none-eabi-gdb/PKGBUILD b/community/arm-none-eabi-gdb/PKGBUILD
new file mode 100644
index 000000000..b0d72d6b4
--- /dev/null
+++ b/community/arm-none-eabi-gdb/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 106105 2014-02-22 23:13:31Z anatolik $
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer@gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-gdb
+pkgver=7.7
+pkgrel=2
+pkgdesc='The GNU Debugger for the ARM EABI (bare-metal) target'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(xz ncurses expat python2)
+makedepends=(texinfo)
+optdepends=('openocd: for debugging JTAG targets'
+ 'stlink: for debugging over STLINK')
+options=(!emptydirs)
+source=(ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.bz2)
+sha256sums=('0404d1c6ee6b3ddd811722b5197944758d37b4591c216030effbac204f5a6c23')
+
+build() {
+ cd gdb-$pkgver
+
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+ ./configure --target=$_target \
+ --prefix=/usr \
+ --enable-multilib \
+ --enable-interwork \
+ --with-system-readline \
+ --disable-nls \
+ --with-python=/usr/bin/python2 \
+ --with-system-gdbinit=/etc/gdb/gdbinit
+ make
+}
+
+package() {
+ cd gdb-$pkgver
+
+ make DESTDIR="$pkgdir" install
+
+ # Following files conflict with 'gdb' package
+ rm -r "$pkgdir"/usr/share/info
+ # TOTHINK: we remove python module used for debugging. It means arm-*-gdb alone will not be able to debug and 'gdb' package
+ # should be installed. File a bug upstream - ask a separate python module folder for cross tools.
+ rm -r "$pkgdir"/usr/share/gdb
+ rm -r "$pkgdir"/usr/include/gdb
+ rm "$pkgdir"/usr/share/man/man1/gdb*
+ rm -r "$pkgdir"/usr/share/man/man5
+}