diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-28 19:37:15 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-28 23:48:25 +0200 |
commit | 11e7923eda57c7c7d3f2da57e45a64013cae9901 (patch) | |
tree | 28c1ef9cf92449b6df691b531aec137beb8056ee /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.12.8 (diff) | |
download | gentoo-11e7923eda57c7c7d3f2da57e45a64013cae9901.tar.gz gentoo-11e7923eda57c7c7d3f2da57e45a64013cae9901.tar.bz2 gentoo-11e7923eda57c7c7d3f2da57e45a64013cae9901.zip |
sys-kernel/gentoo-kernel: Bump to 5.12.8
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.12.8.ebuild | 90 |
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 9c1069923d92..7e5dcf87299a 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.12-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6 DIST genpatches-5.12-7.extras.tar.xz 1772 BLAKE2B 3f593739f9330a6dab17be9307c163d6ca4e39e821d79db2b6a3f88b3af8c973c713be26ebd11d155d18336f9613fa5b0c9c44e43c0674bfc4f9e0c5d7519874 SHA512 e273b619d284246670381a6a6bc5f9835a6ed7023bfae14b31783242ce504d6909a5dfb47e6a5cb5d81cb499fb897daaeb8e5d0306359a47ba22e0818d499d25 DIST genpatches-5.12-8.base.tar.xz 486256 BLAKE2B 55607b8e42132706dd6d5b2716ec252fdae5b7b2d0e4c7874aa4d9f558172f207d7597eb77030651a5c490b86eedeaf1174e9908277e989e06a4cc048b1ceecd SHA512 3651b48fd077624d7e9b9471bddfa3ed0b5d4656374b73b92192de26925a12b3c4923dba9764ff12c1fad94047b404c61f23cd2eb4d4383775eaaa0ded3e7907 DIST genpatches-5.12-8.extras.tar.xz 1772 BLAKE2B f8d4e1f2152ffa0fa46f592051faee455f0319ac11911c79d34f393109bac49d74d5c938f38037871ef777183b124066f4dfc46381c51a337fdef54589c981a0 SHA512 13ce1243c7f4b30a24c70cac04bdbe6ca29fa608638e5c47036ba4fa3e839dd0b7dd5d6cf2c628a7d86418c7eb5c520334d84b2b33e5db206c947fc5d4c6a8eb +DIST genpatches-5.12-9.base.tar.xz 488148 BLAKE2B 9109501b6334e1856f13f4f4e82d34a3804cc00f58e7ddede2d005b27a5de419c8fe973dea126917213b223712089746f493e0600ccd6e528af8ad34b6d2248d SHA512 6db027554a275335ab74c2a59eaf5baef4d05735421e2aeacef1c4027020e60052cd4404fb2cc0d1c7be820064c98e9bc40363d6d86203823b5db10a34d81da9 +DIST genpatches-5.12-9.extras.tar.xz 1772 BLAKE2B 127b452d6bca348b7ef8b501b6a2b619cd35d3f9a02b23430e273471f1f3512edd85ad9b015af74d500cd261225bf40a2c333dd5a54fe5182f83c159e13cc9c2 SHA512 edc9edaea4db7e5b31ba565af9026f171f1f6292bc5be4589a8b61b3cd6bb4b86f304543f2e51e4279ae3391b2b5751e13c68dea94e50a2dbcb9192b79fe55c4 DIST genpatches-5.4-118.base.tar.xz 3359396 BLAKE2B 5617e29367808fd5be4d7cd95bbfa2680f07fcdf0c4b02f3a5750f715a0e728ba3c1cba82254495cf1496a53a174c6209821d57984c0810c7665ce325aad90ee SHA512 496d33188a6fa440cee3997b4367c57f46e398b35799a2f4a349f34f5947884e7c28df56c4990a48ae1c8cf46932bc86c7c1fcc9593ba7e1e786943b55373bf6 DIST genpatches-5.4-118.extras.tar.xz 1772 BLAKE2B 0da077edfd1be718e67ea06824f29b86c645597be80c9b7fd99fbab25b1638bb3e95d2a0ba3b0c6c31beddee7d6dd3fcc89c640139ff787ecdff1e7d0b5eff72 SHA512 9b99f9f6ae84f10db1dc3b75df6c4d095e6624286bd1de888efe3d063e06c9ff44dd51f18ed4d153c935ec6be48d045f8286db1a49ead4abe120e20620ac2307 DIST genpatches-5.4-123.base.tar.xz 3488228 BLAKE2B 0fe5c3056c3cb060f4921e3b7a4046e03e4e777d033619f0496eda68c645c6209fb07713a4bc2565000f9c17e6203a8bc5392fc597dd49167bb0348988b53026 SHA512 e71b8f9d622d3ea2fa8165a39a27240ac007d899d7324c60240221d7761c1287f14b631b074536460702922b8daf00bc2714358aaf7f69ac257af7d5d5b18bd1 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.8.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.8.ebuild new file mode 100644 index 000000000000..3bdffea53cef --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.8.ebuild @@ -0,0 +1,90 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.12.5 +CONFIG_HASH=17639df044f5f81bbf267f566426eae4a5187875 +GENTOO_CONFIG_VER=5.10.32 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/mgorny/gentoo-kernel-config/archive/v${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 ~ppc64 ~x86" +IUSE="debug" +REQUIRED_USE="arm? ( savedconfig )" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/dwarves )" +PDEPEND=" + >=virtual/dist-kernel-${PV}" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # 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 + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die + local merge_configs=( + "${T}"/version.config + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config + ) + use debug || merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config + ) + kernel-build_merge_configs "${merge_configs[@]}" +} |