mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
sys-kernel/vanilla-kernel: Bump to 6.6.162
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -23,5 +23,6 @@ DIST patch-6.12.116.xz 7107936 BLAKE2B 58954f157f478dd8b02ea9c6c8094cb4e2f32a930
|
||||
DIST patch-6.18.60.xz 4950088 BLAKE2B b888e1b4bdcc00118dd2eefb658e658180e82f68258bc5d9e768d5f00d5e3d5feb0f4d6e283c913e584e853a4350c2662156253b77216e9964fa1796319b8e5a SHA512 fce959c563635d4374cba148b7f1b8b64a143e5b42bd8e86afee7dfdc76b9d887afb5a032249ac16518ee95e73b3c1a459f15926a035780493c5b3b9fbd3b51b
|
||||
DIST patch-6.18.62.xz 5346536 BLAKE2B 591ac3af4dca4a05ff2c47e6bbd9429260ed5888402e31cb12b2bcb7f5939fbf943522084214b0edbce2d1eb2e44124e9516c3f985098b951eba02efc7bd3ad4 SHA512 ca7840c93afbc1d05b1f06b448dfe3fafa6de2ce4dcf8ac9a02db9e59e09421fbcbc51177df887687c202f1acf68d64b19bd512971059babc4382720f1988de5
|
||||
DIST patch-6.6.161.xz 8167384 BLAKE2B 86dcf0ad126b91f40acf73ceef8cd39db5877a08f8393c47ece89b84e9809e8f3d119803ce6dbe61b0a623834f8a5b0e7a23aa32338a5e2042afc0406716976d SHA512 cf090f0092ebd645b05a6326d3fea928dc1c1bbc3cb5dabfd44b67213c5ac2e2091a7aa89414e7951f341f2d251ba2caf9cfba25b4af6d126928d2a99c9a748d
|
||||
DIST patch-6.6.162.xz 8168456 BLAKE2B dc2d2ce01c7fac90b2a0e0726beaf0240fd09b63cb2aee6c381f5b154e3cf1341da6f9c1060a9c3c2a1815f9d355e3724092d319fc7edccdf02bb6668704c4cd SHA512 0f3069278c32abb551572d7da6b3d5c173cbd4dbe5d8c7df3180fc97d6049a0c320e2d29340165561386424f39549f66032f582056d4aed1df35e480ba76404f
|
||||
DIST patch-7.3.1.xz 14364 BLAKE2B 8aa957abf4eff5bf0b52637e18fa90f735d6b2663a42ad0af32d7f63d5becddd76e715c5ead43f9f26eda44b51762b603c34d389306ce525a21b95a5fec01faf SHA512 7b46c3228abee0e682008297c7667d0f68c87a1fcf25f096649748604b8e45e3f1561405d3b6d3f1a0adf1d4f6d8ade9f6dc11e5c89800a093e1d97187c94bdf
|
||||
DIST patch-7.3.3.xz 213820 BLAKE2B 6f316eda911dce9e5e390b3e8aef28cc9d5928bfb3ab08ead4f3038894ff95bf83ac9f0a60fe5822f8859ca3a52a0e36d407d06f893e64bea81f459e7113d8f0 SHA512 4f7deced294e4b7baf8b2a2aeff20c58196b3153a71f763aa733089a6c4bc44c44365d007ebf9cf55950331d304c922ba2fe0624f430a000b2a171a7f49f34d9
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
# 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 git.gentoo.org:fork/fedora/kernel
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_P=gentoo-kernel-config-g19
|
||||
SHA256SUM_DATE=20261106
|
||||
|
||||
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://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-${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 | 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="-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"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user