diff --git a/riscv32-elf-binutils/.SRCINFO b/riscv32-elf-binutils/.SRCINFO deleted file mode 100644 index 5c098af..0000000 --- a/riscv32-elf-binutils/.SRCINFO +++ /dev/null @@ -1,16 +0,0 @@ -pkgbase = riscv32-elf-binutils - pkgdesc = A set of programs to assemble and manipulate binary and object files for the RISCV32 (bare-metal) target - pkgver = 2.38 - pkgrel = 2 - url = https://www.gnu.org/software/binutils/ - arch = x86_64 - license = GPL - depends = zlib - source = https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.bz2 - source = https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.bz2.sig - validpgpkeys = EAF1C276A747E9ED86210CBAC3126D3B4AE55E93 - validpgpkeys = 3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F - sha512sums = 7690b4158bd6587a85c6b98903980b9ac6f16b47f7fd1e60986b0a70388bedcfdc05d75597aa49c81fec1609ce24bed6c26583f76fd2471a9d63394fd9798afc - sha512sums = SKIP - -pkgname = riscv32-elf-binutils diff --git a/riscv32-elf-binutils/.gitignore b/riscv32-elf-binutils/.gitignore deleted file mode 100644 index 32c5bf8..0000000 --- a/riscv32-elf-binutils/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -src -*.bz2 -*.sig diff --git a/riscv32-elf-binutils/PKGBUILD b/riscv32-elf-binutils/PKGBUILD deleted file mode 100644 index b7d86da..0000000 --- a/riscv32-elf-binutils/PKGBUILD +++ /dev/null @@ -1,64 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) -# Contributor: Anatol Pomozov - -_target=riscv32-elf -pkgname=$_target-binutils -pkgver=2.38 -pkgrel=2 -pkgdesc='A set of programs to assemble and manipulate binary and object files for the RISCV32 (bare-metal) target' -arch=(x86_64) -url='https://www.gnu.org/software/binutils/' -license=(GPL) -depends=(zlib) -source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2"{,.sig}) -sha512sums=('7690b4158bd6587a85c6b98903980b9ac6f16b47f7fd1e60986b0a70388bedcfdc05d75597aa49c81fec1609ce24bed6c26583f76fd2471a9d63394fd9798afc' - 'SKIP') -validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold - '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) - -prepare() { - cd binutils-$pkgver - - sed -i '/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/' libiberty/configure -} - -build() { - cd binutils-$pkgver - - ./configure --target=$_target \ - --with-sysroot=/usr/$_target \ - --prefix=/usr \ - --enable-multilib \ - --enable-interwork \ - --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 LDFLAGS="" -k 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,windres,windmc}* - rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so - - # Remove info documents that conflict with host version - rm -r "$pkgdir"/usr/share/info -} - diff --git a/riscv32-elf-gcc/.SRCINFO b/riscv32-elf-gcc/.SRCINFO deleted file mode 100644 index 6508f48..0000000 --- a/riscv32-elf-gcc/.SRCINFO +++ /dev/null @@ -1,27 +0,0 @@ -pkgbase = riscv32-elf-gcc - pkgdesc = The GNU Compiler Collection - cross compiler for RISCV32 (bare-metal) target - pkgver = 11.2.0 - pkgrel = 1 - url = https://gcc.gnu.org/ - arch = x86_64 - license = GPL - license = LGPL - license = FDL - makedepends = gmp - makedepends = mpfr - makedepends = riscv32-elf-newlib - depends = riscv32-elf-binutils - depends = zlib - depends = libmpc - optdepends = riscv32-elf-newlib: Standard C library optimized for embedded systems - options = !emptydirs - options = !strip - source = https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz - source = https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz.sig - source = https://libisl.sourceforge.io/isl-0.24.tar.xz - validpgpkeys = 13975A70E63C361C73AE69EF6EEB81F8981C74C7 - sha512sums = d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf - sha512sums = SKIP - sha512sums = ff6bdcff839e1cd473f2a0c1e4dd4a3612ec6fee4544ccbc62b530a7248db2cf93b4b99bf493a86ddf2aba00e768927265d5d411f92061ea85fd7929073428e8 - -pkgname = riscv32-elf-gcc diff --git a/riscv32-elf-gcc/.gitignore b/riscv32-elf-gcc/.gitignore deleted file mode 100644 index 85de9cf..0000000 --- a/riscv32-elf-gcc/.gitignore +++ /dev/null @@ -1 +0,0 @@ -src diff --git a/riscv32-elf-gcc/PKGBUILD b/riscv32-elf-gcc/PKGBUILD deleted file mode 100644 index 3de8c6c..0000000 --- a/riscv32-elf-gcc/PKGBUILD +++ /dev/null @@ -1,122 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) -# Contributor: Anatol Pomozov -# Contributor: Martin Schmölzer - -# enable >| file overwrite -set -o noclobber - -_target=riscv32-elf -pkgname=$_target-gcc -pkgver=11.2.0 -_islver=0.24 -pkgrel=1 -#_snapshot=8-20180427 -pkgdesc='The GNU Compiler Collection - cross compiler for RISCV32 (bare-metal) target' -arch=(x86_64) -url='https://gcc.gnu.org/' -license=(GPL LGPL FDL) -depends=($_target-binutils zlib libmpc) -makedepends=(gmp mpfr $_target-newlib) -optdepends=("$_target-newlib: Standard C library optimized for embedded systems") -options=(!emptydirs !strip) -source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} - #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz - https://libisl.sourceforge.io/isl-${_islver}.tar.xz) -sha512sums=('d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf' - 'SKIP' - 'ff6bdcff839e1cd473f2a0c1e4dd4a3612ec6fee4544ccbc62b530a7248db2cf93b4b99bf493a86ddf2aba00e768927265d5d411f92061ea85fd7929073428e8') -validpgpkeys=(13975A70E63C361C73AE69EF6EEB81F8981C74C7) # Richard Guenther - -if [ -n "$_snapshot" ]; then - _basedir=gcc-$_snapshot -else - _basedir=gcc-$pkgver -fi - -prepare() { - mkdir -p build-gcc - - cd $_basedir - - # link isl for in-tree builds - ln -sf ../isl-$_islver isl - - echo $pkgver >| gcc/BASE-VER - - - # hack! - some configure tests for header files using "$CPP $CPPFLAGS" - sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure -} - -build() { - cd build-gcc - - # make sure we generate isl/stdint.h - "$srcdir"/$_basedir/isl/configure - - export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections' - export CXXFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections' - - CFLAGS=${CFLAGS/-Werror=format-security/} - CXXFLAGS=${CXXFLAGS/-Werror=format-security/} - - "$srcdir"/$_basedir/configure \ - --target=$_target \ - --prefix=/usr \ - --with-sysroot=/usr/$_target \ - --with-native-system-header-dir=/include \ - --libexecdir=/usr/lib \ - --enable-languages=c,c++ \ - --enable-threads=single \ - --enable-plugins \ - --enable-multilib \ - --enable-libgcc \ - --disable-libgomp \ - --disable-libquadmath \ - --disable-libffi \ - --disable-libssp \ - --disable-libmudflap \ - --disable-decimal-float \ - --disable-libstdcxx-pch \ - --disable-nls \ - --disable-shared \ - --disable-tls \ - --with-newlib \ - --with-gnu-as \ - --with-gnu-ld \ - --with-system-zlib \ - --with-headers=/usr/$_target/include \ - --with-python-dir=share/gcc-$_target \ - --with-gmp \ - --with-mpfr \ - --with-mpc \ - --with-isl \ - --with-libelf \ - --enable-gnu-indirect-function \ - --with-pkgversion="Arch Linux Repositories" \ - --with-bugurl='https://bugs.archlinux.org/' - - make -} - -package() { - cd build-gcc - - make DESTDIR="$pkgdir" install -j1 - - # strip target binaries - find "$pkgdir"/usr/lib/gcc/$_target/$pkgver "$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/$pkgver -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 - rm "$pkgdir"/usr/lib/libcc1.* -} - diff --git a/riscv32-elf-gdb/.SRCINFO b/riscv32-elf-gdb/.SRCINFO deleted file mode 100644 index a7316f1..0000000 --- a/riscv32-elf-gdb/.SRCINFO +++ /dev/null @@ -1,22 +0,0 @@ -pkgbase = riscv32-elf-gdb - pkgdesc = The GNU Debugger for the RISCV32 (bare-metal) target - pkgver = 11.2 - pkgrel = 2 - url = https://www.gnu.org/software/gdb/ - arch = x86_64 - license = GPL3 - depends = xz - depends = ncurses - depends = expat - depends = python - depends = guile - depends = gdb-common - depends = mpfr - options = !emptydirs - source = https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz - source = https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz.sig - validpgpkeys = F40ADB902B24264AA42E50BF92EDB04BFF325CF3 - sha512sums = 07e9026423438049b11f4f784d57401ece4e940570f613bd6958b3714fe7fbc2c048470bcce3e7d7d9f93331cdf3881d30dcc964cb113a071143a02b28e5b127 - sha512sums = SKIP - -pkgname = riscv32-elf-gdb diff --git a/riscv32-elf-gdb/.gitignore b/riscv32-elf-gdb/.gitignore deleted file mode 100644 index 0239189..0000000 --- a/riscv32-elf-gdb/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -src -*.part diff --git a/riscv32-elf-gdb/PKGBUILD b/riscv32-elf-gdb/PKGBUILD deleted file mode 100644 index 46ef755..0000000 --- a/riscv32-elf-gdb/PKGBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) -# Contributor: Anatol Pomozov -# Contributor: Martin Schmölzer - -_target=riscv32-elf -pkgname=$_target-gdb -pkgver=11.2 -pkgrel=2 -pkgdesc='The GNU Debugger for the RISCV32 (bare-metal) target' -arch=(x86_64) -url='https://www.gnu.org/software/gdb/' -license=(GPL3) -depends=(xz ncurses expat python guile gdb-common mpfr) -options=(!emptydirs) -source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}) -sha512sums=('07e9026423438049b11f4f784d57401ece4e940570f613bd6958b3714fe7fbc2c048470bcce3e7d7d9f93331cdf3881d30dcc964cb113a071143a02b28e5b127' - 'SKIP') -validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker - -prepare() { - cd gdb-$pkgver - sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure -} - -build() { - cd gdb-$pkgver - - mkdir -p build && cd build - ../configure \ - --target=$_target \ - --prefix=/usr \ - --enable-languages=c,c++ \ - --enable-multilib \ - --enable-interwork \ - --with-system-readline \ - --disable-nls \ - --with-python=/usr/bin/python \ - --with-guile=guile-2.2 \ - --with-system-gdbinit=/etc/gdb/gdbinit - - make -} - -package() { - cd gdb-$pkgver/build - - make -C gdb DESTDIR="$pkgdir" install - - # Following files conflict with 'gdb'/'gdb-common' packages - rm -r "$pkgdir"/usr/include/gdb/ - rm -r "$pkgdir"/usr/share/gdb/ - rm -r "$pkgdir"/usr/share/info/ - rm -r "$pkgdir"/usr/share/man/man5/ -} diff --git a/riscv32-elf-newlib/.SRCINFO b/riscv32-elf-newlib/.SRCINFO deleted file mode 100644 index 363d57b..0000000 --- a/riscv32-elf-newlib/.SRCINFO +++ /dev/null @@ -1,14 +0,0 @@ -pkgbase = riscv32-elf-newlib - pkgdesc = A C standard library implementation intended for use on embedded systems (RISCV32 bare metal) - pkgver = 4.2.0.20211231 - pkgrel = 2 - url = https://www.sourceware.org/newlib/ - arch = any - license = BSD - makedepends = riscv32-elf-gcc - options = !emptydirs - options = !strip - source = https://sourceware.org/pub/newlib/newlib-4.2.0.20211231.tar.gz - sha256sums = c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435 - -pkgname = riscv32-elf-newlib diff --git a/riscv32-elf-newlib/.gitignore b/riscv32-elf-newlib/.gitignore deleted file mode 100644 index 85de9cf..0000000 --- a/riscv32-elf-newlib/.gitignore +++ /dev/null @@ -1 +0,0 @@ -src diff --git a/riscv32-elf-newlib/PKGBUILD b/riscv32-elf-newlib/PKGBUILD deleted file mode 100644 index 012d31d..0000000 --- a/riscv32-elf-newlib/PKGBUILD +++ /dev/null @@ -1,73 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) -# Contributor: Anatol Pomozov - -_target=riscv32-elf -pkgname=$_target-newlib -pkgver=4.2.0.20211231 -pkgrel=2 -_upstream_ver=$pkgver -pkgdesc='A C standard library implementation intended for use on embedded systems (RISCV32 bare metal)' -arch=(any) -url='https://www.sourceware.org/newlib/' -license=(BSD) -makedepends=($_target-gcc) -options=(!emptydirs !strip) -source=(https://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz) -sha256sums=('c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435') - -build() { - rm -rf build-{newlib,nano} - mkdir build-{newlib,nano} - - export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections' - cd "$srcdir"/build-newlib - ../newlib-$_upstream_ver/configure \ - --target=$_target \ - --prefix=/usr \ - --enable-newlib-io-long-long \ - --enable-newlib-io-c99-formats \ - --enable-newlib-register-fini \ - --enable-newlib-retargetable-locking \ - --disable-newlib-supplied-syscalls \ - --disable-nls - make - - export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections' - cd "$srcdir"/build-nano - ../newlib-$_upstream_ver/configure \ - --target=$_target \ - --prefix=/usr \ - --disable-newlib-supplied-syscalls \ - --enable-newlib-reent-small \ - --enable-newlib-retargetable-locking \ - --disable-newlib-fvwrite-in-streamio \ - --disable-newlib-fseek-optimization \ - --disable-newlib-wide-orient \ - --enable-newlib-nano-malloc \ - --disable-newlib-unbuf-stream-opt \ - --enable-lite-exit \ - --enable-newlib-global-atexit \ - --enable-newlib-nano-formatted-io \ - --disable-nls - make -} - -package() { - cd "$srcdir"/build-nano - make DESTDIR="$pkgdir" install -j1 - find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a '{}' \; - install -d "$pkgdir"/usr/$_target/include/newlib-nano - install -m644 -t "$pkgdir"/usr/$_target/include/newlib-nano "$pkgdir"/usr/$_target/include/newlib.h - - cd "$srcdir"/build-newlib - make DESTDIR="$pkgdir" install -j1 - - find "$pkgdir"/usr/$_target/lib \( -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 '{}' \; - - install -d "$pkgdir"/usr/share/licenses/$pkgname/ - install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ "$srcdir"/newlib-$_upstream_ver/COPYING* -} - diff --git a/riscv64-elf-binutils/.SRCINFO b/riscv64-elf-binutils/.SRCINFO deleted file mode 100644 index d9835de..0000000 --- a/riscv64-elf-binutils/.SRCINFO +++ /dev/null @@ -1,16 +0,0 @@ -pkgbase = riscv64-elf-binutils - pkgdesc = A set of programs to assemble and manipulate binary and object files for the RISCV64 (bare-metal) target - pkgver = 2.38 - pkgrel = 2 - url = https://www.gnu.org/software/binutils/ - arch = x86_64 - license = GPL - depends = zlib - source = https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.bz2 - source = https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.bz2.sig - validpgpkeys = EAF1C276A747E9ED86210CBAC3126D3B4AE55E93 - validpgpkeys = 3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F - sha512sums = 7690b4158bd6587a85c6b98903980b9ac6f16b47f7fd1e60986b0a70388bedcfdc05d75597aa49c81fec1609ce24bed6c26583f76fd2471a9d63394fd9798afc - sha512sums = SKIP - -pkgname = riscv64-elf-binutils diff --git a/riscv64-elf-binutils/.gitignore b/riscv64-elf-binutils/.gitignore deleted file mode 100644 index 85de9cf..0000000 --- a/riscv64-elf-binutils/.gitignore +++ /dev/null @@ -1 +0,0 @@ -src diff --git a/riscv64-elf-binutils/PKGBUILD b/riscv64-elf-binutils/PKGBUILD deleted file mode 100644 index 6aef3d7..0000000 --- a/riscv64-elf-binutils/PKGBUILD +++ /dev/null @@ -1,64 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) -# Contributor: Anatol Pomozov - -_target=riscv64-elf -pkgname=$_target-binutils -pkgver=2.38 -pkgrel=2 -pkgdesc='A set of programs to assemble and manipulate binary and object files for the RISCV64 (bare-metal) target' -arch=(x86_64) -url='https://www.gnu.org/software/binutils/' -license=(GPL) -depends=(zlib) -source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2"{,.sig}) -sha512sums=('7690b4158bd6587a85c6b98903980b9ac6f16b47f7fd1e60986b0a70388bedcfdc05d75597aa49c81fec1609ce24bed6c26583f76fd2471a9d63394fd9798afc' - 'SKIP') -validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold - '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) - -prepare() { - cd binutils-$pkgver - - sed -i '/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/' libiberty/configure -} - -build() { - cd binutils-$pkgver - - ./configure --target=$_target \ - --with-sysroot=/usr/$_target \ - --prefix=/usr \ - --enable-multilib \ - --enable-interwork \ - --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 LDFLAGS="" -k 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,windres,windmc}* - rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so - - # Remove info documents that conflict with host version - rm -r "$pkgdir"/usr/share/info -} -