mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sys-kernel/vanilla-kernel: Bump to 6.12.88
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -50,6 +50,7 @@ DIST patch-5.10.255.xz 7255244 BLAKE2B 98334dc40a3176537c704eae6639e9b9a697857ea
|
||||
DIST patch-5.15.206.xz 7681652 BLAKE2B 5ee9d8ca6edbf6a4bc7ccc9aa8bdb58b39ea0805d076f6bc27de1464d2a2968d29a0e58df6d12010334a6429252f5e13019d9629a22b86f3bd8598e451b38f5c SHA512 3f43eb54104a1d0e5bfab1571e128f2fc1eba5bf9fd6731801e593edd22888965e492ac8eb283653558af749bb93542359c35c24fd6984cc59a133e62245e0ac
|
||||
DIST patch-6.1.172.xz 7323820 BLAKE2B aba4ebaac7192448654e1183bddf9b59c99efc39eef4986005eeeb17856c1a541a6756e9b248d8dcc92dd19f6c54cfda065495b02d9c682d5e4fb4f1ee15e0c5 SHA512 74317a51c58e53bb9b90423fd0b72abf05aba1585f9d4190ff691f27495b700dfc39dd60fba1483109e6a41252635a7d44b2e96b696c95deb5705ba2e021f915
|
||||
DIST patch-6.12.87.xz 4429580 BLAKE2B 0ceac68ca76cd09e0ca7156cb5e75effdaf02a323ee43f840ce2d5dbe62bdb494b30faf9dc29e44480cba972d2c5704931c3a7c5e60a8ba99399b774936974a9 SHA512 c952f2e4e92bda8b2a75cd19794cd4b3bbd3c57255fd674dfed2f67526032dda726bfc5b1d89d2433f0b8a47c1a0e0941996d2081ca0531ab843df0e08d804ff
|
||||
DIST patch-6.12.88.xz 4465124 BLAKE2B 379d4f96bdf47665e726fdf386e1f40ac8a7f5ed18c72061ad4ffac4074b5a7f1a654aacae447cd85a4a90df5e8ba4270831d5ab314e0165f39096ad115c8eb4 SHA512 c74aa7b1733a10f094454e09af1674a4c9655cf5bf27fda98d72ed0307f8e4ec9a79642f95172d9c6121416214b741e4dbfd422238facc19f01c48250998cab3
|
||||
DIST patch-6.18.29.xz 1610444 BLAKE2B 509248828530c95638a40925c85de0bb89b88517dc8ef8616db7d1a3222c99edfd1e84caa75a26268b94bf1387fb8fb05147a64831b8e87624738d2d2b6959cc SHA512 4cdeacf78da0293d166fcc9917ae96d0ef7864030156bdfd0b45b5568f6a01a11445ccf7a6f0f6da411a0ebabd4ba4fa97f211a5e7dbd79f5232dbad0101a905
|
||||
DIST patch-6.18.30.xz 1666920 BLAKE2B 2a3f6cbaaa489219032ab3f443ff8fe5981a406047cfdedfcad901c866ad41d8538944ec4b5ac10bfeb5653ad779b9f168a3f76e818ae3a0577dd229d192774e SHA512 63333073f0cc014d5e162e4445ae8e481f6de3e63f90b7c6e862e1c10722f181db5ad9a80f8b94c4adb9878ba0026f866378a27efb6e34774f542175ab94956f
|
||||
DIST patch-6.6.138.xz 5910560 BLAKE2B dc27122eb68f8ebc460789a97159ceeec3cfb2d285f73f48595ff26e8a1a9ef4ca7fd27eae2e9a6dca898414bdacc7a684a7ec9ae9f8f2ff176d09039dd8128f SHA512 f42a15164ead291ba5f91002855fdc50e958a020ae144047f950891abc01a4dc0ffca68ddebc46125faa53e7e65aeae5d50873c0f35c75e34bf8b7fd1b08dab8
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
# Copyright 2020-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g18
|
||||
SHA256SUM_DATE=20260514
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user