75 lines
2.1 KiB
Text
75 lines
2.1 KiB
Text
# Maintainer: Caleb Connolly <caleb@postmarketos.org>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
pkgname=linux-next
|
|
pkgver=6.13_git20250130
|
|
pkgrel=0
|
|
_nextver="${pkgver#*_git}"
|
|
pkgdesc="Linux next kernel"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
_flavor="generic-trailblazer"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
# FIXME: kconfigcheck isn't supported since we use fragments
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
source="
|
|
https://gitlab.com/linux-kernel/linux-next/-/archive/next-$_nextver/linux-next-next-$_nextver.tar.gz
|
|
devices.config
|
|
pmos.config
|
|
"
|
|
makedepends="
|
|
bash
|
|
bc
|
|
bison
|
|
devicepkg-dev
|
|
findutils
|
|
flex
|
|
git
|
|
openssl-dev
|
|
perl
|
|
python3
|
|
zstd
|
|
"
|
|
builddir="$srcdir/linux-next-next-$_nextver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/pmos.config" "$builddir"/arch/"$_carch"/configs/
|
|
cp "$srcdir/devices.config" "$builddir"/arch/"$_carch"/configs/
|
|
|
|
# Generate .config
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-next-$_nextver" \
|
|
defconfig pmos.config devices.config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz.efi" \
|
|
"$pkgdir/boot/linux.efi"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
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 "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/next-"$_nextver"/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
16d573a2ef5b24b1dfdf528c016c47218a6b943cfe6b8e8e9896d4f05c69545f79907afc8a93e092a916b434bc45a14bdedccff5710d9a5f79dd2bee73f52175 linux-next-next-20250130.tar.gz
|
|
8de0a3791ea671528a9fc753071683dfea68ea4f4c22060fc0ca8a4b1b3d76eaa2a3fd40bb013173f0e55da15dde91cf285902779beb35781b6c90f39244ce11 devices.config
|
|
eaceb011997e5f19ad8c5e9b4d291ebe264d83953f9b21d5b1a0c479602edb235252657f297b1a59c7a11dd2205d40360197489a3337ba6f8e040ecf2b51f527 pmos.config
|
|
"
|