linux4.9: update to 4.9.258

Convert template to base tarball + patch scheme.
This commit is contained in:
Jürgen Buchmüller 2021-03-02 14:43:39 +01:00
parent 11898d2869
commit 76874e25b8

View file

@ -1,15 +1,18 @@
# Template file for 'linux4.9'
pkgname=linux4.9
version=4.9.257
version=4.9.258
revision=1
wrksrc="linux-${version}"
wrksrc="linux-${version%.*}"
short_desc="Linux kernel and modules (${version%.*} series)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.kernel.org"
distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
checksum=95e780fffc81de8217a31a3e6e212b69643f5344e9ba0dabaa6e426126f6d64f
distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version%.*}.tar.xz
https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-${version}.xz"
checksum="029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a
5a35fc05ba60b80588592cade43ddea4bdef0933882767bf8ad7e2a6f4ff2a4a"
python_version=2 #unverified
skip_extraction="patch-${version}.xz"
patch_args="-Np1"
nodebug=yes # -dbg package is generated below manually
@ -19,7 +22,7 @@ noshlibprovides=yes
preserve=yes
archs="i686* x86_64* aarch64* ppc*"
hostmakedepends="bc perl kmod uboot-mkimage libressl-devel"
hostmakedepends="bc perl kmod uboot-mkimage libressl-devel xz"
case "$XBPS_TARGET_MACHINE" in
ppc64le*) broken="No ppc64le support";;
@ -46,6 +49,10 @@ export KBUILD_BUILD_TIMESTAMP=${SOURCE_DATE_EPOCH:-0}
export KBUILD_BUILD_USER=voidlinux
export KBUILD_BUILD_HOST=voidlinux
pre_patch() {
xzcat $XBPS_SRCDISTDIR/$pkgname-$version/patch-${version}.xz | patch -Np1
}
do_configure() {
# If there's a file called <arch>-dotconfig, use it to
# configure the kernel; otherwise use arch defaults and all stuff