summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/riscv64-linux-gnu-binutils/PKGBUILD70
-rw-r--r--pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD107
-rw-r--r--pcr/riscv64-linux-gnu-gcc/PKGBUILD99
-rw-r--r--pcr/riscv64-linux-gnu-gdb/PKGBUILD64
-rw-r--r--pcr/riscv64-linux-gnu-glibc/PKGBUILD68
-rw-r--r--pcr/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD42
6 files changed, 0 insertions, 450 deletions
diff --git a/pcr/riscv64-linux-gnu-binutils/PKGBUILD b/pcr/riscv64-linux-gnu-binutils/PKGBUILD
deleted file mode 100644
index 4b80a4bfe..000000000
--- a/pcr/riscv64-linux-gnu-binutils/PKGBUILD
+++ /dev/null
@@ -1,70 +0,0 @@
-# $Id$
-# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-gnu-binutils
-
-_target=riscv64-linux-gnu
-pkgname=$_target-binutils
-pkgver=2.30
-pkgrel=1
-pkgdesc='A set of programs to assemble and manipulate binary and object files for the riscv64 target'
-arch=(x86_64)
-url='http://www.gnu.org/software/binutils/'
-license=(GPL)
-depends=(zlib)
-source=(ftp://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2{,.sig})
-sha1sums=('33d807f7fa680b00439eb5560acd0c2ef645e5f9'
- 'SKIP')
-validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com>
- '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc@redhat.com>
-
-prepare() {
- cd binutils-$pkgver
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
-}
-
-build() {
- cd binutils-$pkgver
-
- if [ "${CARCH}" != "i686" ];
- then
- # enabling gold linker at i686 makes the install fail
- enable_gold='--enable-gold'
- fi
-
- ./configure --target=$_target \
- --with-sysroot=/usr/$_target \
- --prefix=/usr \
- --disable-multilib \
- --with-gnu-as \
- --with-gnu-ld \
- --disable-nls \
- --enable-ld=default \
- $enable_gold \
- --enable-plugins \
- --enable-deterministic-archives
-
- make
-}
-
-check() {
- cd binutils-$pkgver
-
- # unset LDFLAGS as testsuite makes assumptions about which ones are active
- # do not abort on errors - manually check log files
- make -k LDFLAGS="" check || true
-}
-
-package() {
- cd binutils-$pkgver
-
- make DESTDIR="$pkgdir" install
-
- # Remove file conflicting with host binutils and manpages for MS Windows tools
- rm "$pkgdir"/usr/share/man/man1/$_target-{dlltool,nlmconv,windres,windmc}*
-
- # Remove info documents that conflict with host version
- rm -r "$pkgdir"/usr/share/info
-}
diff --git a/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD b/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD
deleted file mode 100644
index ed88ed36b..000000000
--- a/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD
+++ /dev/null
@@ -1,107 +0,0 @@
-# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-gnu-gcc
-# - this is only used to bootstrap the toolchain, since you need gcc to compile
-# glibc, and glibc to compile gcc, we have this package as a 'stage1' gcc build
-# to create the initial glibc and the 'real' gcc
-
-_target=riscv64-linux-gnu
-pkgname=$_target-gcc-bootstrap
-pkgver=7.3.1
-_islver=0.18
-pkgrel=2
-_snapshot=7-20180215
-pkgdesc='The GNU Compiler Collection - cross compiler for riscv64 target - bootstrap version. only used to build initial glibc and compiler'
-arch=(x86_64)
-url='http://gcc.gnu.org/'
-license=(GPL LGPL FDL)
-depends=($_target-binutils libmpc zlib)
-makedepends=(gmp mpfr)
-options=(!emptydirs !strip)
-provides=(${pkgname%-bootstrap})
-conflicts=(${pkgname%-bootstrap})
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
- http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
-sha256sums=('bb276f6fce4822fc0806d1e87d21245854d1e41f2a7027c7288375084176c679'
- '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b')
-
-if [ -n "$_snapshot" ]; then
- _basedir=gcc-$_snapshot
-else
- _basedir=gcc-$pkgver
-fi
-
-prepare() {
- cd $_basedir
-
- # link isl for in-tree builds
- ln -sf ../isl-$_islver isl
-
- echo $pkgver > gcc/BASE-VER
-
- # Do not run fixincludes
- sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
-
- # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_basedir/{libiberty,gcc}/configure
-
- rm -rf $srcdir/gcc-build
- mkdir $srcdir/gcc-build
-}
-
-build() {
- cd gcc-build
-
- # using -pipe causes spurious test-suite failures
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
- CFLAGS=${CFLAGS/-pipe/}
- CXXFLAGS=${CXXFLAGS/-pipe/}
-
- $srcdir/$_basedir/configure \
- --prefix=/usr \
- --program-prefix=$_target- \
- --with-local-prefix=/usr/$_target \
- --with-sysroot=/usr/$_target \
- --with-build-sysroot=/usr/$_target \
- --libdir=/usr/lib --libexecdir=/usr/lib \
- --target=$_target --host=$CHOST --build=$CHOST \
- --with-newlib \
- --without-headers \
- --disable-shared \
- --disable-threads \
- --with-system-zlib \
- --enable-tls \
- --enable-languages=c \
- --disable-libatomic \
- --disable-libmudflap \
- --disable-libssp \
- --disable-libquadmath \
- --disable-libgomp \
- --disable-nls \
- --disable-bootstrap \
- --enable-checking=release \
- --disable-multilib
-
- make inhibit-libc=true all-gcc
- make inhibit-libc=true all-target-libgcc
-}
-
-package() {
- cd gcc-build
-
- make DESTDIR="$pkgdir" inhibit-libc=true install-gcc
- make DESTDIR="$pkgdir" inhibit-libc=true install-target-libgcc
-
- # strip target binaries
- find "$pkgdir"/usr/lib/gcc/$_target/ -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
-
- # strip host binaries
- find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc/$_target/ -type f -and \( -executable \) -exec strip '{}' \;
-
- # Remove files that conflict with host gcc package
- rm -r "$pkgdir"/usr/share/man/man7
- rm -r "$pkgdir"/usr/share/info
-}
diff --git a/pcr/riscv64-linux-gnu-gcc/PKGBUILD b/pcr/riscv64-linux-gnu-gcc/PKGBUILD
deleted file mode 100644
index ff9635466..000000000
--- a/pcr/riscv64-linux-gnu-gcc/PKGBUILD
+++ /dev/null
@@ -1,99 +0,0 @@
-# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-gnu-gcc
-
-_target=riscv64-linux-gnu
-pkgname=$_target-gcc
-pkgver=7.3.0
-_islver=0.18
-pkgrel=2
-_snapshot=7-20180215
-pkgdesc='The GNU Compiler Collection - cross compiler for riscv64 target'
-arch=(x86_64)
-url='http://gcc.gnu.org/'
-license=(GPL LGPL FDL)
-depends=($_target-binutils $_target-glibc libmpc zlib)
-makedepends=(gmp mpfr)
-options=(!emptydirs !strip staticlibs)
-conflicts=($pkgname-bootstrap)
-replaces=($pkgname-bootstrap)
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
- http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
-sha256sums=('bb276f6fce4822fc0806d1e87d21245854d1e41f2a7027c7288375084176c679'
- '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b')
-
-if [ -n "$_snapshot" ]; then
- _basedir=gcc-$_snapshot
-else
- _basedir=gcc-$pkgver
-fi
-
-prepare() {
- cd $_basedir
-
- # link isl for in-tree builds
- ln -sf ../isl-$_islver isl
-
- echo $pkgver > gcc/BASE-VER
-
- # Do not run fixincludes
- sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
-
- # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_basedir/{libiberty,gcc}/configure
-
- rm -rf $srcdir/gcc-build
- mkdir $srcdir/gcc-build
-}
-
-build() {
- cd gcc-build
-
- # using -pipe causes spurious test-suite failures
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
- CFLAGS=${CFLAGS/-pipe/}
- CXXFLAGS=${CXXFLAGS/-pipe/}
-
- $srcdir/$_basedir/configure \
- --prefix=/usr \
- --program-prefix=$_target- \
- --with-local-prefix=/usr/$_target \
- --with-sysroot=/usr/$_target \
- --with-build-sysroot=/usr/$_target \
- --libdir=/usr/lib --libexecdir=/usr/lib \
- --target=$_target --host=$CHOST --build=$CHOST \
- --with-system-zlib \
- --enable-shared \
- --enable-tls \
- --enable-languages=c,c++,fortran \
- --disable-libmudflap \
- --disable-libssp \
- --disable-libquadmath \
- --disable-nls \
- --disable-bootstrap \
- --enable-checking=release \
- --disable-multilib
-
- make
-}
-
-package() {
- cd gcc-build
-
- make DESTDIR="$pkgdir" install
-
- # strip target binaries
- find "$pkgdir"/usr/lib/gcc/$_target/ "$pkgdir"/usr/$_target/lib -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
-
- # strip host binaries
- find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc/$_target/ -type f -and \( -executable \) -exec strip '{}' \;
-
- # Remove files that conflict with host gcc package
- rm -r "$pkgdir"/usr/lib/libcc1.so{,.0,.0.0.0}
- rm -r "$pkgdir"/usr/share/man/man7
- rm -r "$pkgdir"/usr/share/info
- rm -r "$pkgdir"/usr/share/gcc-$pkgver
-}
diff --git a/pcr/riscv64-linux-gnu-gdb/PKGBUILD b/pcr/riscv64-linux-gnu-gdb/PKGBUILD
deleted file mode 100644
index b238605a8..000000000
--- a/pcr/riscv64-linux-gnu-gdb/PKGBUILD
+++ /dev/null
@@ -1,64 +0,0 @@
-# $Id$
-# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-gnu-gdb
-
-_target=riscv64-linux-gnu
-pkgname=$_target-gdb
-_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-binutils-gdb'
-license=(GPL3)
-depends=(xz ncurses expat python guile2.0 gdb-common mpfr)
-makedepends=(git)
-options=(!emptydirs)
-source=("git+https://github.com/riscv/riscv-binutils-gdb#branch=riscv-next")
-sha256sums=('SKIP')
-
-pkgver() {
- cd "${srcdir}/${_gitname}"
-
- cat gdb/version.in | sed "s/\.DATE-git/_$(date +%Y%m%d)/"
-}
-
-prepare() {
- cd "${srcdir}/${_gitname}"
-
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
-}
-
-build() {
- cd "${srcdir}/${_gitname}"
-
- ./configure \
- --target=$_target \
- --with-arch=rv64gc \
- --with-abi=lp64d \
- --prefix=/usr \
- --enable-languages=c,c++ \
- --disable-multilib \
- --with-system-readline \
- --disable-nls \
- --with-python=/usr/bin/python3 \
- --with-guile=guile-2.0 \
- --with-system-gdbinit=/etc/gdb/gdbinit
-
- make all-gdb
-}
-
-package() {
- cd "${srcdir}/${_gitname}"
-
- make DESTDIR="$pkgdir" install-gdb
-
- # Following files conflict with 'gdb' package
- rm -r "$pkgdir"/usr/share/info
- rm -r "$pkgdir"/usr/share/gdb
- rm -r "$pkgdir"/usr/include/gdb
- rm -r "$pkgdir"/usr/share/man/man5
-}
diff --git a/pcr/riscv64-linux-gnu-glibc/PKGBUILD b/pcr/riscv64-linux-gnu-glibc/PKGBUILD
deleted file mode 100644
index 5e412d21f..000000000
--- a/pcr/riscv64-linux-gnu-glibc/PKGBUILD
+++ /dev/null
@@ -1,68 +0,0 @@
-# Maintainer (Arch): Anatol Pomozov
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-gnu-glibc
-
-_target=riscv64-linux-gnu
-pkgname=$_target-glibc
-pkgver=2.27
-pkgrel=1
-_commit=be176490b818b65b5162c332eb6b581690b16e5c
-pkgdesc="GNU C Library riscv64 target"
-arch=('x86_64')
-url='http://www.gnu.org/software/libc/'
-license=('GPL' 'LGPL')
-depends=($_target-gcc $_target-linux-api-headers)
-options=(!buildflags !strip staticlibs)
-source=(http://ftp.gnu.org/gnu/libc/glibc-$pkgver.tar.xz{,.sig})
-sha1sums=('1f7a9c43026484943ef7cf6885f2176a2bc1e093'
- 'SKIP')
-validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8) # "Carlos O'Donell <carlos@systemhalted.org>"
-
-prepare() {
- mkdir -p glibc-build
-}
-
-build() {
- cd glibc-build
-
- echo "slibdir=/lib" >> configparms
- echo "rtlddir=/lib" >> configparms
- echo "sbindir=/bin" >> configparms
- echo "rootsbindir=/bin" >> configparms
-
- unset LD_LIBRARY_PATH
-
- export BUILD_CC=gcc
- export CC=${_target}-gcc
- export CXX=${_target}-g++
- export AR=${_target}-ar
- export RANLIB=${_target}-ranlib
-
- ../glibc-$pkgver/configure \
- --prefix=/usr \
- --target=$_target \
- --host=$_target \
- --build=$CHOST \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --with-headers=/usr/$_target/include \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-add-ons \
- --enable-obsolete-rpc \
- --enable-kernel=3.0.0 \
- --enable-bind-now \
- --disable-profile \
- --enable-shared \
- --disable-multilib \
- --disable-werror
-
- make
-}
-
-package() {
- cd glibc-build
-
- make install_root=$pkgdir/usr/$_target install
-}
diff --git a/pcr/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD b/pcr/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD
deleted file mode 100644
index df6068925..000000000
--- a/pcr/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# Maintainer: David P. <megver83@parabola.nu>
-# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
-# Contributor: Andreas Grapentin <andreas@grapentin.org>
-
-# parabola changes and rationale:
-# - adapted from aarch64-linux-libre-gnu-binutils
-
-_target_arch=riscv
-_target=riscv64-linux-gnu
-pkgname=$_target-linux-libre-api-headers
-_pkgver=4.15-gnu
-
-_archpkgver=${_pkgver%-*}
-pkgver=${_pkgver//-/_}
-pkgrel=1
-pkgdesc="Kernel headers sanitized for use in userspace ($_target)"
-arch=(any)
-url='https://linux-libre.fsfla.org'
-license=(GPL2)
-provides=("$_target-linux-api-headers=${_archpkgver}")
-conflicts=("$_target-linux-api-headers")
-replaces=("$_target-linux-api-headers")
-source=("https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz"{,.sign})
-sha512sums=('a55cc663c6fb1e1cfa7905282b368b5d5888bc2398f0acf37e5bb9a232ded04fd566b1980e654da26aaec005332e458581495184d6bd4cec669181085d4d78a5'
- 'SKIP')
-validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
-
-build() {
- cd linux-$_archpkgver
-
- make ARCH=$_target_arch mrproper
- make ARCH=$_target_arch headers_check
-}
-
-package() {
- cd linux-$_archpkgver
-
- make INSTALL_HDR_PATH="$pkgdir/usr/$_target/" ARCH=$_target_arch V=0 headers_install
-
- # clean-up unnecessary files generated during install
- find "$pkgdir" \( -name .install -or -name ..install.cmd \) -delete
-}