commit:     da8d606cd5f7bfb2c605cc6003f173dc4703de53
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 11:48:17 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 16:03:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da8d606c

sys-kernel/gentoo-kernel: Bump to 5.15.139

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

 sys-kernel/gentoo-kernel/Manifest                  |   2 +
 .../gentoo-kernel/gentoo-kernel-5.15.139.ebuild    | 141 +++++++++++++++++++++
 2 files changed, 143 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index ce2b63c115aa..613519b24680 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-143.base.tar.xz 5634608 BLAKE2B 
a00b2898db47b874fdfe2e2bf0c
 DIST genpatches-5.15-143.extras.tar.xz 3936 BLAKE2B 
c942135c9120024effcc516070b81aef19de95969e19c95b7c222ccf9ba515db329735596f3c5dfe81f12ef29165b898de75988f0c632cd228b6d3579e3c5648
 SHA512 
eb9d0661d81c1acbf5884f3ccc864e0b110a517556bd62020f41f3fad77c32e57da5a7c1f6411a4dc7d9b85ad8fe9af4658613b0a3e9484fb609a7f9ac1a3f39
 DIST genpatches-5.15-144.base.tar.xz 5663416 BLAKE2B 
a4347f6e6f5916a3811ddb7ce19a506f6f4bb691e57ed5229adb55d90aa2fce14656d1a77d63539ef5fba8c0a5ed8c3cd0933c9f286694a83c65898b77015e66
 SHA512 
8f4a7429a9673cc2aeffe870ac1f742b6d111b0fb72bff74b3407d13eaaa6200ae7b931449b7c5923c215428b2c55352f728d60a09f1ac7907625f37a454a3cf
 DIST genpatches-5.15-144.extras.tar.xz 3940 BLAKE2B 
b605a72df3376503172f7a3e7c170fd6b46490061a8a435230372c12a95cfd3deae488639b3ca579c602e86d1e34b1e11c4b873bfd2bc037520df5f1906f6caf
 SHA512 
5db17e336aa1cd4b839b5e4b595e632484af239a662c7f631009a10811be3b87188049eb8a576543f132e674b382b5ba9d9af94a26b3d5a24fb4c654f6a3e2e0
+DIST genpatches-5.15-145.base.tar.xz 5716840 BLAKE2B 
ab0ea42db784aed619fbbce1600fab744a083fd5f47067210b3d3f2874d6d1d399f2aab0fba538865b584f7bd018a4ceec569cfe93ab32ff250bf298996be3da
 SHA512 
8797528fd32dfebf76a804ddb4f6adf07d666758c8f0eaa18a694341872bbe2c3febf44c56268f1852eaac0afe36e6e6c33f287a389f4782af673ce63836a574
+DIST genpatches-5.15-145.extras.tar.xz 3936 BLAKE2B 
3e0d75d0029aa817b3e7f184b34150adaf337c05f37122a46290b24d4769a1ff1b5fd82adc2a50b09f2b0be235ea9f4f06a4c3111dc68cf2acccae1bd39a0d67
 SHA512 
4f3e94e59bffcf5a9f6f7ca98c34c7302ad843860532e6022f6ba33d1d9c1a89b3dba606ec771ccbf063f01808fc51b9a1162dd8aadbf898d17759488a04ef5d
 DIST genpatches-6.1-67.base.tar.xz 3816044 BLAKE2B 
9116263f1f3cbb472ad09ad785eb643cc4deb16f94936196c1dbb3d500b6e20447d07d434f4fbc59fe8cfc03076da0aa0ec22a3c6d93e09d0dfed6d6fdfe7add
 SHA512 
609935fec85285a34e4fa6032f552230aeb7aed1caa867d34810a25f68c2295e0a8f886e0a093f111b1623ba364cfd6e17b237d670d42c8c539778810a02f681
 DIST genpatches-6.1-67.extras.tar.xz 3816 BLAKE2B 
6aa8e9614221c2b9d84df9f75e5b8eb530ae8752b406ad698be86a8031b47940f9efb1de9bedfa0e466d0bad32dae60c5c639815785353a49e4b439de79a80ef
 SHA512 
a911476dcfa9767f4adb946bcdcbe475e78f83753a7880a7e3a96aed347f1ec520ba8d75fe4e5565b2aded25965cecd3c7f79fa12009af043f7408200e27189a
 DIST genpatches-6.1-68.base.tar.xz 3834732 BLAKE2B 
3fc3dd48708491bf32a17cbb8c23e531e2b95e60ebcbe3faa6fbe2c60e610aad9226d1846774ddd2af56e985371780e10a249a50e2ac46d7e482428f67b289d9
 SHA512 
28b810ad914e12035ef724f7dc4b3cc6226cccad4997804a9e3ba5a4f4a420f5f397eade002dd7a9231efc2b0c1850c40c44bf5daa358c24e42bb50da05141d8

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.139.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.139.ebuild
new file mode 100644
index 000000000000..6ff9fa71d26d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.139.ebuild
@@ -0,0 +1,141 @@
+# Copyright 2020-2023 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##*.} + 6 ))
+CONFIG_VER=5.15.19
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
+GENTOO_CONFIG_VER=g10
+
+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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+                       -> kernel-x86_64-fedora.config.${CONFIG_VER}
+       )
+       arm64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+                       -> kernel-aarch64-fedora.config.${CONFIG_VER}
+       )
+       ppc64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+                       -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+       )
+       x86? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/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
+               amd64)
+                       cp 
"${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               arm)
+                       return
+                       ;;
+               arm64)
+                       cp 
"${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+                       biendian=true
+                       ;;
+               hppa)
+                       return
+                       ;;
+               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
+                       ;;
+               sparc)
+                       return
+                       ;;
+               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