mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-kernel/vanilla-kernel: Bump to 6.6.77
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -47,3 +47,5 @@ DIST linux-6.6.75.tar.sign 989 BLAKE2B ce84f31ef19ce7993b30d119ba7fa1fa702692b9a
|
||||
DIST linux-6.6.75.tar.xz 140469716 BLAKE2B e9cbed2003a5daf377217c8ab834710b97c3f8fd38a7e5e57aa87a2471e990f4a85ac4a951f9fbfcec28cdf73295a44b00c33c9d5537f1d9d60e3c5fbd9b8a17 SHA512 97a2cda9eb7c60c8020754a8a90e42b9121465a796e1aaa313e2a2124faf4a7e8f864d0be208f645c8ed4b3b1c74cdb93b180fb4b14b8d411e866b3eba41fd0c
|
||||
DIST linux-6.6.76.tar.sign 989 BLAKE2B 81bf13010c3eea6a17b2e6163ddbc98682a0d4cb2a7f4b233a12eaaef339ef81aabed35ac024bf5a95fb3ae79ce16338c7b5defa74ed5d902da2cb432bad51bc SHA512 bb44541205fd7a71760d80987dad31c895e6bac72aa182729e280c754e686097eab2c5c67cfe4ab9ae2f67614580e5263a9df073864cd790e3040d381d875d3a
|
||||
DIST linux-6.6.76.tar.xz 140444920 BLAKE2B 9ec8a2cdf7e97f4bb622c371b2f56a65b3cb4bbf412dfafb2554246c9b334373a43ccd2ce032d981019cbdf5e66ae598e241a9b14e89f2b99c1c9989e3c3a0b5 SHA512 1288e2d0a68b214b41566c6aaeb9ca7dcbdf015ad2c5c3eb50b24e2ef07ae0309e71598d79ce2535138c7ef80034d13717cf2f6fb202a73132ba0d6565356d26
|
||||
DIST linux-6.6.77.tar.sign 989 BLAKE2B 02fc18a82ab42cba801ec2b81a442a5d9831dc3f57f5e35474b3f32baa760fa6c53259e7e7eebcb3476600436c7ff4b5fea527aa20ab0032e24164df63e96e4c SHA512 4e6037f60db35b529c0cd4880f906e2144d528607bd2b260b60d6d9cbb53a2cf512fe71ffb64f4cdb3be58be16751982e08d07fbac697097ce82686ca48e945a
|
||||
DIST linux-6.6.77.tar.xz 140479752 BLAKE2B 4fe0f5d99c9b0c40190fa348910f412925757e865261df2a452d370eed6db6b97d929f2441cca4d1a892e207a4e6fe394df4f967f74878173cf4f72640c11c66 SHA512 cc9a046f102ffe5c255854e24584938678e3e060c9558b4ad72393e1555ab785eb44c72130ee583c9c64c62adb98a74fea24cbe32bc96b1b78e173c7a2226bfb
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_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.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g15
|
||||
|
||||
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/${MY_P}.tar.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/${MY_P}.tar.sign
|
||||
)
|
||||
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}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="arm? ( savedconfig )"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-kernel )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
verify-sig_uncompress_verify_unpack \
|
||||
"${DISTDIR}"/linux-${PV}.tar.{xz,sign}
|
||||
unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong)
|
||||
> .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="-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
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user