pkgname=linux-postmarketos-grate pkgver=6.0.6 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 pmb:kconfigcheck-containers pmb:kconfigcheck-waydroid" license="GPL-2.0-only" # Source _flavor=postmarketos-grate _commit="dbd9b1b73868c92eeef83cabb113c8cb03b8e11a" _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/boot/dtbs" } sha512sums=" a4f8ad6b448d73e5817ffe362106106cbaa7e8f780dec848d4adbabb345c4f7e5985e5a701ad3b12c70b91fb9a9a7bc2768562460db9308f97a13bc5050c36ee linux-postmarketos-grate-6.0.6-dbd9b1b73868c92eeef83cabb113c8cb03b8e11a.tar.gz 905444a89b39e4f8ed2cb07d4b8e4a02135da6babf481f41fc404fa65e0ef2e06fac8b227f92aaa601968d05ce116e95e6262bcf84c291f6c1a1cfa7c823097d config-postmarketos-grate.armv7 "