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
|
2023-11-16 05:24:15 +00:00
|
|
|
pkgver=6.7
|
2024-01-18 19:25:31 +00:00
|
|
|
pkgrel=2
|
2024-01-17 22:38:42 +00:00
|
|
|
_commit="dd209a8fb4840e48ca4963bb23057f38b1066a6d"
|
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
|
|
|
|
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
|
|
|
|
0001-drm-panel-edp-Add-timings-for-BOE-NV133WUM-N63.patch
|
|
|
|
"
|
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-01-17 22:38:42 +00:00
|
|
|
e660104c28e3f41e4f6ccdccb95be7b17077a9d230a68899e8851be05c8eba6b2473ef8a2b4fc86bed1cdf02d305d06c6acae453a3648a597ad59b4ac422ccbb linux-lenovo-21bx-dd209a8fb4840e48ca4963bb23057f38b1066a6d.tar.gz
|
2023-11-16 05:24:15 +00:00
|
|
|
02c804db63f2ff5a78155f93930174c81ac040a03f9919961c1d8f2b5b06d92b10cad35a40c5bdddf4dfd1a7e22fd813562042cf94075498e4040b31b430f3b3 config-lenovo-21bx.aarch64
|
2023-09-11 10:22:48 +00:00
|
|
|
fac2fc6cd033c30d1abea6ac77c173945f77e7c3db9e547b6e2a68969e731d4d69f6093fbc3a0b7068dddffe224692edb7175a953bc28f9449b8018c91835d31 0001-drm-panel-edp-Add-timings-for-BOE-NV133WUM-N63.patch
|
|
|
|
"
|