pmaports/device/testing/linux-powkiddy-x55/APKBUILD

72 lines
1.6 KiB
Text
Raw Normal View History

2024-03-15 18:45:46 +00:00
# Reference: <https://postmarketos.org/vendorkernel>
# Maintainer: Vitaliy Ognev <vitaliy.ognev@gmail.com>
_flavor="powkiddy-x55"
pkgname=linux-powkiddy-x55
pkgver=6.8.1
pkgrel=1
2024-03-15 18:45:46 +00:00
pkgdesc="Kernel for Powkiddy X55"
arch="aarch64"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community"
2024-03-15 18:45:46 +00:00
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
d683141bc3eede4af0089ac915b0cf0679f5e0afc2f27db72f10f63934746002bfe73c5f9e57f0cede9b639eee9e42fe1c65b1fcce0661044193704636d67c88 config-powkiddy-x55.aarch64
2024-03-15 18:45:46 +00:00
"