Commit dce52d38 authored by Carlo Landmeter's avatar Carlo Landmeter

main/raspberrypi: upgrade to 0.20171114 and add aarch64

parent bd4bb5a3
# Maintainer: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi pkgname=raspberrypi
pkgver=0.20171114 pkgver=0.20180511
_commitid=bc3c52a51315399a9f31ed24049eb4bc81fd1c60 _commitid=2448644657e5fbfd82299416d218396ee1115ece
pkgrel=0 pkgrel=0
pkgdesc="Raspberry Pi support tools" pkgdesc="Raspberry Pi support tools"
url="https://github.com/raspberrypi/userland" url="https://github.com/raspberrypi/userland"
arch="armhf" arch="armhf aarch64"
license="BSD" license="BSD"
depends="" depends=""
depends_dev="linux-headers raspberrypi-libs" depends_dev="linux-headers raspberrypi-libs"
makedepends="cmake $depends_dev" makedepends="cmake $depends_dev"
install="" install=""
options="!fhs" options="!fhs !check"
subpackages="$pkgname-dev $pkgname-libs" subpackages="$pkgname-dev $pkgname-libs $pkgname-openrc"
source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz
" "
builddir="$srcdir"/userland-$_commitid builddir="$srcdir"/userland-$_commitid
build() { build() {
mkdir -p "$builddir"
cd "$builddir" cd "$builddir"
# -Wno-error=array-bounds is workaround for gcc bug 59124 case "$CARCH" in
cmake -DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE -Wno-error=array-bounds" \ arm*) local ARM64=off;;
-DCMAKE_BUILD_TYPE=Release \ aarch64) local ARM64=on;;
esac
cmake -DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE" \
-DARM64=$ARM64 \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_RPATH=/opt/vc/lib \ -DCMAKE_INSTALL_RPATH=/opt/vc/lib \
$_sourcedir || return 1 $_sourcedir
make make
} }
...@@ -45,4 +48,4 @@ libs() { ...@@ -45,4 +48,4 @@ libs() {
mv "$pkgdir"/opt/vc/lib/* "$subpkgdir"/opt/vc/lib mv "$pkgdir"/opt/vc/lib/* "$subpkgdir"/opt/vc/lib
} }
sha512sums="d8295474e6bab7ad8f34b1ee5cf8e883b4c0a75bf6083012e2422707bdf36ee1ad11e9e61b2edaa77b40a80d1f529ac43d07e05d0cf87443bb5abf397430c19b raspberrypi-0.20171114.tar.gz" sha512sums="af764dc9490d94d4877833aa2816c8ceef2e12aca6ad95c9f4472dee4b06eb31d9f6707c0ce664e0d25ab7f5c296c48e827b1100c850946595e931e03c177ec6 raspberrypi-0.20180511.tar.gz"
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