[arch-commits] Commit in arm-none-eabi-gdb/repos (4 files)

Anatol Pomozov anatolik at archlinux.org
Tue Nov 4 19:12:04 UTC 2014


    Date: Tuesday, November 4, 2014 @ 20:12:04
  Author: anatolik
Revision: 121882

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  arm-none-eabi-gdb/repos/community-testing-i686/
  arm-none-eabi-gdb/repos/community-testing-i686/PKGBUILD
    (from rev 121881, arm-none-eabi-gdb/trunk/PKGBUILD)
  arm-none-eabi-gdb/repos/community-testing-x86_64/
  arm-none-eabi-gdb/repos/community-testing-x86_64/PKGBUILD
    (from rev 121881, arm-none-eabi-gdb/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   50 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Copied: arm-none-eabi-gdb/repos/community-testing-i686/PKGBUILD (from rev 121881, arm-none-eabi-gdb/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2014-11-04 19:12:04 UTC (rev 121882)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-gdb
+pkgver=7.8.1
+pkgrel=1
+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 guile)
+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.xz)
+sha256sums=('497722b58386f4428c3474281eb3ef1c872404998b6ace907edb3bba1fabdc35')
+
+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
+}

Copied: arm-none-eabi-gdb/repos/community-testing-x86_64/PKGBUILD (from rev 121881, arm-none-eabi-gdb/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2014-11-04 19:12:04 UTC (rev 121882)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-gdb
+pkgver=7.8.1
+pkgrel=1
+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 guile)
+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.xz)
+sha256sums=('497722b58386f4428c3474281eb3ef1c872404998b6ace907edb3bba1fabdc35')
+
+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
+}



More information about the arch-commits mailing list