mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-kernel/gentoo-kernel: Bump to 5.10.212
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -4,6 +4,8 @@ DIST genpatches-5.10-221.base.tar.xz 6529836 BLAKE2B 80524f1cb43bbe119bef0fec62f
|
||||
DIST genpatches-5.10-221.extras.tar.xz 3876 BLAKE2B ac56b5468f4d8185b969da1994b2130910969b90f5717fbd6cb600549ae2ff36625e8887396fd37406cba3c805fe61885b35cd2a5d4cc4ff3ef8ce750d80bd4e SHA512 3466cc36ced28964067ec83fd2c5febde70874b921cf4f9800f597d9757b283fab07ee548aeb4637003eab504dc6e85143436b9110fc3405c2fa9fbb3644e90f
|
||||
DIST genpatches-5.10-222.base.tar.xz 6576780 BLAKE2B 8ebff676256f3694cda64863f17a38ca91b45dd70a441198b26488f52334b0091a0975619f8dc64ceaa8f11a09c2d251ccea535ce76a17d2674268f8dedcd724 SHA512 b9a60f9ae5fa4bd8be277a0e421efe2950aebcc026f72bc48ebe8f9a976171496cd429539fbc386e0b5d3108a78bdf1f34e39455f6ae961f6fb87028b204125a
|
||||
DIST genpatches-5.10-222.extras.tar.xz 3876 BLAKE2B fd8002a9b43af80fcf5cedc8166989ec7f4cf5d3586e48c6fcf057b4e2569687610d502c256b839bc148d9aec41f9dc0af9811a25b21fae43499455ff92d6a30 SHA512 13b7bb8c2d6e2f9ec660bcfcedd21b4b676026ceef6752d77b9d3a0fc553837dbb9f0a0ba291a73bdd4f469034ef29aadfcff21a8dc3fdd077dfa7b28daa5a35
|
||||
DIST genpatches-5.10-223.base.tar.xz 6584808 BLAKE2B 41f0555956697c8963664a61259c70160f3473f4df25d676600acba478a3b9ebf2382da6d3a4a0ede98c1c8b5f41e37b15de841721db0b55716c79356255578e SHA512 69aeeecdcc0de166386dd795d5b93e595c81ed36833f670051b73607f6d419345b452847517aa1532a08bf3b9009603aea3c64b693c76a3a3f8cd42fae6d522a
|
||||
DIST genpatches-5.10-223.extras.tar.xz 3872 BLAKE2B 26ea7a17b505ef6ba61301999d962c745416164cc047aa5049d6db192f714a73ae0e89d5faa74724820524f4398b2d2f86d00479f28c38bdfdfef52c03bc5ccc SHA512 12b85bafc1b22ba4f310f74fe18c936e6d251787913d03849b117268e4c15e9b0ecf5cf9bcf8275630811e2babc845cc0b817b3d50a9c19fd548a800da537932
|
||||
DIST genpatches-5.15-157.base.tar.xz 6083340 BLAKE2B da2898a405bfd934e761180064107f4d87d144105ade4c825ff9299cb4a0b57324927cf34d3a55fc7a0227d9db053caf5b0f8159ca0ddbd946d31459b2683e1f SHA512 04c2d322ec1f0946b7f0f551e0fc0342da749cade5f20f2da1a1e60fd0cd946593a797c053bbd0eb8121f70e69f6766f8c945a99fd77fca3eef89aeae6d5b871
|
||||
DIST genpatches-5.15-157.extras.tar.xz 3936 BLAKE2B d559b4c240ab2b8a0b522d846c3d9707b0beacd800e137517c29b51253283b47caf05f7facbdd7be747255dc2485170ecfad04a3ba5293d749c8d22ae60886f7 SHA512 e99880adebd2d08067fbcc73bf01eb844c39cef7c06e99b95c9622949e38a2ed58045f27e71bde4d5321dc06212848c884c8f4added4c41a8a1197cd375091b8
|
||||
DIST genpatches-5.15-158.base.tar.xz 6218288 BLAKE2B 04f37b07da08635e59afd941a96df1f55683bda62fc72258005c23fac7048995f670376b57a0d4dadaf2018d1f5819da5239c04bec6c12e0e50c3fcf24c451e8 SHA512 b7d29d8d1f58b3cf534494ace74091042834f6c237667d9b1ae4dce194e5fe7ccef1269560b5edf4fa4eb4c8b9dacdec7bd7cb96bf22e95a93be7946f7cc2b36
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 11 ))
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
CONFIG_VER=5.10.12
|
||||
CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
|
||||
GENTOO_CONFIG_VER=g11
|
||||
|
||||
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
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
amd64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="arm? ( 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
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# meh, genpatches have no directory
|
||||
"${WORKDIR}"/*.patch
|
||||
)
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm)
|
||||
return
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
hppa)
|
||||
return
|
||||
;;
|
||||
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
|
||||
)
|
||||
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
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user