mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
sys-kernel/gentoo-kernel: Bump to 6.12.31
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -19,6 +19,9 @@ DIST genpatches-6.12-34.extras.tar.xz 4056 BLAKE2B 282da21aa2dfc4763367910b158ac
|
||||
DIST genpatches-6.12-35.base.tar.xz 2043972 BLAKE2B f14a91324f35ef46571ef78058ca68363ffa3c06c273eaa8ae85c72df84ada62f433e6c9a58098625cf0b8adb25b6a33b48ed1927452853700a58798552f3b46 SHA512 c5bc196aebca5ff0e51b8a2e201d14b6a029ab46f1ef8ee2a2c716e78a27b7a529e4f6c416afb898f1ca8faa5eedd1338197a74e84aa278b5c78209e6afe052a
|
||||
DIST genpatches-6.12-35.experimental.tar.xz 6048 BLAKE2B dee9f5918694464d14db9d66866c461eebe30b70ba57f884fd9424e211cc6b6702500a7d970c784c608ecccc7a4fef78c52ea55dfa12763f3aff461686a5cb2d SHA512 7755c72d3505161a97c90cc38fa32dd7234b231b54c8344acad8eb5644243816bf63608103c4ccef000b12f7f635c576d80252a008ee737a3abc042129794a09
|
||||
DIST genpatches-6.12-35.extras.tar.xz 4056 BLAKE2B 5918c54d7e26e3e2520ff92279da6b5495886432ec9be3247159bd76b40bcd6b2f203da8e7c4410c982e6a040330f0aebea002da551f67e028742db2463a6f89 SHA512 871cccac1b4d03ad192759f5a01d7992430e6dee1a983d7e0f952acfb499b740ad3d40e9b5a63b92d2a78aa43edd98b4221711a90b5013569cc1b0f18e50557e
|
||||
DIST genpatches-6.12-36.base.tar.xz 2240564 BLAKE2B cd68b5d7fff73f5fe0c67a8eb47c2094a0ae57f304b5a4798ccca7410c5f514fc1f9b2fccb65e639886e48950ed24d04ed44ddcdff3d5223e336f573f25a501f SHA512 61796173e1e286c352d3d683be007e4336e646cc1efcde0528b12b38e484d104c9686440aa90d096cb1ebadc715e46899e5bda0f8bd070190ed73e0291401f19
|
||||
DIST genpatches-6.12-36.experimental.tar.xz 6048 BLAKE2B fac20aa6031bd73641bc89ee2ed863c1fd1232935451626ff1f3c5e5e800cba20f76101ee607dec04efebf08310e880c45e9561a44ec3afcbd745a998667933e SHA512 8a98ee5736f57e5b9ada6bcbe39aba99393f6d76f4cfcb1deabff6e9d802895c18c8daa477fe422b87841bf3b815e43ab7fcdbe0bac8290d9962aecd602d63d0
|
||||
DIST genpatches-6.12-36.extras.tar.xz 4060 BLAKE2B 034e0d065982369815db90efd84209bf88c73d19a1f4fa41b6c4586b0197e1e502df00b63f8d99c7c1eb0e32fbf99c0187b8c304adaa0f2f624a722e50a31b21 SHA512 cfbb8e69bf254088ddee442c6ee1d293406eac106b0c8fb7d926ea2778260664991ca05c5efe6547b4740ada1010057001856c5d6ee864cd73f55cd8ef78d5fa
|
||||
DIST genpatches-6.14-7.base.tar.xz 632760 BLAKE2B 12a26d7a4cd6b24ae3dc36648b0e890ce3ef20b3eba0583cd920ca200ecb92a6405dc79e2a58700e125f7ea2385db8ffa0f7a829e45f1204d19ef41a91a6fc99 SHA512 a0a0df6ae8f6c7c26594a55f6b071522b59a5537501ae78b569418a8cbacee5ad02fef705be7eb22468bb288a56de89b51273f1d32e52727de6046d878b28e1d
|
||||
DIST genpatches-6.14-7.experimental.tar.xz 79808 BLAKE2B 913985f9276088dd965e6bde50b83088a298dba576c728b8254b86964ca5126d39f2a39ce8fc4441171acf4d6d686f81ee1012c3ba532f20e99494dfa36a3c3d SHA512 035c4ffdc033e4565be7c3701ed505efd780c1d061f13db77ff7b75a34d8d36ba01ec0aabaeb10ecf8e574149ab4e7a8292cd7b48fe34afc65eda8506fa4d615
|
||||
DIST genpatches-6.14-7.extras.tar.xz 4052 BLAKE2B 1089c810902b96b2d17ebaec90ed484e9500fca9a813058815c7e951119e903fb544db3295ee47a2ae08e23319c03239261803fcb76d3ef42bcf626abb5ca6dc SHA512 6d1dfdf3632ced4e7202d4f93a5ae1e65fd80379fdeb466f95d1f1bda9b005a00dc28963c25b0dd07a48fc06e189b4f42bb648bab9507a116c555eb68a02ca4e
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 ))
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.8-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
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/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
experimental? (
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz
|
||||
)
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
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}
|
||||
)
|
||||
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}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
"
|
||||
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
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# meh, genpatches have no directory
|
||||
"${WORKDIR}"/*.patch
|
||||
)
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | 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}/${MY_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="-gentoo-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" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user