130 lines
4.1 KiB
Bash
130 lines
4.1 KiB
Bash
# Co-Maintainer: Achill Gilgenast <achill@achill.org>
|
|
maintainer="Aelin <aelin@postmarketos.org>"
|
|
pkgname=linux-next
|
|
pkgver=7.2_git20260807
|
|
pkgrel=0
|
|
_nextver="${pkgver#*_git}"
|
|
pkgdesc="Linux next kernel"
|
|
# armhf: pmbootstrap cannot dynamically choose a defconfig, so it ends up using multi_v7_defconfig which isn't correct
|
|
# s390x: kconfigcheck is not ready for it yet
|
|
arch="all !armhf !s390x"
|
|
_flavor="next"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="
|
|
!check
|
|
!strip
|
|
!tracedeps
|
|
pmb:cross-native
|
|
pmb:generic-kernel
|
|
pmb:kconfigcheck-community
|
|
pmb:kconfigcheck-immutable
|
|
pmb:kconfigcheck-lockdown
|
|
pmb:kconfigcheck-rust
|
|
pmb:kconfigcheck-selinux
|
|
pmb:kconfigcheck-uefi
|
|
pmb:kconfigcheck-virt
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
clang
|
|
clang-libclang
|
|
diffutils
|
|
elfutils-dev
|
|
findutils
|
|
flex
|
|
kmod
|
|
linux-headers
|
|
lld
|
|
llvm
|
|
openssl-dev
|
|
pahole
|
|
perl
|
|
postmarketos-installkernel
|
|
python3
|
|
rust
|
|
rust-bindgen
|
|
rust-src
|
|
rustfmt
|
|
sed
|
|
zstd
|
|
"
|
|
|
|
# powerpc boot wrapper patches:
|
|
# Necessary for compilation without cross GCC in PATH, cherry-picked from
|
|
# Nathan's fork, he does not have time to upstream them right now but would be
|
|
# happy if someone else did:
|
|
# https://lore.kernel.org/linuxppc-dev/aXs8sgAcci9FKKpx@luna/
|
|
source="
|
|
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/snapshot/linux-next-next-$_nextver.tar.gz
|
|
|
|
0001-WIP-arch-powerpc-boot-Support-LLVM-1-in-wrapper-scri.patch
|
|
0002-WIP-arch-powerpc-boot-Add-z-norelro.patch
|
|
|
|
config-next.aarch64
|
|
config-next.armv7
|
|
config-next.loongarch64
|
|
config-next.ppc64le
|
|
config-next.riscv64
|
|
config-next.x86
|
|
config-next.x86_64
|
|
"
|
|
builddir="$srcdir/linux-next-next-$_nextver"
|
|
|
|
case "$CARCH" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
loongarch*) _carch="loongarch" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
riscv*) _carch="riscv" ;;
|
|
s390x) _carch="s390" ;;
|
|
x86) _carch="i386" ;;
|
|
x86_64) _carch="x86_64" ;;
|
|
esac
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" LLVM=1 \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
local _install
|
|
case "$CARCH" in
|
|
arm*|aarch64|riscv*) _install="zinstall dtbs_install" ;;
|
|
*) _install="install" ;;
|
|
esac
|
|
|
|
make modules_install $_install \
|
|
ARCH="$_carch" \
|
|
LLVM=1 \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir"/usr \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
|
|
rm -f "$pkgdir"/usr/lib/modules/*/build "$pkgdir"/usr/lib/modules/*/source
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/"$_flavor"/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
81564956b63b494a6aff98fb97c7567bf0ca0494afa330a45450436f08b37bd3bb99e76e0064a7f55383f71f9ea74f8f7ded4ad550f765d7c82a62dfb1efff2f linux-next-next-20260807.tar.gz
|
|
1f11df2480e9f691573283597160b4c806e492cdca4825f3acb3afb70bde43abfab487bcde1f5553b431a702a0039479d041b0ce7859970e706b5a51d2ad8fb0 0001-WIP-arch-powerpc-boot-Support-LLVM-1-in-wrapper-scri.patch
|
|
302c20c85559fc9b3b2420ed25be1bfbb76c87f2a470e4141c32e9542cf1f5c6b3b5a7847231a3eaa0f6bc0e5942d0c1599e807175dcf5e63469704c3d6adde3 0002-WIP-arch-powerpc-boot-Add-z-norelro.patch
|
|
b7bfab5dfc3e204ac28d8bf235767e4467e4fd280d2835e04835c1d2e50dc9ce56ca24cc7e1f1c0258d232b701327e85fdf63d34732088b2079f7451271591af config-next.aarch64
|
|
4d4f5b26258488dc89b747da5ec3e9eb77fd756ff6f7ab20ff53838e8430a47d5351a47ba8a17e438ca323c2130cab9ad65289919dc02b33dea6aa67e1500254 config-next.armv7
|
|
4c9694bd95e626dbce68b34df084969b1d379a295214dc257f92000970a3500404deec4cd2a828a7aa0a71e4da5eb5d5f71ea3ed9c2448795eca64b5aa77946d config-next.loongarch64
|
|
28116297bc7c1407c00536ea3d542f11cd38bb731b56b6fefb86344240b86173274fefb248d39c4519a6cd71d4a627a74274cdd411fbb485284830228f6deffc config-next.ppc64le
|
|
2f541915834d66170d4e33a890e2ecf43e9159d9389eebd80e5fd78684dd497c3ce541c3442a0e0bfd9c44cc817c5c82cf7ddf09fba81ef2b95e20a7c56d200a config-next.riscv64
|
|
7c641935f24f9e0aa0187b49db1623609c3975fc4495cc3d1587f7208439857383eca9ebef73d2d2c602f85c04660a81413d82a3b847dc442d424d6158b7e9b5 config-next.x86
|
|
80bd133c39a5612c3e5ad05afb1927a830ac32029fc95fdf531c55ff04b4e2ae9d14cfc76b80ec849bd0434b5da2c2afc0e8345e6cc820b8e725a89995679074 config-next.x86_64
|
|
"
|