2024-03-15 18:45:46 +00:00
|
|
|
# Maintainer: Vitaliy Ognev <vitaliy.ognev@gmail.com>
|
|
|
|
pkgname=linux-powkiddy-x55
|
2024-03-29 09:07:34 +00:00
|
|
|
pkgdesc="The $pkgname kernel and modules"
|
2024-03-29 17:52:23 +00:00
|
|
|
pkgver=6.8.6
|
|
|
|
pkgrel=0
|
2024-03-15 18:45:46 +00:00
|
|
|
arch="aarch64"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2024-03-25 16:37:27 +00:00
|
|
|
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
|
|
|
|
"
|
|
|
|
|
2024-03-29 09:07:34 +00:00
|
|
|
_flavor="powkiddy-x55"
|
2024-03-15 18:45:46 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2024-03-29 09:07:34 +00:00
|
|
|
_version="$_kernver-$pkgrel.$_flavor"
|
2024-03-15 18:45:46 +00:00
|
|
|
|
2024-03-29 09:07:34 +00:00
|
|
|
builddir="$srcdir/linux-$_kernver"
|
2024-03-15 18:45:46 +00:00
|
|
|
source="
|
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
2024-03-29 09:07:34 +00:00
|
|
|
rtw88_wifi_fix.patch
|
2024-03-15 18:45:46 +00:00
|
|
|
$_config
|
|
|
|
"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
2024-03-29 09:07:34 +00:00
|
|
|
echo "${_version#$_kernver}" > localversion
|
2024-03-15 18:45:46 +00:00
|
|
|
|
|
|
|
make ARCH=arm64 olddefconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2024-03-29 09:07:34 +00:00
|
|
|
make ARCH=arm64 Image modules dtbs
|
2024-03-15 18:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-03-29 09:07:34 +00:00
|
|
|
local _modulesdir="$pkgdir/lib/modules/$_version"
|
2024-03-15 18:45:46 +00:00
|
|
|
|
2024-03-29 09:07:34 +00:00
|
|
|
install -Dm644 arch/arm64/boot/Image "$pkgdir"/boot/vmlinuz
|
|
|
|
make ARCH=arm64 \
|
|
|
|
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH="$pkgdir" modules_install \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs" dtbs_install
|
2024-03-15 18:45:46 +00:00
|
|
|
|
2024-03-29 09:07:34 +00:00
|
|
|
rm -f "$_modulesdir"/source "$_modulesdir"/build
|
2024-03-15 18:45:46 +00:00
|
|
|
|
2024-03-29 09:07:34 +00:00
|
|
|
install -D include/config/kernel.release \
|
2024-03-15 18:45:46 +00:00
|
|
|
-t "$pkgdir"/usr/share/kernel/$_flavor/
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-03-29 17:52:23 +00:00
|
|
|
5da8000a640243d06c456eb4102592134fcc5051785d91c53845fd693d0b0aca9751a7179ab8c8bdc633fc039c7ce8cfbec8357fdca9d01509b2dfb251b2586c linux-6.8.6.tar.xz
|
2024-03-29 09:07:34 +00:00
|
|
|
b38ed4cfe0f20b440426c4ba55eb727cfa64f01370f22d7aca486df4f44aceec1c1d0790c29b8984b151bee0d3ef671253d220dc0c7bec9fef6a4ce1b6cf6169 rtw88_wifi_fix.patch
|
|
|
|
98e005a5d456a6c42dd8ae6b758737ef8a42f15edd3a418b148bfc2bace8157973dc42155c1c547dfe5ba643934bd25fd41a77bbf4838a0bbb30f7f774582b28 config-powkiddy-x55.aarch64
|
2024-03-15 18:45:46 +00:00
|
|
|
"
|