pmaports/main/linux-postmarketos-grate/APKBUILD

48 lines
1.5 KiB
Text

pkgname=linux-postmarketos-grate
pkgver=5.14.0_rc6
pkgrel=2
arch="armv7"
pkgdesc="Linux kernel with experimental patches for Tegra"
url="https://postmarketos.org"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
devicepkg-dev bison flex openssl-dev xz findutils"
options="!strip !check !tracedeps pmb:cross-native
pmb:kconfigcheck-nftables pmb:kconfigcheck-zram"
license="GPL-2.0-only"
# Source
_flavor=postmarketos-grate
_commit="f6e4a8d26df39804bfbd793ef4871b38d0ebff84"
_carch="arm"
_config="config-$_flavor.$arch"
source="$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
$_config"
builddir="$srcdir/linux-$_commit"
_outdir="out"
prepare() {
default_prepare
REPLACE_GCCH=0 \
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
make modules_install dtbs_install \
O="$_outdir" ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
}
sha512sums="
1166c043e0334169caf21534128974a9aa97df38dbf1f3543919a5847f7726a2351ee7cbf68fc5b41cc09e153740d802382bfd611b1651dbbc21c45092ada9ce linux-postmarketos-grate-5.14.0_rc6-f6e4a8d26df39804bfbd793ef4871b38d0ebff84.tar.gz
d683f7018403d8127a541000b73a8bfd723aa1c98ed19734de66f3506120a55fcd8f482e0e28e3b14bc91239c374d11799a35ec86afd0c55fa9b57231e051255 config-postmarketos-grate.armv7
"