pmaports/device/community/linux-purism-librem5/APKBUILD
clayton craft 6410ab3fe5
linux-purism-librem5: upgrade to 5.9.15 (MR 1836)
Upstream changelog:
868f3eb852

Suspend is also disabled in the kconfig, since it is not
supported/working on this device

[ci:skip-build]: already built successfully in CI
2020-12-28 15:34:10 +01:00

67 lines
2 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=linux-purism-librem5
pkgver=5.9.15
pkgrel=0
_purismrel=1
# <kernel ver>.<purism kernel release>
_purismver=${pkgver}+librem5.$_purismrel
pkgdesc="Purism Librem 5 phone kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="purism-librem5"
url="https://source.puri.sm/Librem5/linux-next"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
elfutils-dev
findutils
flex
gmp-dev
installkernel
linux-headers
openssl-dev
perl
sed
"
# Source
_repository="linux-next"
# kconfig generated with: ARCH=arm64 make defconfig KBUILD_DEFCONFIG=librem5_defconfig
_config="config-$_flavor.$arch"
source="
$pkgname-$_purismver.tar.gz::https://source.puri.sm/Librem5/$_repository/-/archive/pureos/$_purismver/$_repository-pureos-$_purismver.tar.gz
8f11380ec32912370b8ae9134a0387a6f18862f7.patch
$_config
"
builddir="$srcdir/$_repository-pureos-$_purismver"
prepare() {
default_prepare
REPLACE_GCCH=0 \
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
LOCALVERSION=".$_purismrel"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
}
sha512sums="8c92dc29b2d88ebb9f232730a69430247e625082aef60594ff2554d38bf0560cd97de9c5ff4a3378ee7776f19b6e44e2fe3bb16e5f80e8f0974eb10d36ebd62f linux-purism-librem5-5.9.15+librem5.1.tar.gz
9870bff4b187188b519b23264c2634ee4232011fed6d2f66a7b4971db354ac3dffa0e1552bd0dc953c66ec622e18ce8899fdbcfba94f60867fc5004d6da96753 8f11380ec32912370b8ae9134a0387a6f18862f7.patch
4ab8ae5df658ec0b17cf1044d22f019c34f76100205b1940cc49d8540eff4a26b533830ffae9891c08e7654dd51af277d211f4c3fa271c32c4168654bd4b1a76 config-purism-librem5.aarch64"