commit:     8663047094eeb3c1e9bcc5c56d74d9d2660ef44e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May  2 11:17:41 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May  2 16:00:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86630470

sys-kernel/gentoo-kernel: Bump to 5.15.181

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

 sys-kernel/gentoo-kernel/Manifest                  |   2 +
 .../gentoo-kernel/gentoo-kernel-5.15.181.ebuild    | 136 +++++++++++++++++++++
 2 files changed, 138 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index b08cf8483609..619a6efe58b9 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-189.base.tar.xz 8042552 BLAKE2B 
16de78091a708a27edcad6ef82f
 DIST genpatches-5.15-189.extras.tar.xz 4056 BLAKE2B 
3c6954be8437c63fac20b7aa8e8b7f15a6f58d853d143fd4906ced12aef8311aa6bc83fa52c610803f005d2bd2020e24ba14574ddfc2b847f06d21ac66dc7700
 SHA512 
3082eb0a0dd2204368889920884a7aaee5dd4b78a447080cc8c982a0ffe8e41ebd44e888126b492dd43e2b73eb6b98fa242ad6c6699c698bfecbe41b1bd4becb
 DIST genpatches-5.15-190.base.tar.xz 8101144 BLAKE2B 
7f59ad3ef45a9d41917a0e6ff0b6d9e2d12682f50cd9cf26075d92239de7477d00f087a11f0aaf924d323aad2645a66f6169c6ffa60786125b7879c4e3b98fd4
 SHA512 
9765b0bcd31235a3a4de76672e228b49b4977e01df92ffc9530c629c68d58d268e7330093154031ae48305cc4e85372317a2f5734f28aef898ea15e6f609e4bf
 DIST genpatches-5.15-190.extras.tar.xz 4056 BLAKE2B 
ec3371e42e65193cdc15b3a659cab4d8a386e08c0ad80bc02d23742dbf3ef01409d30f49a668a7c0f828a50b186e8b2d191675f2b983d9dc90e9ed68613c7034
 SHA512 
3cc7a9320648f3de00f30fd390e4fc5c9fe1446e1ee66f56c8b2a99c8f9774deb696ac42e91422df53bae9196b11208ebc56320a324aa04736f2fad38b5abe9c
+DIST genpatches-5.15-191.base.tar.xz 8190232 BLAKE2B 
af7633f6044fda60026cb67fd31ebb1debf1324034ee3f87a390ea8b9e1e31ef6b22432d83b0482eac72932bfaed0c6497dcb2ce8f56e9f07f3d43d2335b802c
 SHA512 
361256a85981a25cdca9ff9aab199443b200ea76e21b7537a2a8b72bf2e59376bcde306fac740ca91dd1cc16988aaaea6d411f24d7234efcf83a51b2599a05d1
+DIST genpatches-5.15-191.extras.tar.xz 4060 BLAKE2B 
dbb0e74f6647b392a94bdb629ed1363af4b866deae7c306ccc4039937d14356eded2873c1fc7d4005028e98f267ea38c7ab7ed1c975a4fd54a6d7beb7f4a3d6f
 SHA512 
068fe3e6a7914ce1d43dc532d466be12be6a3e1572a7dc752f0dcbbd8e81c4f32aebf20aac2b64790fca57203d21061e32d558adb9861cb6870223f87263aebb
 DIST genpatches-6.1-142.base.tar.xz 7066580 BLAKE2B 
f70557aaa04402c822b504c0bb4b9ad4726e849186e096d7a5b76e3d90fb7b19d3718df61a950f87dbe34804eeabe1736c79267a5256b357afd8354b4ef7044a
 SHA512 
d1e4992f200b1af57a44db5f6e96ebd93c5e8bc6c731a67f26f096964f98e8156d56e75de313f2a785a5220656d163116e4c0af79bbbd45c040b7e414ce39bea
 DIST genpatches-6.1-142.extras.tar.xz 4056 BLAKE2B 
9209194c61f13e886f7a4677f1eb9390e1e4eb6fd95fdb69a7d196faa7a3f6c2ca740e29964666e37951db72fbc79f7d31a7695556609e7651f1e90701962fe3
 SHA512 
de10df7d2ff2510313cdf6d74bf085113b93380cf2065b43bb4605ea9c173c85a511a3ed20fa781a53df24e65ec59ca53dda564ba8cd2902e7f35ba0dd54ad09
 DIST genpatches-6.1-143.base.tar.xz 7071932 BLAKE2B 
6a9c6027e0f0ae2ea5c900749965730c186b347933acbbc6fcfcbfc8b1528ec5ce82b43a8824ff0d9b06913b3f57c5982f031578273f7ea86e57859d0a6dd5d2
 SHA512 
d91dfa2ca4c8551db3bdb70e8ac0a215275ca4d5e0f788b28bd358747bdfbc23e422792ab5de7983c9e184457c43999f1484c11ec25b8fce5f84a5a6822a64de

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.181.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.181.ebuild
new file mode 100644
index 000000000000..e36dcfaeb04e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.181.ebuild
@@ -0,0 +1,136 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.102-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
+       
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}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug 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 | 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
+
+       kernel-build_merge_configs "${merge_configs[@]}"
+}

Reply via email to