pmaports/main/linux-postmarketos-grate/APKBUILD
Svyatoslav Ryhel add2efe222
main/linux-postmarketos-grate: update to 5.14_rc1 (MR 2285)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>

[ci:skip-build] already built successfully in CI
2021-07-17 18:22:02 -07:00

48 lines
1.5 KiB
Text

pkgname=linux-postmarketos-grate
pkgver=5.14.0_rc1
pkgrel=0
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="a984266d25b470fec4e65d19fefde6a66fff07ad"
_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="
fa3733b7bb04cdd152ad922da13cc8c0359a8d901bbd39420ac7dd47e20b1588735bee95486730590a5f8fe52c224a34fdf9c96555767283d9b488cfa51cfd94 linux-postmarketos-grate-5.14.0_rc1-a984266d25b470fec4e65d19fefde6a66fff07ad.tar.gz
7a8294694ee057b42cca6a3924c6bb96678b4dc59e2f39b1b0cb67c5a70ddbce088b91f7ffc9803fc87264e9a4c0795f6e665167ba4a2f3684606ce07192a7b8 config-postmarketos-grate.armv7
"