pmaports/device/testing/linux-lenovo-21bx/APKBUILD

71 lines
1.9 KiB
Text
Raw Normal View History

# Maintainer: Konrad Dybcio <konradybcio@kernel.org>
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=linux-lenovo-21bx
pkgver=6.8_rc5
pkgrel=0
_commit="00a0ee0018ac61ec4c93536f27916ff40cfe7a99"
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="
595a8affed112eeaecd111c6b8e206996f7367716a1768ffa5f755ddfdffea4318ba3bddfa59ab18cf98d5dd9b5536883d49151b1d26e858b5a88ef206f8e20a linux-lenovo-21bx-00a0ee0018ac61ec4c93536f27916ff40cfe7a99.tar.gz
0b4d4f9ea933de4f549227d40fd801aef5c9cce7ae6c22c997936c7fe8f7485e12e25b929bc0e249a4a13f663549e2d3ea20191975f3d69354db41ec9b92b7b3 config-lenovo-21bx.aarch64
fac2fc6cd033c30d1abea6ac77c173945f77e7c3db9e547b6e2a68969e731d4d69f6093fbc3a0b7068dddffe224692edb7175a953bc28f9449b8018c91835d31 0001-drm-panel-edp-Add-timings-for-BOE-NV133WUM-N63.patch
"