diff options
author | Michał Górny <mgorny@gentoo.org> | 2025-01-23 20:32:33 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2025-01-24 08:16:24 +0100 |
commit | 159a7690d576d5b5d8524554b59b9c62fee9911b (patch) | |
tree | f8240cc951e318fac96363c9c1ed81ab58cbfad4 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.15.177 (diff) | |
download | gentoo-159a7690d576d5b5d8524554b59b9c62fee9911b.tar.gz gentoo-159a7690d576d5b5d8524554b59b9c62fee9911b.tar.bz2 gentoo-159a7690d576d5b5d8524554b59b9c62fee9911b.zip |
sys-kernel/gentoo-kernel: Bump to 5.15.177
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.15.177.ebuild | 136 |
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 6ab7b4ec558f..5ef5828cdf99 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.15-185.base.tar.xz 7813568 BLAKE2B a287174103461737a4af5e24410 DIST genpatches-5.15-185.extras.tar.xz 4056 BLAKE2B bab13e1f8b400270ab36e78525947b68468504433f41784c507e6700d23e08b7eff91cd49e50398f90622cc289d6c4c122b3d5f8da77742b01c167ced5284cf2 SHA512 be561334e77afb45e11fe5e8c6c3b61d85c821776bcefc0cbe0d9addc6561a4c0bfc3956a990fa50f703d7defbc4a847ddeeb170d4dc828c2bcbd1a4c6f4429f DIST genpatches-5.15-186.base.tar.xz 7849000 BLAKE2B 3bf7560f3bfbc26789d4ae1e93932bd94b46e69c8a9ed29907e47ad493c7f7acd25309bef228306c69e27ac53b65efa8a8bf505fc577ee3a8ccbb196d36c866e SHA512 afa8bfc5d4f9ac104a583bea92b8930db5c2ca165c6c1fb3d5750baeb508df6fcfadcdb3c978bcd8e8ad95cf3ca2fd0c5c6cebcd000e93dbed663f310af01dde DIST genpatches-5.15-186.extras.tar.xz 4056 BLAKE2B 68130d315dd2ccff0075d729a10cee298756baff9ecc0c1f218ca4c771ccf30541bdb876ee529292a56c56ba49eefe5839cae263a08bc0f3ba114fa499267141 SHA512 2d1f1af4d251c93d7e45aee1710e44129b8bc71c83d7bb328b07b28c109e394259321ab12e889483369966a52616c1c41b547220e4ee9e4e3ceed21f89503665 +DIST genpatches-5.15-187.base.tar.xz 7870496 BLAKE2B 3ed1eafcf3a1e7b86ab86c92ceb12e45bfb527ec1eb3bcffaf84e27edc55365af68947d46516659ed41c410066706608f4fc33b243c1c2ceede69409c9674465 SHA512 9923dccc7b28abf4a4b83e025be7bbe0c7034b2e489ab8796b58d0c931365a225493360d9f4ddb3b683625bb8c2ab56eaa38615e3d388ab6180ed626a823a86d +DIST genpatches-5.15-187.extras.tar.xz 4056 BLAKE2B 03232a96502d2d77574570e07649d37d2007ecf4de1fbaf58ddf7f202cb4367bb692ad96b489b0dcc07419ed3c40997838673a3474bf71333e7a92394369776e SHA512 464b1e647649a6abbe45b34c3448d240c41de89f3276b4f981a7b5922190253e2b60bb1f6e5073ab768afdf5cdabc83f46ce97b12fb3eac62562648954f05165 DIST genpatches-6.1-131.base.tar.xz 6701808 BLAKE2B 0ff847805abdeefee31ce75d0b5c02eafdf7b12f3b3c499c0d9d19305b3ae934194bdf58fabb30e51a356eae5e57c7d633b7abbf45a94096e981c671181c9b16 SHA512 7604d45f78bd5a087f0a158acf3767b275315b60c77cb4d6b93139943d56ca917a75ed8ed784a608a52d3e1d06cb36a01f5c3d0f5b211dda6d62d36fbe9ffaf9 DIST genpatches-6.1-131.extras.tar.xz 4056 BLAKE2B add38a1ea9191009b22ce04a556062e419452bedc85d6afd40d6aa3da2474f4719aacf91bc3680b6a08a7b73cd0dbcc5c3249322f8c47660ef36c256e8792bae SHA512 7d68ef7b616ab8bd62db15ead625f0e449b6ebdde8477676d0aa6ef017f9270727413af62985ed8b271aae1f5288682f4fd0d0804f06577e2c1f4014b5402035 DIST genpatches-6.1-136.base.tar.xz 6772616 BLAKE2B dbc95219a1c641003a1dce638afcb4f8fac4d291258d7e9e8723fd10835e3eaedfe6b28bfc77db5457d2484053079854ac8ae7ef28d614062ff20d0455764f4d SHA512 99c5609fdeb02c56561b382678f9e33a6fd4dbc454e3dd80bd871a2dfb5ad81ce721125c2def3571de3b80bfbcaa12b322d9a46176e17cfa4c72eafed90e9942 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.177.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.177.ebuild new file mode 100644 index 000000000000..9217d46eeff6 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.177.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=g15 + +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[@]}" +} |