summaryrefslogtreecommitdiff
path: root/pcr/riscv64-linux-gnu-gdb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/riscv64-linux-gnu-gdb/PKGBUILD')
-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