linux-powkiddy-x55: upgrade to 6.19.0
linux-powkiddy-x55 is just the kernel dot org repo with a single patch applied. Originally, this was meant to be a port to use LLVM, but too much of compilation was broken by newer clang optimizations, so porting to the newest release made more sense. Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8132>
This commit is contained in:
parent
7d77c762fb
commit
f16ca169e0
2 changed files with 1096 additions and 500 deletions
|
|
@ -1,28 +1,32 @@
|
|||
maintainer="Vitaliy Ognev <vitaliy.ognev@gmail.com>"
|
||||
pkgname=linux-powkiddy-x55
|
||||
pkgdesc="The $pkgname kernel and modules"
|
||||
pkgver=6.8.6
|
||||
pkgrel=6
|
||||
_flavor="powkiddy-x55"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=6.19
|
||||
pkgrel=0
|
||||
pkgdesc="The linux-powkiddy-x55 kernel and modules"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native
|
||||
pmb:kconfigcheck-community
|
||||
"
|
||||
makedepends="
|
||||
bash
|
||||
bison
|
||||
clang
|
||||
findutils
|
||||
flex
|
||||
gmp-dev
|
||||
linux-headers
|
||||
mpc1-dev
|
||||
mpfr-dev
|
||||
lld
|
||||
llvm
|
||||
openssl-dev
|
||||
perl
|
||||
rsync
|
||||
python3
|
||||
xz
|
||||
zstd
|
||||
"
|
||||
|
||||
_flavor="powkiddy-x55"
|
||||
_config="config-$_flavor.$arch"
|
||||
case $pkgver in
|
||||
*.*.*) _kernver=${pkgver%.0};;
|
||||
|
|
@ -39,34 +43,36 @@ source="
|
|||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
cp "$srcdir/config-$_flavor.$arch" .config
|
||||
echo "${_version#$_kernver}" > localversion
|
||||
|
||||
make ARCH=arm64 olddefconfig
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH=arm64 Image modules dtbs
|
||||
make ARCH="$_carch" LLVM=1 \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
local _modulesdir="$pkgdir/lib/modules/$_version"
|
||||
mkdir -p "$pkgdir"/boot
|
||||
|
||||
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
|
||||
install -Dm644 "$builddir/arch/$_carch/boot/Image" \
|
||||
"$pkgdir/boot/vmlinuz"
|
||||
|
||||
rm -f "$_modulesdir"/source "$_modulesdir"/build
|
||||
make dtbs_install modules_install \
|
||||
ARCH="$_carch" \
|
||||
LLVM=1 \
|
||||
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 include/config/kernel.release \
|
||||
-t "$pkgdir"/usr/share/kernel/$_flavor/
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5da8000a640243d06c456eb4102592134fcc5051785d91c53845fd693d0b0aca9751a7179ab8c8bdc633fc039c7ce8cfbec8357fdca9d01509b2dfb251b2586c linux-6.8.6.tar.xz
|
||||
01b29c7f4e5bc0c9802794c2cd027fece825f90417be229a71e60eefce530010d5d301749c54ae744e9d4a483518e769e2bb7e6e9209687681ad7fff11c3ed86 linux-6.19.tar.xz
|
||||
b38ed4cfe0f20b440426c4ba55eb727cfa64f01370f22d7aca486df4f44aceec1c1d0790c29b8984b151bee0d3ef671253d220dc0c7bec9fef6a4ce1b6cf6169 rtw88_wifi_fix.patch
|
||||
cd5f6a0424ef86444c476af18eb090ec3e26e8ef386ea444b602541c8ad68c18e731ce12ad230f1b4781ea201891c312df1ab831ef69d54be6d576ce1ba7c64a config-powkiddy-x55.aarch64
|
||||
cc1424ec74f752b9b9317e17d930ca289da61223b9ff588e0420abe7676d646d678f2ac0d0b2b0c9f40ed493d310f111215489eae0dae19ef4bd8868f47a086a config-powkiddy-x55.aarch64
|
||||
"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue