diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-23 06:55:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-23 11:42:44 +0200 |
commit | 713e467212fb3a28d720760b51f57fe66601d98b (patch) | |
tree | 25330b8e617f9cb4b3541ffc6c3307ba6ad5ff47 /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.10.228 (diff) | |
download | gentoo-713e467212fb3a28d720760b51f57fe66601d98b.tar.gz gentoo-713e467212fb3a28d720760b51f57fe66601d98b.tar.bz2 gentoo-713e467212fb3a28d720760b51f57fe66601d98b.zip |
sys-kernel/gentoo-kernel: Bump to 5.10.228
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.10.228.ebuild | 131 |
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 042ff810c02f..35aea77c8e4c 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-238.base.tar.xz 7454284 BLAKE2B 6c3793f4fde055e4ec7e6e1c5c1 DIST genpatches-5.10-238.extras.tar.xz 4060 BLAKE2B 46f357f280883621ad97b8f1680d9f6c7e63bd5b9ab976dddb0f2023acfadb5d0e7f7919f4bea46b0dc099777234aba07259e427145be889fa8ba76cfb9dbf15 SHA512 e6f23a08bce4c0683c91e7907403d497d941e93b50b86660bdcad3429b490233dad8c40f117101395e81347150c99bb6b82cb51e0248074deeb0131bdebbe834 DIST genpatches-5.10-239.base.tar.xz 7596864 BLAKE2B 987607405ed2de7470b7ba9748df4b6a5f00f1b728f2e154d47d51acb3e40ac028bfc64640f620368877d7ab11c94ebe636fa9399408fce7aff20770a045e522 SHA512 0125f50337da1d02ef99ae2df6ae77742eaff169c70d85d229585e29fc51dccb22cb2acde3949c42f9eef93c016af596cebe7c6811b7d7041c2b66b3e29c94f3 DIST genpatches-5.10-239.extras.tar.xz 4056 BLAKE2B 65e4e775fb186c7e46b227776dd5fa26ee472b27cb32f76513aa457b7bc85c53fd88c02f594a095ec9aff4c062270359f024f36a7c4e84dc1d2ff91f1d185919 SHA512 394f1fe7d9b0bfd3b7c27d607513bc0656f34efda1fb3a2771d180b47caea2e5c4e6a01738284649afd94c2a7569f1fc52e3f98b6ace78838ac30e4ffe9ead37 +DIST genpatches-5.10-240.base.tar.xz 7605364 BLAKE2B 2ab206d398eea9704f90f3485446ccdbb5e53fdbdc2ea2f468ccf8ba7d4160cf96d6f407df53a4db18a68eec98e0b3a203be74c68e45e4a1300da26ac3fcfb5a SHA512 8d935c136b8fae9a5cbe558c362536255ac228369538a448fc4728f8c7b1a1393cdd810fc5b8a08138fd70c4192b07e4845d697120679dbb6ce04180575e2f4d +DIST genpatches-5.10-240.extras.tar.xz 4056 BLAKE2B daa6ee7552a0f30598c4fd1c264509698017b64199ca993000bd6d226355c60b4d570c942a1b7e254d32eb941e2b873a4ed8b7a8f976b16cd93dea07727b8d15 SHA512 c01c07819c65357eb83ad9446b24cd2398c3ce8c4ba038ed726cba220145cf013d544b6442bcc65f7c916b5dbf85008bc638ddfee26f33c115e2c929d650db7f DIST genpatches-5.15-177.base.tar.xz 7376212 BLAKE2B 4ed8e73ea307a1544b5e6ed04b202c655a2a7352e6e153ab72f70667ed362ab69991823b26f260dde5ee7774749f549953acfdbcb6d13ec1b9c4c1d3708ea8ba SHA512 628aaddbeb9fb39e8d42bc495c14dbc164b07fc023551631433e9778c718651580406d5ed8f2b67280a7c8ff4cf2467bb86eeb2b93cbea03a6fb9e0c78308098 DIST genpatches-5.15-177.extras.tar.xz 4056 BLAKE2B 95e3b595edbe0f3f927aaf93fe28a0342b0d01bd889df73357c09856c5f937eb33d31e6753b1a4f59d3c472bb1c372a7f5f228c1a791182aa9f25c32e537860a SHA512 36f1ea35379d89f09614a94fe9a64d8de2989e72175ccc110723ee91de4ca2498203a2e6e1605cd06a5fc7469276fbb3b0478a5a17a0409e8acd6b2a053a4d38 DIST genpatches-5.15-178.base.tar.xz 7578036 BLAKE2B 2b8da3b41e178d6362e7dd783ee6a00f14d5f2103ef74f8e791a705dea94fa701b4ca06aec41ea277efa943d759a004b4760f61ec29b45a167b46a4898ba8a25 SHA512 bd29d8b6e4ad66fb5d7beb92b7cc8ea57f07ec1f0d311e345904f23d311b081499641ff5d45bbedc256ac99510cb8011cbcfb43d385b8f7ff059fa4e233e82d3 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.228.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.228.ebuild new file mode 100644 index 000000000000..890ef205237b --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.228.ebuild @@ -0,0 +1,131 @@ +# 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##*.} + 12 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +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://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 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( 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 +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa) + > .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[@]}" +} |