diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-08 19:01:03 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-08 22:45:05 +0100 |
commit | bca7228d247af29ead0880d863c368d5026a5c3e (patch) | |
tree | b1b0f2ccf4a8dcb5b58ec8a6d994573987d3b52c | |
parent | sys-kernel/vanilla-kernel: Bump to 5.15.171 (diff) | |
download | gentoo-bca7228d247af29ead0880d863c368d5026a5c3e.tar.gz gentoo-bca7228d247af29ead0880d863c368d5026a5c3e.tar.bz2 gentoo-bca7228d247af29ead0880d863c368d5026a5c3e.zip |
sys-kernel/gentoo-kernel: Bump to 5.15.171
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.15.171.ebuild | 136 |
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 5586cb3999b8..1ebf4ff8af34 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.15-179.base.tar.xz 7600676 BLAKE2B 5654c1db636059018715b1ec3ae DIST genpatches-5.15-179.extras.tar.xz 4060 BLAKE2B d8f7885fac420f6f64dafcd5edf3500c8745fc076a382a9c62cfe1a5fd86a2c1d880ff8fdd0bd12649760ba115abc43de9da76e559330c0272f88c43926fa990 SHA512 01a08098524bf56987a55707b767911270b19b7e7ba032ad84ed3942fcdd073c0bf92443fc7cfe24ce1e88ec065f37f1a5c5c20adf3594151bc933a71c92f9d9 DIST genpatches-5.15-180.base.tar.xz 7622872 BLAKE2B bdbfebd8160b3851b67c1bba86c8f0c7f7dff79f2304c9b297755043067575a14982d0e79f2aa0e3f42994520e8bc50cbff11651ad1d546d314f01d50a33e0f3 SHA512 606659b93b9782141434313a634fd648f5f934caa2016091693039035de0fe96e6c3a88075aefde18aaf323eed0d8a4188bef64f990f20fa9d06e4bc8d7e1079 DIST genpatches-5.15-180.extras.tar.xz 4056 BLAKE2B e617ff600d8bb942de4fce1cc3aaf2d6aa16cc9b5a83667dc0154a685554a36cc8c4201c77faa01d3a39dabb1771235502128a6b863b23fbad1213642ec2cd07 SHA512 fa1c81b58c3ee20ace2e1afbe47620e9c3df695eabfa062d5ce78c12b015b938164ecd5db2d533473051d48a2fdf250074d1b306c61edae4acbe41688b513b77 +DIST genpatches-5.15-181.base.tar.xz 7638284 BLAKE2B ed63f4366ef78d666e759344580db76f0b9b7431448fe47cd067afb578a89d1843b5bbd486535003e1cf66abaec8e3e0f224d1088fb2874954f56c845050ffd1 SHA512 4da2df057b631c76502574cea731ec7abb3c2faf709efc0d54c17299e63eae16c9b3dec072ef0a0dea08124b2cc53e020ae6a896bd9ce4650aa1af2f2aa30cdf +DIST genpatches-5.15-181.extras.tar.xz 4056 BLAKE2B 09dae20d08f51aa6f3404984a11488e7671de63e927de295ae511dd5559d4220ce9371f6d487a425cbae79d653939d168ebaa030bee30237372e6148de916e7c SHA512 cb0d6890bfe82c05e4e4a15f68e4f668181d2595ecc75c1a9cf90df6129f3d1ef9877bbac299b76f8516bd40dee27a7f0fc85b713f9e085b8127cbf4dc7169b5 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.171.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.171.ebuild new file mode 100644 index 000000000000..e38fbdb5532e --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.171.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[@]}" +} |