commit:     639819f660498ad49ec81970339dabbebf2da311
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 22 13:57:55 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 22 18:50:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=639819f6

sys-kernel/gentoo-kernel: Bump to 6.14.8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |   3 +
 .../gentoo-kernel/gentoo-kernel-6.14.8.ebuild      | 151 +++++++++++++++++++++
 2 files changed, 154 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 3b61d33a7df0..2646a88f0190 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -22,6 +22,9 @@ DIST genpatches-6.14-7.extras.tar.xz 4052 BLAKE2B 
1089c810902b96b2d17ebaec90ed48
 DIST genpatches-6.14-8.base.tar.xz 707352 BLAKE2B 
34edde67b70c11a911daaac12859b5c70708325eeb50694db276f4db877fe01e78cf2e4f431d17813b1b537f17b522f66f29611e59fb8a3835319b9416272468
 SHA512 
3bf757bec0226b0fceb6b9f36dec8e9bc216155886e1452eb417906ea623bcc99a47d3dde6f88bc91bde85a0523feb0478376f4d089669493f10ec6e6b9d21ba
 DIST genpatches-6.14-8.experimental.tar.xz 79820 BLAKE2B 
c14deff3a3a80ed66c15541a4f270bc39ca3926f371ce4e736af65543f482688dda8c1cc217c6e103ccbc704c97f946cd2ddb8c9e66437b92af7b9798d98d02e
 SHA512 
2b072527679855a740f88c8caf8cdf8614dccadbc8f5347a003c0806c94a1f7c491baf72cce7704386001fd42d4e544962ceb944f4d46f872d8a3810e7fe98e2
 DIST genpatches-6.14-8.extras.tar.xz 4048 BLAKE2B 
65e31008d0ac83016ca1033eae0910fbdfa0db2cc976ca9fd0fcb431f833ec38a1f3e7a9cc74f229f20f919c6715ecd8b49b2cca142bbdb3173b98ffd703f58c
 SHA512 
42b3bb027ec5b5a4b0adc2d0991ea303862727b9f4473e495af45349b5aa31f8af0a9467a2414baf1bbfe53383ab267e63ecbbc76e34c16e7ac4705bbae48b34
+DIST genpatches-6.14-9.base.tar.xz 751104 BLAKE2B 
54247d1f3e1639761408bd622efd9ecb1311ec87f5b231ab6e243829b2ef0ab828b7743b38599b655684229875fb07127c931c2bb1de65c05318d54b832ba7a9
 SHA512 
de7fff5b69767c1fbe7d3dabc97be4777f22c90a47eb137a8a69756ed0fca36a9b962650215ec91b985ad35057bcca0e2a824c71b4d3cde0100e2b7e8e8edceb
+DIST genpatches-6.14-9.experimental.tar.xz 79816 BLAKE2B 
f72de3acdeff2c48e01e488144befceea4e8cd7fbc94b1bd36078b998ca6da3f807db1e2368fb48a8f38fe80627d94583c9c26457f8f560a80642c18ecd437cb
 SHA512 
d678dc235b5e120205e093ddaa86349dc2f2f6613596044a2fb18f94b29da15f4ecbd02fb14a4c61ab1e18b7fb43a494fe8f12d7de01efa45de27ac62bb0406c
+DIST genpatches-6.14-9.extras.tar.xz 4056 BLAKE2B 
431e8bd76cd1edce40f831c16c9971fd21ebdddb7720bca0028a70c42fdd97d483de920248eff645cb5902684df40b21a7b68ca6e714831b216792c4a2a910e8
 SHA512 
5e112f31f2b0ec5d25d2d19897ced19b3d3e632d272bac4ae1a27c701235e3c981eb7bd95c176f6a9f9cefbcb0304a1d48b99aea4d091222ac5781ce5dbd4682
 DIST genpatches-6.6-101.base.tar.xz 5077712 BLAKE2B 
42eb11265006d12e5f67d25d58dcd1188ce6c8b7fe5cec8b176030f36910ff77da5a362e1bc41d3e52790c5e77a2a71adc57f5e107a5818651226ed98a27828f
 SHA512 
759cf775322ec77c85c6b4f5441c8a962cb75e13ccc8d73d366cebcfe75d97b688deed9c9c4e47257db349f950f33f5aa2a718fb2bc6a7a7cb7d75afe5b70d12
 DIST genpatches-6.6-101.experimental.tar.xz 6052 BLAKE2B 
a09a12087a756637a6db92e8ce464e7f875f96ce72f860ccb79ed212c1100c675decc2eef84da9c85c62dbdbe6c513969a8412626acd5c92a6432bc6a5fb0d70
 SHA512 
2e597b4aa49af109adc04642fe76d26e2083c36d0cbed4e518b76515cafdc0bbc98c307e6addca7edbdf666313657e9ce718c42f6d02d647d018c65626a21003
 DIST genpatches-6.6-101.extras.tar.xz 4056 BLAKE2B 
d83b765a55f25c4470ab6e5b3e8d2a00ed0a7dde2c5a29f2d68b18e6ae3f084cb653eecc47a9bb372b1ea9a65b727e6d9227f359547ca4a5fd70cc75aec41598
 SHA512 
516c38a41a9a3116b71729c44b3cdbe3183afb8f061e1b860d11bafa37415663807d470e8a9b4a35366b297a2946143d1393e46c6a2f755de82ef8f769121d1e

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.14.8.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.14.8.ebuild
new file mode 100644
index 000000000000..3fe9288c8510
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.14.8.ebuild
@@ -0,0 +1,151 @@
+# 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##*.} + 1 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.14.5-gentoo
+GENTOO_CONFIG_VER=g16
+
+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}
+       )
+       riscv? (
+               
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
+                       -> kernel-riscv64-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 )
+       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 | 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
+                       ;;
+               riscv)
+                       cp 
"${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               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
+               "${dist_conf_path}"/6.12+.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[@]}"
+}

Reply via email to