1f153b1a14
- adds kconfigcheck-containers - adds missing kconfigcheck-community options - adds some missing dynamic debug stuff - also adds kconfig options required by libcamera, because why not. [ci:skip-build]: already built successfully in CI
69 lines
1.7 KiB
Text
69 lines
1.7 KiB
Text
# Maintainer: Konrad Dybcio <konradybcio@kernel.org>
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=linux-lenovo-21bx
|
|
pkgver=6.9_rc6
|
|
pkgrel=1
|
|
_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-containers
|
|
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
|
|
8b3e8172a7924c9e4aa2f1466ceb82d6764b654113080425c0f1017f79e951be61de57097a2e3175a879c5111235770b307664154d47b605a23fba56df761ef4 config-lenovo-21bx.aarch64
|
|
"
|