mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
sys-kernel/gentoo-kernel: Bump to 6.1.176_p1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -34,6 +34,7 @@ DIST linux-gentoo-patches-5.15.209.tar.xz 12568 BLAKE2B a94cd6684dcc04d6138db486
|
||||
DIST linux-gentoo-patches-6.1.174_p1.tar.xz 16252 BLAKE2B bfb8f91d28af75e27344110c1cff7822e7e10b02bc16ab899a89938f131c7c8863a4108dbac50983598537143a037b44e09459d7dee7f92a4143c0acec9a3980 SHA512 959a12016277a1dfb9148bfb232a98b267c256f9b4df12fa323af91ff13b3e15bdcf734b97f0b6784be71227f693a49ba371e6b0c4fa404e4c15b16e6962a18a
|
||||
DIST linux-gentoo-patches-6.1.175_p1.tar.xz 15060 BLAKE2B b6d62015cd2fbe584a1b66001152a9f00b746da2b88f692f9b502168b05a548c687522554916eccc91b730c5ce40078629bae1c59b4e5f4b65264ab2044a6d29 SHA512 cdcf8dd5b2a308852b718423636b326ec4351abae2b91c9cc4b5d098ede4f34f1c6b8c3af3a5dcd2d1e0a709cffc6f7d35a77950afd726eed222cfbb02492004
|
||||
DIST linux-gentoo-patches-6.1.176.tar.xz 15988 BLAKE2B 3e1838080964d6608878f75afde755c42cfc512f0dd2ef4a2adeca4576e785ce97742f8a82a9a5d917717afbc2b63f45b42caea6a316c6c0f6a572441bd1a578 SHA512 462c0789da0cf1b4bcb4fc05a53daeeee9ff00abca80a43623d59a922ad9298db71196ba09b5f6094eecb8fd98ca922d5b0c47f0e1aa81e3c8f4ab4cdc95a478
|
||||
DIST linux-gentoo-patches-6.1.176_p1.tar.xz 17056 BLAKE2B e71c5c4877e15733111a8c2361160a23f32f918c2c889d195eb8c23f347972c847dc8d6f169ff918cd12b377ccbc0ae6ebe9dfb7ff8cb33710abfc5353a3b74d SHA512 1c1ffa6e484337b9354cb44974fc10d4681d70aff8d41c4f14b0d281ae4bc2f27d8f72502e15508c224e4f2259e1b9ec8964d2f20ce58427f67eb09c0793ca1d
|
||||
DIST linux-gentoo-patches-6.12.93_p1.tar.xz 18752 BLAKE2B 07bff76f750abc4afd82ebcefc4e57e8f70264212733ae69d879d1805d142bec6f699daf2b77c3b653ec274a4c5b5f12c3d80607014487acb27bc00d18ad2d87 SHA512 a0316fe68d9fc65d5fd3390028dd254afad9bd2692872fe4875a721ecd12e918b65f44f576253e70594a1c4a5e1716726c5e3cef5999a1cb1d2ea79937a96b99
|
||||
DIST linux-gentoo-patches-6.12.94.tar.xz 18756 BLAKE2B 6a5f25ad23d83819230b79e11f833bd301eddc764cd61e30d343b929977bfa3377433e75439a55504bbbfa950f9fee3696ac7849505b9356c7e988f7bb252d02 SHA512 a90f2ec32f4f0e7f3e208c80d25a1336e069733fd4a944018f0e54a74325be75595e75e32fb5f15261318a86d55ccd508b5fb3e4fdf4c27f9ba73090c5af5270
|
||||
DIST linux-gentoo-patches-6.18.35.tar.xz 13464 BLAKE2B 31e1338284ec8dfafaf0cd0b54335fccae7313ec4ddcd95d0fee5b936c8b66c94f600c1dbc02b9cf8681610e14976b535ab1f0650080e59da3e281365e2e3e8f SHA512 42b9cf740c295e8b9269a9dd8af232d366d62938c7cbe26110ad811afdf7541f4c5b48f6f0bee2f6012f664b960b3ab0ee50c322f553b650456458bf1eb9a35e
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
# Copyright 2020-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-${PV}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to git.gentoo.org:fork/fedora/kernel
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_P=gentoo-kernel-config-g19
|
||||
SHA256SUM_DATE=20260619
|
||||
|
||||
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/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz
|
||||
https://gitweb.gentoo.org/proj/dist-kernel/gentoo-kernel-config.git/snapshot/${GENTOO_CONFIG_P}.tar.bz2
|
||||
https://gitweb.gentoo.org/fork/fedora/kernel.git/snapshot/kernel-${CONFIG_VER}.tar.bz2
|
||||
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
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( 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-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-x86_64-fedora.config" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-aarch64-fedora.config" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-ppc64le-fedora.config" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-i686-fedora.config" .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_CONFIG_P}"
|
||||
|
||||
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
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user