summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-17 19:28:22 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-17 22:02:12 +0100
commit94fd41cbefc40326318cb27bcc3174627468b92c (patch)
tree407b894a998f618dac996626301ffcb927880e47 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.15.173 (diff)
downloadgentoo-94fd41cbefc40326318cb27bcc3174627468b92c.tar.gz
gentoo-94fd41cbefc40326318cb27bcc3174627468b92c.tar.bz2
gentoo-94fd41cbefc40326318cb27bcc3174627468b92c.zip
sys-kernel/gentoo-kernel: Bump to 5.15.173
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.15.173.ebuild136
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index f56ba9601096..a220bbbf02fd 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-181.base.tar.xz 7638284 BLAKE2B ed63f4366ef78d666e759344580
DIST genpatches-5.15-181.extras.tar.xz 4056 BLAKE2B 09dae20d08f51aa6f3404984a11488e7671de63e927de295ae511dd5559d4220ce9371f6d487a425cbae79d653939d168ebaa030bee30237372e6148de916e7c SHA512 cb0d6890bfe82c05e4e4a15f68e4f668181d2595ecc75c1a9cf90df6129f3d1ef9877bbac299b76f8516bd40dee27a7f0fc85b713f9e085b8127cbf4dc7169b5
DIST genpatches-5.15-182.base.tar.xz 7653540 BLAKE2B 0efad948533d4848c64885b3bb39889b3e8a66fd73673f48c8002c245a89764cc962cc66449141ce702a49cd3205cde01e0f16b1ffe635ad2eb0df0f508d02d8 SHA512 1170f5ee971752b165c1fa9c44662ed721d80ee28c53c280042c0b0db6323489c034b32fb98651348b36111b6f856170538a3ee6d491cea5c2f046b3b010aa4b
DIST genpatches-5.15-182.extras.tar.xz 4060 BLAKE2B 58d6cd99d134fd7f441a92eae8b0d480e68dc51a3261affea1f76f887414e95a590d8a97805d9363d9aa3d6e8f922e0863f8f6178703c31bb30876fc1606a064 SHA512 26f3828099c215a764ae52b0830062e92705d9f95e7885814e37ed20bae1605f991ad18755c552aa18f5c003f86eb412edb93859f3459f3955b453f86d3c9dfb
+DIST genpatches-5.15-183.base.tar.xz 7657948 BLAKE2B f54aea57a40b7af56cfdf8a754d126651a7378e4d00bd3123f3ec6545bb9bf46e83d66a8e57fbde8d9c719fae161700b4be5bb0d66c3ec767423da1536de2bc2 SHA512 05f4208568518d0c993a4a39dcfbac705878addf328403df20f907274be8bae118ddc61fb31d21a18c9e0dc129848d95494014bed7f50f439b2b377dcc01f578
+DIST genpatches-5.15-183.extras.tar.xz 4060 BLAKE2B 34c8c3466fabebc63d7dcff661305bd8fcf57c4b3404adf6bafeab5d602ca86aa5afb28385aab9e755df2d5a0f71adf72c11a7ba97f93d9698b9368f492afe23 SHA512 094c5a55bdad6eb5a7b4aaa24bf3d7aa1ddb8138078e9bedb225b0863c7a2572bc0824c844930adc20a0f2fdb53771f66382dcf0f3e54ff7825697b61e0fb1d8
DIST genpatches-6.1-124.base.tar.xz 6355616 BLAKE2B 8b912dfa6afd71b8d2cfd709aefb7acd2df66e7806e19440db7ca74a6dc2fe13b2bc55b332aa1b4aef5c84bf64929a20cbbf1da5a30803999986762327eb56ed SHA512 1288c21d553220dc27e28ae533f003d07de5442ffa85bf06cf533266b3a16549239f389d61c7458b3f442f8902bdf4e429f2a17b89bacfe8632fd38147f97923
DIST genpatches-6.1-124.extras.tar.xz 4060 BLAKE2B 326344cb6b4df76db97f5666085d26a8907769b81bbd1016219f319b713c5d2e467c0c0641b1cf5bf7eea80c7d865544a1b6e77b432e002dc768f633d70c9941 SHA512 a440486dbce9c6b291a202200089b03669bcb7c5fd635350f4f2d8eea21d67c073ee7feeca95e62fe96673dd67c92632955a83e003cc49865aef6b84f67dbf48
DIST genpatches-6.1-125.base.tar.xz 6398228 BLAKE2B d22a9c9792cd0118b14cb75e37ccd526ca83840ba6f67c6cf1a0d8354094092cc1fa1c089634a5d60f6170e46183cafbc58943bb6c09d7a8eca6b44ff08f412e SHA512 5d82330540e9919e3339fb26431f787ca338550dcf85c5a91e573d4e3197eb9999fd653673d60a453306930e2126ee375faae67f4a7ceee7bef8af48500f91a0
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.173.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.173.ebuild
new file mode 100644
index 000000000000..e38fbdb5532e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.173.ebuild
@@ -0,0 +1,136 @@
+# Copyright 2020-2024 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=g14
+
+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[@]}"
+}