2024-05-20 00:41:37 +00:00
|
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2024-05-20 20:31:36 +00:00
|
|
|
# Co-Maintainer: jane400 <jane400@postmarketos.org>
|
2024-05-20 00:41:37 +00:00
|
|
|
# Contributor: Konrad Dybcio <konradybcio@kernel.org>
|
2023-09-11 10:22:48 +00:00
|
|
|
pkgname=linux-lenovo-21bx
|
2024-05-14 22:02:42 +00:00
|
|
|
pkgver=6.9
|
2024-05-16 22:51:49 +00:00
|
|
|
pkgrel=1
|
2024-05-14 22:02:42 +00:00
|
|
|
_commit="357c0f0c7ad2d7d95a3200b6cfd7bef43299de04"
|
2023-09-11 10:22:48 +00:00
|
|
|
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
|
2024-05-01 07:30:15 +00:00
|
|
|
pmb:kconfigcheck-containers
|
2023-09-11 10:22:48 +00:00
|
|
|
pmb:kconfigcheck-uefi
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
2024-01-18 19:25:31 +00:00
|
|
|
postmarketos-installkernel
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="linux"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
2024-01-17 22:38:42 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/jhovold/$_repository/archive/$_commit.tar.gz
|
2023-09-11 10:22:48 +00:00
|
|
|
$_config
|
|
|
|
"
|
2024-01-17 22:38:42 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
2023-09-11 10:22:48 +00:00
|
|
|
_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() {
|
2024-01-18 19:25:31 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
2023-09-11 10:22:48 +00:00
|
|
|
ARCH="$_carch" \
|
2024-01-18 19:25:31 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
2023-09-11 10:22:48 +00:00
|
|
|
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="
|
2024-05-14 22:02:42 +00:00
|
|
|
270f2052077ad287aa3fe62de935955aa97cf38d842e8460fab5d68accf3abde299b02fe41287dae46ad8bf927815db0512fe4072a01090e4dd1766ed296f9c3 linux-lenovo-21bx-357c0f0c7ad2d7d95a3200b6cfd7bef43299de04.tar.gz
|
2024-05-16 22:51:49 +00:00
|
|
|
9966d82919860316548e4a32a11114853fd991a59a4621b33db1c1478eb6a23f253e2566d2d48e192e0abe4e5dd1dd3c94a154872fe7a4dab0ff284b6d741978 config-lenovo-21bx.aarch64
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|