Skip to content
Snippets Groups Projects
Commit 0da0b3f1 authored by Marian Buschsieweke's avatar Marian Buschsieweke Committed by Patrycja Rosa
Browse files

community/newlib: clean up APKBUILD

parent 3f82442f
No related branches found
No related tags found
1 merge request!65648community/newlib: clean up APKBUILD
Pipeline #232926 canceled
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=newlib
pkgver=4.3.0.20230120
pkgrel=3
pkgrel=4
pkgdesc="C standard library implementation intended for use on embedded systems"
url="https://www.sourceware.org/newlib/"
makedepends="texinfo"
......@@ -40,8 +40,7 @@ x86_64|aarch64)
esac
for target in $_targets; do
targetnorm="${target//-/_}"
subpackages="newlib-$target:$targetnorm $subpackages"
subpackages="newlib-$target:_install_subpkg $subpackages"
# here only makedepends. The depends to binutils-$target and gcc-$target
# will be set in the subpkg newlib-$target
makedepends="binutils-$target gcc-$target $makedepends"
......@@ -65,7 +64,8 @@ build() {
cd "$builddir/build-$target-nano"
export CFLAGS_FOR_TARGET="-Os -ffunction-sections -fdata-sections -fshort-wchar"
"$builddir"/configure \
--target=$target \
--host="$CHOST" \
--target="$target" \
--prefix=/usr/ \
--infodir=/deleteme/info \
--mandir=/deleteme/man \
......@@ -99,8 +99,8 @@ build() {
cd "$builddir/build-$target"
export CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections"
"$builddir"/configure \
--host=$CHOST \
--target=$target \
--host="$CHOST" \
--target="$target" \
--prefix=/usr \
--infodir=/deleteme/info \
--mandir=/deleteme/man \
......@@ -134,6 +134,7 @@ package() {
}
_install_subpkg() {
local target
target="${subpkgname#newlib-}"
pkgdesc="A C standard library implementation intended for $target"
depends="binutils-$target gcc-$target $depends"
......@@ -162,30 +163,6 @@ _install_subpkg() {
fi
}
arm_none_eabi() {
_install_subpkg
}
mips_mti_elf() {
_install_subpkg
}
msp430_elf() {
_install_subpkg
}
or1k_elf() {
_install_subpkg
}
riscv_none_elf() {
_install_subpkg
}
aarch64_none_elf() {
_install_subpkg
}
sha512sums="
4a06309d36c2255fef8fc8f2d133cafa850f1ed2eddfb27b5d45f5d16af69e0fca829a0b4c9b34af4ed3a28c6fcc929761e0ee823a4229f35c2853d432b5e7ef newlib-4.3.0.20230120.tar.gz
647b79e3cc6f3bb98b1263ebbf4b3efa4a4692fddc0df6491c726de2fa0ee46b05ab2ddf96c2c8c785f3cd6a442135ec97bf8df93a8f371d479ea46d03aa8a08 msp430-elf-nano.specs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment