# Maintainer: Konrad Dybcio # Co-Maintainer: Clayton Craft pkgname=linux-lenovo-21bx pkgver=6.8_rc6 pkgrel=0 _commit="693828cc4c48f5b1088aaf44d413634c365dd422" 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 0001-drm-panel-edp-Add-timings-for-BOE-NV133WUM-N63.patch " 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=" bf18ece5d138205c182c184a6a4f8881988a7b1bbe1b904636b27806f1f7fc3c6d30b93ba36f558cccdc158d2b71ad0b2cfbcb3a8ad0bcc4b7f9b5abcce5bec0 linux-lenovo-21bx-693828cc4c48f5b1088aaf44d413634c365dd422.tar.gz 60d22eedee8b267d73bcae053ff76aa2b9111b53cf48819feb97806044a5538103ff975975583829ed848d9d911d22832d0dbcd8a4dbfc1b116de9537b7b1558 config-lenovo-21bx.aarch64 fac2fc6cd033c30d1abea6ac77c173945f77e7c3db9e547b6e2a68969e731d4d69f6093fbc3a0b7068dddffe224692edb7175a953bc28f9449b8018c91835d31 0001-drm-panel-edp-Add-timings-for-BOE-NV133WUM-N63.patch "