Commit b2d1ce56 authored by Marian Buschsieweke's avatar Marian Buschsieweke Committed by Milan P. Stanić

testing/gdb-embedded: upgrade to 8.3.1

parent f8753f56
......@@ -7,8 +7,8 @@ _targets="
msp430-elf
"
pkgname="$_pkgbase-embedded"
pkgver=8.3
pkgrel=1
pkgver=8.3.1
pkgrel=0
pkgdesc="The GNU Debugger for embedded targets"
url="https://www.sourceware.org/gdb/"
arch="all"
......@@ -31,11 +31,11 @@ options="!check"
source="https://ftp.gnu.org/gnu/$_pkgbase/$_pkgbase-$pkgver.tar.xz"
for target in $_targets; do
targetnorm="${target//-/_}"
subpackages="${_pkgbase}-${target}:${targetnorm} ${subpackages}"
subpackages="$_pkgbase-$target:$targetnorm $subpackages"
done
builddir="$srcdir"/$_pkgbase-$pkgver
build () {
build() {
for target in $_targets; do
mkdir -p "$srcdir/build/$target"
cd "$srcdir/build/$target"
......@@ -68,7 +68,7 @@ package() {
}
_install_subpkg() {
target="${subpkgname#${_pkgbase}-}"
target="${subpkgname#$_pkgbase-}"
pkgdesc="The GNU Debugger for $target"
cd "$srcdir/build/$target"
make DESTDIR="$subpkgdir" install
......@@ -76,10 +76,10 @@ _install_subpkg() {
rm -rf "$subpkgdir"/deleteme
# those are provided by gdb
rm -rf "$subpkgdir"/usr/share
rm -rf "${subpkgdir:?}"/usr/share
# those are provided by binutils
rm -rf "$subpkgdir"/usr/include
rm -rf "$subpkgdir"/usr/lib
rm -rf "${subpkgdir:?}"/usr/include
rm -rf "${subpkgdir:?}"/usr/lib
}
arm_none_eabi() {
......@@ -99,4 +99,4 @@ msp430_elf() {
}
sha512sums="47ac074d20a09a3fac8f4a41dce0a0cbe6ef702f7dc21ba8b7d650d306128dcae481e9a16bf65e596b3a541dc82ae57c02bcbb786d551b4ef3e2917b9b6f0ae1 gdb-8.3.tar.xz"
sha512sums="9053a2dc6b9eb921907afbc4cecc75d635aa76df5e8c4f0e5824ccf57cb206b299c19b127fff000b65c334826ff8304a54ff6098428365a8e997cca886c39e9a gdb-8.3.1.tar.xz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment