summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-27 14:21:03 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-27 14:21:03 +0100
commit404c59458faa75631d98bc1a3d13935c10d64396 (patch)
tree7066fc21e2be9c35eb274d81cc5c6c00173cc42a
parentc66b9b671c32cd49651a07bf78bdf915871379a1 (diff)
downloadabslibre-404c59458faa75631d98bc1a3d13935c10d64396.tar.gz
abslibre-404c59458faa75631d98bc1a3d13935c10d64396.tar.bz2
abslibre-404c59458faa75631d98bc1a3d13935c10d64396.zip
pcr/riscv64-linux-gnu-gdb: updated to 8.0.50_20180227
-rw-r--r--pcr/riscv64-linux-gnu-gdb/PKGBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/pcr/riscv64-linux-gnu-gdb/PKGBUILD b/pcr/riscv64-linux-gnu-gdb/PKGBUILD
index 623a680da..b238605a8 100644
--- a/pcr/riscv64-linux-gnu-gdb/PKGBUILD
+++ b/pcr/riscv64-linux-gnu-gdb/PKGBUILD
@@ -7,36 +7,38 @@
_target=riscv64-linux-gnu
pkgname=$_target-gdb
-_snapshot=20171231
-pkgver=8.0.v$_snapshot
+_gitname=riscv-binutils-gdb
+pkgver=8.0.50_20180227
pkgrel=1
pkgdesc='The GNU Debugger for the riscv64 target'
arch=(x86_64)
-url='https://github.com/riscv/riscv-gnu-toolchain'
+url='https://github.com/riscv/riscv-binutils-gdb'
license=(GPL3)
depends=(xz ncurses expat python guile2.0 gdb-common mpfr)
makedepends=(git)
options=(!emptydirs)
-source=("$_target::git+https://github.com/riscv/riscv-gnu-toolchain#tag=v$_snapshot")
+source=("git+https://github.com/riscv/riscv-binutils-gdb#branch=riscv-next")
sha256sums=('SKIP')
-prepare() {
- cd "$srcdir/$_target"
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+
+ cat gdb/version.in | sed "s/\.DATE-git/_$(date +%Y%m%d)/"
+}
- # fix submodule repo paths
- sed -i 's#\.\.#git://github.com/riscv#' .gitmodules
- # update submodule
- git submodule update --init riscv-binutils-gdb
+prepare() {
+ cd "${srcdir}/${_gitname}"
- cd riscv-binutils-gdb
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}
build() {
- cd "$srcdir/$_target/riscv-binutils-gdb"
+ cd "${srcdir}/${_gitname}"
./configure \
--target=$_target \
+ --with-arch=rv64gc \
+ --with-abi=lp64d \
--prefix=/usr \
--enable-languages=c,c++ \
--disable-multilib \
@@ -50,7 +52,7 @@ build() {
}
package() {
- cd "$srcdir/$_target/riscv-binutils-gdb"
+ cd "${srcdir}/${_gitname}"
make DESTDIR="$pkgdir" install-gdb