testing/newlib: Fixed dependencies

Currently each flavor of newlib depended on all toolchains, e.g.
newlib-arm-none-eabi would not only pull in binutils and gcc for
the target arm-none-eabi, but all others as well. This commit
changes the behavior so that each newlib version only pulls in the
corresponding toolchain.
This commit is contained in:
Marian Buschsieweke 2019-03-14 10:55:25 +01:00 committed by Leonardo Arena
parent bc948f396a
commit f1d8b5d058

View File

@ -8,7 +8,7 @@ _targets="
"
pkgname="$_pkgbase"
pkgver="3.0.0.20180831"
pkgrel=0
pkgrel=1
pkgdesc="A C standard library implementation intended for use on embedded systems"
url="http://www.sourceware.org/newlib/"
makedepends="texinfo"
@ -22,7 +22,7 @@ options="!check"
for target in $_targets; do
targetnorm="${target//-/_}"
subpackages="${_pkgbase}-${target}:${targetnorm} ${subpackages}"
depends="binutils-${target} gcc-${target} ${depends}"
makedepends="binutils-${target} gcc-${target} ${makedepends}"
done
builddir="$srcdir/$_pkgbase-$pkgver"
@ -109,6 +109,7 @@ package() {
_install_subpkg() {
pkgdesc="A C standard library implementation intended for ${target}"
target="${subpkgname#$_pkgbase-}"
depends="binutils-${target} gcc-${target} ${depends}"
mkdir -p "$subpkgdir"
# install nano version
cd "${builddir}/build-${target}-nano"