2023-09-11 10:22:48 +00:00
|
|
|
# Maintainer: Konrad Dybcio <konradybcio@kernel.org>
|
2023-11-04 05:39:01 +00:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2023-09-11 10:22:48 +00:00
|
|
|
pkgname=linux-lenovo-21bx
|
2024-05-14 22:02:42 +00:00
|
|
|
pkgver=6.9
|
|
|
|
pkgrel=0
|
|
|
|
_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-13 06:00:24 +00:00
|
|
|
16754608e0f079a489475bfa9c7f8ab9c1ca0d5c0c8aeb7e3da3d33d0c8d3e694616830085823d54e2a2bd199af8d36d0113f64f6fabcde9238a5d51e81c9797 config-lenovo-21bx.aarch64
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|