commit: e4ba33a52f2b58c76d32302e2999e77bab380d27
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 12:20:35 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 13:39:15 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ba33a5
sys-kernel/gentoo-kernel: Bump to 6.6.73
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 3 +
.../gentoo-kernel/gentoo-kernel-6.6.73.ebuild | 144 +++++++++++++++++++++
2 files changed, 147 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 7887c4d371a4..3658a6545cdf 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -51,6 +51,9 @@ DIST genpatches-6.6-80.extras.tar.xz 4060 BLAKE2B
c83e6d97ed086ae3b9f3d6bf4cd29d
DIST genpatches-6.6-81.base.tar.xz 4254652 BLAKE2B
20fe02a8fe886c04569ba9490de06956b2927014c1d023dda7d55c4386a0cefae6ee3d4d8138e824798b2d410f52024c701ac0b099c74080d4e3e28a8ba11e8e
SHA512
f837dd14a9a5fb677c163660e916751ee6c12ad8cddd6dbc011be87b083339083c4ce110e43e0e364d48cdd9da769ffb8617bcff650068b516e03b33d0996ce0
DIST genpatches-6.6-81.experimental.tar.xz 5760 BLAKE2B
4f4397b8155470626d119604f7e4d392115fec5f32daf924ac34f3b9898707959b04374338d1ff2928c5e766a51647981cae6ad70662419545c7d41f31b66145
SHA512
83f9dc3099511928141881da7389d28751a421b61f63df6807de5283167fad7aca4ae5a87ed2fa7c0f61b89d2f6eaec43e65a5ce4cd70e2e838b3f7da5743103
DIST genpatches-6.6-81.extras.tar.xz 4056 BLAKE2B
f8999d149063deccfd69f06848c39fa87de113d9978b4537e9699b1c9ed5896db929bb28e06919a13c7bf425c5e17438086ab5714b2cff57c0e1a79c097a535f
SHA512
99616bba8411fa7a4bf1955abe97612c514f4c299d97b2bbedd467fda98505525545b3a65aa679ffd3171829a99f8d008590503fbdfc14bbb45552b1f85f82ad
+DIST genpatches-6.6-82.base.tar.xz 4255664 BLAKE2B
812e8caabf0a73991504a728a8abc5a61a0b51ac073be06bf18b87e6de0291fc568ce4dd2dea506ce0db648669f2341843e608d0184cfb4dc233d71d57518137
SHA512
5fe4f880baab09d51b2fb36f3501298ecdfa382f09699f64c887ac39d84788ed4c27a9f7fd1d5766dbbdf8135956f0f81b4adc09c2558682f8f7dfb1ac7ce6ca
+DIST genpatches-6.6-82.experimental.tar.xz 5764 BLAKE2B
1d52253d3547cad047c825f1807ad6720b3daf3d02f5c0517db4b92aef053a39562d1c291bac727d2fb9db075d493664fd26b641248ee128fb89856d4aa08704
SHA512
fa20e0badf82f298aa676c710cb643dc4ea1b2f46eec395f6f9b73949416d4677589a361d8e652dcccefa35871923ce5884e16f821d85504f64e5d94f9df2651
+DIST genpatches-6.6-82.extras.tar.xz 4056 BLAKE2B
e2f0c26e84f51fedb421fdbaf2afad1ee5c456f3b700ae9232ed8581ba73db2e5de69f685651d8bd7e9ee547a34712367ce7515facb33c7cf4c707c5e10e6883
SHA512
36c6830ed793159fc09139b85f87abfa7c195726be667076be5c2fbebeeb75dd508db52073395b9bca3a53c3496cc3c49e59d9717db8ce53a301f17ae9deee24
DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B
e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56
SHA512
f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502
DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B
2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016
SHA512
45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B
a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d
SHA512
7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.73.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.73.ebuild
new file mode 100644
index 000000000000..3cd7741b4cb3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.73.ebuild
@@ -0,0 +1,144 @@
+# 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##*.} + 9 ))
+# 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 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
+ )
+ 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[@]}"
+}