72 lines
1.6 KiB
Text
72 lines
1.6 KiB
Text
|
# Reference: <https://postmarketos.org/vendorkernel>
|
||
|
# Maintainer: Vitaliy Ognev <vitaliy.ognev@gmail.com>
|
||
|
_flavor="powkiddy-x55"
|
||
|
pkgname=linux-powkiddy-x55
|
||
|
pkgver=6.8.1
|
||
|
pkgrel=0
|
||
|
pkgdesc="Kernel for Powkiddy X55"
|
||
|
arch="aarch64"
|
||
|
url="https://kernel.org"
|
||
|
license="GPL-2.0-only"
|
||
|
options="!strip !check !tracedeps pmb:cross-native"
|
||
|
makedepends="
|
||
|
bash
|
||
|
bison
|
||
|
findutils
|
||
|
flex
|
||
|
gmp-dev
|
||
|
linux-headers
|
||
|
mpc1-dev
|
||
|
mpfr-dev
|
||
|
openssl-dev
|
||
|
perl
|
||
|
rsync
|
||
|
xz
|
||
|
"
|
||
|
|
||
|
_config="config-$_flavor.$arch"
|
||
|
case $pkgver in
|
||
|
*.*.*) _kernver=${pkgver%.0};;
|
||
|
*.*) _kernver=$pkgver;;
|
||
|
esac
|
||
|
|
||
|
source="
|
||
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
||
|
$_config
|
||
|
"
|
||
|
builddir="$srcdir/linux-$_kernver"
|
||
|
|
||
|
prepare() {
|
||
|
default_prepare
|
||
|
|
||
|
cp "$srcdir/config-$_flavor.$arch" .config
|
||
|
|
||
|
make ARCH=arm64 olddefconfig
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
unset LDFLAGS
|
||
|
make ARCH=arm64 \
|
||
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
install -Dm644 arch/arm64/boot/Image "$pkgdir/boot/vmlinuz"
|
||
|
|
||
|
make modules_install dtbs_install \
|
||
|
ARCH=arm64 \
|
||
|
INSTALL_MOD_STRIP=1 \
|
||
|
INSTALL_MOD_PATH="$pkgdir" \
|
||
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
||
|
|
||
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||
|
|
||
|
install -D "$builddir"/include/config/kernel.release \
|
||
|
-t "$pkgdir"/usr/share/kernel/$_flavor/
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
255921dd12f1043a4db38b5435b34773267c592f6712815c0851f1e0add71131fb00fd00746200eabdad29ba5b6e38a768da9c048da47fb5aa59d8eaef7d236e linux-6.8.1.tar.xz
|
||
|
34a9640e3195dd6fa972e8c9dde841cad51786791f59eae35b52ea8edf9eac189532cd3808c2cd5f627b9b61c1265ce87b868aa5179147a5b5beb10f4c094982 config-powkiddy-x55.aarch64
|
||
|
"
|