aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-06-16 14:15:50 +0200
committerAriadne Conill <ariadne@dereferenced.org>2020-06-17 08:48:26 +0000
commit92da188e6da38dcbebd99710d8694b051f2bc53d (patch)
tree798bad9419e757321939391115393e7124776e89
parentf58cce46fb322648aade6b748f5e87a760888b2d (diff)
downloadaports-92da188e6da38dcbebd99710d8694b051f2bc53d.tar.gz
aports-92da188e6da38dcbebd99710d8694b051f2bc53d.tar.bz2
aports-92da188e6da38dcbebd99710d8694b051f2bc53d.tar.xz
testing/gcc-cross-embedded-stage1: add or1k support
-rw-r--r--testing/gcc-cross-embedded-stage1/APKBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/testing/gcc-cross-embedded-stage1/APKBUILD b/testing/gcc-cross-embedded-stage1/APKBUILD
index 6ba480787c..c51f076c3b 100644
--- a/testing/gcc-cross-embedded-stage1/APKBUILD
+++ b/testing/gcc-cross-embedded-stage1/APKBUILD
@@ -11,9 +11,13 @@ _targets="
mips-mti-elf
msp430-elf
"
-pkgname="$_pkgbase-cross-embedded-stage1"
+# or1k-elf fails to build on 32-bit architectures
+case "$CARCH" in
+ x86_64|aarch64|ppc64le|mips64) _targets="$targets or1k-elf"
+esac
+pkgname="gcc-cross-embedded-stage1"
pkgver=9.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="The GNU Compiler Collection for embedded targets"
url="http://gcc.gnu.org"
depends="gcc"
@@ -22,18 +26,17 @@ arch="all"
license="GPL-3.0-or-later"
for target in $_targets; do
targetnorm="${target//-/_}"
- subpackages="$_pkgbase-$target-stage1:$targetnorm $subpackages"
+ subpackages="gcc-$target-stage1:$targetnorm $subpackages"
makedepends="$makedepends binutils-$target"
done
_islver=0.20
-source="
- https://mirrors.kernel.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz
+source="https://mirrors.kernel.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz
http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
"
options="!check"
-builddir="$srcdir/$_pkgbase-$pkgver"
+builddir="$srcdir/gcc-$pkgver"
prepare() {
default_prepare
@@ -142,5 +145,9 @@ msp430_elf() {
_install_subpkg
}
+or1k_elf() {
+ _install_subpkg
+}
+
sha512sums="4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de gcc-9.3.0.tar.xz
afe2e159b74646a26449268637403d271f9e3f6410d8cc1c9cffca41370c4357b165dea844db0c2a654591f954e54710dda650c8088abd4711406aa6302da950 isl-0.20.tar.bz2"