# Maintainer: Konrad Dybcio # Co-Maintainer: Clayton Craft pkgname=linux-lenovo-21bx pkgver=6.9_rc6 pkgrel=0 _commit="45be9698f7ddf9d3f0596ef1081b7f2d359931b0" 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-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=" d2daa2b71f6577c4577174129b538eaba3bc75b13868df171a4125694447a892d485b979f2ee45ba7b9021f22c36856949c8653a8817d19a16089701932a7b26 linux-lenovo-21bx-45be9698f7ddf9d3f0596ef1081b7f2d359931b0.tar.gz 7efc32b808fb69cf309f6b99bb0fea3f2ef0168910f59b5b974a18faaa1a9bc3ac0ca706395f69c7b2c9e04cf09716a8ce2bc5f71fd93119673006d81eeec3b8 config-lenovo-21bx.aarch64 "