diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-23 17:55:27 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-24 04:28:33 +0200 |
commit | 7ab14e5d0ee5b56346469224aea631ae8f0d5f44 (patch) | |
tree | 8533554d1c66bd215ceb49ad35558debf469ad6c /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.15.133 (diff) | |
download | gentoo-7ab14e5d0ee5b56346469224aea631ae8f0d5f44.tar.gz gentoo-7ab14e5d0ee5b56346469224aea631ae8f0d5f44.tar.bz2 gentoo-7ab14e5d0ee5b56346469224aea631ae8f0d5f44.zip |
sys-kernel/gentoo-kernel: Bump to 5.15.133
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.133.ebuild | 141 |
2 files changed, 143 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 6882e020c8a8..b6812c54ab43 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.15-137.base.tar.xz 5320152 BLAKE2B 9c2376c4aafdeb6f49b490ffbd1 DIST genpatches-5.15-137.extras.tar.xz 3932 BLAKE2B 36f79232e1f7a297781b64c0fc2a9a3ca171a7440d635631ae34330fef11f782c43f23add9feded31e19904a28fed1a9d99a1991b590c2e1114de5217ee673ce SHA512 fd59a24b43fe48a9a475eab3c40a1fa0626661b3c66734223cc9c24a8f7490b569a475d94a170a1a5958a7be39fde77e63ce933620d8e31308623cad218bc339 DIST genpatches-5.15-138.base.tar.xz 5453088 BLAKE2B 9d09f8d4d0184f581b57def13761938c019e3f755c73bec4d1a79bcd1938e8c4f4ef89876fc95758213e4ea260acce1b60d963fa76f6765974463c4d4969137d SHA512 f66ff753ea4748c6d9cee2953ff8babe7ae34805c0f2baab6fd8b068022c29089e70b4f9aef4c213b461a01e822af682c40e174dcd64d105fefef650b9552dd1 DIST genpatches-5.15-138.extras.tar.xz 3932 BLAKE2B ac867967660e190d705de428ef339d853fcc38b1cc37c1176c012541602e38125ee2cca8b33c5eb6149e753898105a125c95f3f927e7b9c64096161b04d2d005 SHA512 8f2668171bf62face8dd28f7ca1afe62f2fe9ece101f9dab78a6b8fc869349fcfde32ee3d3ebd5677a1cc6403e488072a57b6892cd30c950c6aa10eb48d1c1fb +DIST genpatches-5.15-139.base.tar.xz 5486908 BLAKE2B 9bb9dce583643bf316d24dd741e13d26eb1a8adb1dd512d2fa69f5c1d901615622bd5170cca4efc63ca19e3e8454641529af2f9d989c9329ae2ce82c80a2b91e SHA512 91bfd0e55739e2fe833655fa52d904bea153cf156da109bd5548617bdcc44838bd3adb0bb4fe96ea8e27ad5f8836f191eb79151c7cd89254e3dff307f862f4f8 +DIST genpatches-5.15-139.extras.tar.xz 3932 BLAKE2B 57659070be3889530d15448b8c38961fb4e45f307ed0f9bec896c70ee3bbdc133136fffe0f4f2e268bc96005766c1d662912b0d27077e67f917f4b30458c7694 SHA512 ca2599baa4e1462ad723b0a2c28b8e73a961a0b1b71a27344eb20a7e89fd1607454cb349d3c4401b061813fef395ce395f2cf6e52a75c249e6d22228a0c0466f DIST genpatches-5.4-261.base.tar.xz 6100368 BLAKE2B 1333f1a5aae4faabe031192eee4e491ab80c1e6291e542a99cf308295ed2301c93d74cd41e34fa10e1110710d26edcb9b4b132ee635cde5711b6474557601866 SHA512 4083c69df7ce9aa2e57eb69be4132689d10c95155c7608d6fc52f661abc1f0f9077f546016b3df32b8252777fff78af347af7022d18203aa8416ed83b68ef88b DIST genpatches-5.4-261.extras.tar.xz 1812 BLAKE2B fcc06d16147422b0ea123b116644539b3527e44bca78d46cf5795d44e42575c7017ec3b5c9dd566c5523e3b23f14b4d817846502d4ef353180c3a3c79caa4c2b SHA512 5cc879a4333aa3e162a5da4bf118a12ae5694c2fb98f11f9e1eee57f91b707974d735c290790942a14b2df5bdf092f58d1cf03f7058aea6f8e588700ec185dbf DIST genpatches-5.4-263.base.tar.xz 6140940 BLAKE2B 7a33829d7a85497a6a6c8ae89cc9a3eefa1eae1e7aaee5a8375f8a1a77d6615fda4d4d18bc68a506d86924bd9549f98820bce35aa30a628c676cbadc4dc6a1b2 SHA512 e4b403e31994d804724e31f3795b4e8a202ff19ea6842754e34e6fd5156b0493fc8573c19decc425ab0d18bbbe55636b181200bb92d1ada54f73233ef01bc9aa diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.133.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.133.ebuild new file mode 100644 index 000000000000..eca1afb33d22 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.133.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=g9 + +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[@]}" +} |