6bccb218e6
This upgrade includes a runtime PM fix for the SD card reader/usb
54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=linux-purism-librem5
|
|
# Note: _p#, where # is the purism version, e.g. the '2' in 'librem5.2'
|
|
pkgver=5.7.5_p2
|
|
pkgrel=0
|
|
_kernver=${pkgver%_p*}
|
|
_purismrel=${pkgver#*_p}
|
|
# <kernel ver>.<purism kernel release>
|
|
_purismver=${_kernver}+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="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
|
devicepkg-dev bison flex openssl-dev"
|
|
|
|
# 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
|
|
$_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="bcb77bf6efa55bf524f47482d34c24d17fcd069e8fbf011270d2aa34f7b643cecd998f75de00fcc0245d56877ae0cebd0a33deb9e35ab2838953219f966e9812 linux-purism-librem5-5.7.5+librem5.2.tar.gz
|
|
d5eae3780f0068a2208f2dee673d920e3bf7955497e923ed9a546736bee3b009eb4017ee75ad77121a0cd8d21feac5e116de50212bb48356c947a93cbc766033 config-purism-librem5.aarch64"
|