# Maintainer: Konrad Dybcio # Co-Maintainer: Clayton Craft pkgname=linux-lenovo-21bx pkgver=6.9_rc7 pkgrel=0 _commit="ff8e9aabc1df7fb1658025df41a5ff8fe2e278f2" pkgdesc="Lenovo ThinkPad X13s kernel fork" arch="aarch64" _carch="arm64" _flavor="lenovo-21bx" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community pmb:kconfigcheck-containers pmb:kconfigcheck-uefi " makedepends=" bash bison findutils flex openssl-dev perl postmarketos-installkernel " # Source _repository="linux" _config="config-$_flavor.$arch" source=" $pkgname-$_commit.tar.gz::https://github.com/jhovold/$_repository/archive/$_commit.tar.gz $_config " builddir="$srcdir/linux-$_commit" _outdir="out" prepare() { default_prepare cp "$srcdir/config-$_flavor.$arch" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { mkdir -p "$pkgdir"/boot make zinstall modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source install -D "$builddir"/include/config/kernel.release \ "$pkgdir"/usr/share/kernel/$_flavor/kernel.release } sha512sums=" 71208d0ba34827f9edb89327a17c28a763f83d49f6d6d7858d133ebfbd80fd700f13c97f595deb088ded9eaac6d2b34518684aa351edd71c7a4631713a61913e linux-lenovo-21bx-ff8e9aabc1df7fb1658025df41a5ff8fe2e278f2.tar.gz 8b3e8172a7924c9e4aa2f1466ceb82d6764b654113080425c0f1017f79e951be61de57097a2e3175a879c5111235770b307664154d47b605a23fba56df761ef4 config-lenovo-21bx.aarch64 "