commit:     b844219bda3ef96f8acba439001ab424e204d0a6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  2 03:31:24 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  2 13:28:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b844219b

sys-kernel/vanilla-kernel: Bump to 6.6.75

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

 sys-kernel/vanilla-kernel/Manifest                 |   2 +
 .../vanilla-kernel/vanilla-kernel-6.6.75.ebuild    | 135 +++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/sys-kernel/vanilla-kernel/Manifest 
b/sys-kernel/vanilla-kernel/Manifest
index 553beb74f4c6..4922517f3115 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -27,3 +27,5 @@ DIST linux-6.12.12.tar.sign 991 BLAKE2B 
0ff54fbb0af0a9a53d013df0623b5b0ed77871bd
 DIST linux-6.12.12.tar.xz 148009132 BLAKE2B 
e32d607f2732c5ad719aa2f31c7f42f6243d7e9d52447dc923563d2982a68a3bed836acac116e1e30f15e4eceb87671a96db507a7019d00eaf52f36c9340b07f
 SHA512 
4b68d2c90ba639a84b6deba4a362777892e32dd1d6d7e82b75ea6d4567f00afb400478de60062bbef5b63ce9a04fc55486121a4555d4721b4ff46ead30fe924a
 DIST linux-6.6.74.tar.sign 989 BLAKE2B 
baccbb35f890347a794cf6873e29116dede6148cba0f7706c7048af218aaa30c57311705b18100b054536945b4267b9994ff92d30575ee8bc3e88e442edf0266
 SHA512 
3459c186e9d9bc79d55240d0cf5f18bbfc06fb80153aea7f260d7c901d3d3067a958f06fd8856eba469b3bfd3a9b795bcb94e4a75d744473a81b1ef00c666925
 DIST linux-6.6.74.tar.xz 140477900 BLAKE2B 
5c050a93c4b2e4333c302fb5d2e706da6dbab7b6537ef3791c784d29894ad515951e39ebb2cce0e977b0af671259f64007e84947d52abab2091c4a501f986f6a
 SHA512 
2a278f4b3d04ec922c4647e3e772dba98d5d615c74f93fea5414784db638212767861c0b8094d2efef79a2da208e2a54d5686b0252f82771e0b6e130a94e167a
+DIST linux-6.6.75.tar.sign 989 BLAKE2B 
ce84f31ef19ce7993b30d119ba7fa1fa702692b9a60fc254d75fe9dffe90279467ebae05b6468f0f8b3bb1a9118a37d211462ff016a9a9f259bc93eaad25bcff
 SHA512 
70abf1cce618b42fc5b28dffd26db0e6e1ab12f7c9214977c480754eb2ee1ce8cd2d4b63a2202531fddcc4c3348e0c795070cbd8d374e7b662919cbec22cf179
+DIST linux-6.6.75.tar.xz 140469716 BLAKE2B 
e9cbed2003a5daf377217c8ab834710b97c3f8fd38a7e5e57aa87a2471e990f4a85ac4a951f9fbfcec28cdf73295a44b00c33c9d5537f1d9d60e3c5fbd9b8a17
 SHA512 
97a2cda9eb7c60c8020754a8a90e42b9121465a796e1aaa313e2a2124faf4a7e8f864d0be208f645c8ed4b3b1c74cdb93b180fb4b14b8d411e866b3eba41fd0c

diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.75.ebuild 
b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.75.ebuild
new file mode 100644
index 000000000000..f4370e66a954
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.75.ebuild
@@ -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[@]}"
+}

Reply via email to