diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-11 14:39:19 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-11 17:56:59 +0100 |
commit | f5b68e627331e5f2b9c1c509a739289343b39b8d (patch) | |
tree | 56d0f8e0e86360ec7fd4e4c629ce8b5e9351c0cb /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.16.9 (diff) | |
download | gentoo-f5b68e627331e5f2b9c1c509a739289343b39b8d.tar.gz gentoo-f5b68e627331e5f2b9c1c509a739289343b39b8d.tar.bz2 gentoo-f5b68e627331e5f2b9c1c509a739289343b39b8d.zip |
sys-kernel/gentoo-kernel: Bump to 5.16.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.16.9.ebuild | 126 |
2 files changed, 132 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 340f5fef3f75..21d74006371b 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.15-23.base.tar.xz 986960 BLAKE2B 8c64fb7038c358c4249af8d9274bf DIST genpatches-5.15-23.extras.tar.xz 3876 BLAKE2B d41bee55c7c742a138bacfb45459f6449a80521b6857fdc55f675cf2434102176c493b9239ba73ab2d07df3062d995f9cfa76a168ad4913e5623453496519464 SHA512 3171e72c60211f2c331959851d85954ad94c947884408934375a4b495fe82c35f66c7408e6b3edff18ceb6888819c9f64b13a8b7c9433c80c802cf0316bf222e DIST genpatches-5.15-24.base.tar.xz 1017424 BLAKE2B 97132a2c8902493e4ce76861880f580ee6b37f4cd3facd1296a3d7b207c7a7ba014bb3903465e16e8cae3cfa6341f15aedccd0a72eb8017320ca91b5b7d4ac63 SHA512 b88f25da20d309e16c13adca272114237f1082d2272631d960e1b5ec54e8675b1f3c32725e336556b6d23748e8da9668989cbdb5ad9d0e0ad1253f442de92891 DIST genpatches-5.15-24.extras.tar.xz 3876 BLAKE2B daa2d5da1a55e035909da862f247e79e67ca6d514aec1b7aa4862f3f88508a0a6b1efa5dc21c70b8f79ca29cd88d7b7012ea380dd0a56931b82065ba4358c81c SHA512 9cee406769c914080f8e68c42441c8235767f9247d9b5222dee661df6570923872022076d174f9d5dad2bf2b4f2871d266bc907e35c0b7f423a9322d9fa096d7 +DIST genpatches-5.16-10.base.tar.xz 464508 BLAKE2B d590a7041f6309674e8000c735a232bb2f70d872863e4122fa5a8cc8bc0e68b641685b4bfb10c81d286124084eba2f6815e9d650978b52fa2fff70508ee361bd SHA512 cb591c67a3253b35d2d8dcbd229231507d28cbf2c1dbc2f734ba7e0fbfbeba6ca400f99bee6c9b94c90fad5facc9ee46c85fa4178087865d2e942a0717878a60 +DIST genpatches-5.16-10.extras.tar.xz 3800 BLAKE2B 79c288854d58ee20f8377be8bb15ecdca30b27fbfbbe314c2db7260576036258202f620d2ea2c2a6725fca1fe68fa1a158b207d36ae13630b3116397c3868cc4 SHA512 34069ffcf17636489af7d6df3e322926f566f43396297867c2b1a512fa884062bf86d50675c313ff29ed68f6fdb9039748fcd14c9395e29e9beeb166f45eb25d DIST genpatches-5.16-6.base.tar.xz 410464 BLAKE2B 19e5c3718dc8bd9b10f42b4448da16717f95da8a5ca33145bec2703c850ecfe4978144530823319bce945287642a44d368eef24448b45b12d28f5fe450325e99 SHA512 80c38fece09b566dbb65b02beeba3b895c41f18fec08ab9b09a6200450a88be8fb10c04dd80c88dadb13e3aff56f2e5983063cd2d852d9f1fd7ed92113e74887 DIST genpatches-5.16-6.extras.tar.xz 3800 BLAKE2B 43e9801bfd91b817bc56eeeecf9a86c77ef00c3899a13d78b022dc119c4130d2635fb801b1e638877b68bb17c2ce57edea5d14f8a93acc165c715dc0f5615173 SHA512 cb4570ee5ff2dee8a8e992c7f9d173e4b4c7a680cc8225a53ed9e16887d7ceee3ca7a461aed80bbdbd90dc236b26b1094ee6be207afe1bd15117dbb4025b9c9f DIST genpatches-5.16-7.base.tar.xz 421780 BLAKE2B a4d43c5c598c6c263330acf21502866f0d6698e409b51f48c1690e98204e786d4ca8cca252dded8ea276124e9ee0598e912d42cc458ddf096239f3b97cbf392f SHA512 e76e4ffe549b2533f8c1674963a6fe22f70ef169f46ec13681efe896f1141b6a0341f942856a6ba934e2749589fa68512870e727e2fd411b7d2f5e4cb9b86594 @@ -33,18 +35,22 @@ DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 DIST kernel-aarch64-fedora.config.5.15.14 242650 BLAKE2B b5587c0e365a00a5283ea3a5184b473783ad6296a6516372c6c79305d2837e782d18fae8ed8e852eb6d946d1dac6c6159231f2249f3360dd1651e4f1f06d5694 SHA512 2a8447d8128a881c08745f58704a9fe46fcfd2048c5d5775a518e16b6f5b5603e22bcd4f04c192d541fc83e6253be3b29a5f0f39ddec96c8668bc801d9356a9a DIST kernel-aarch64-fedora.config.5.16.5 236015 BLAKE2B 785c16d38c4266c55e9d2f2854e4a90095400667c768ae3b142ebad072f7977b7b39732d7eb1361b2f59fdccbed8594170f45bdf092691e0793ad7ede2906220 SHA512 10bcbe257dede6eea0d3ffda57dad25c85444b5569bc9bf48f36fa9445f71abeee853351f6bed0821b68d39aaa418313e39bd37bdc6656bfa041cd95661b9b2d +DIST kernel-aarch64-fedora.config.5.16.8 236075 BLAKE2B 8be6fe053e71b463b75bb1e3200ad74c9920d8505da36e38eb33676c2b70dca8efdcd2a1940a356452d2eecdb927168f4ac83fb33910e38a734f84b26a3fe6e1 SHA512 57442f07bfab3e0d2914b47893c63af946bcdebadbad98480a27fc922d4f018d9e5cea8d142f45e93026bb55d79f3b11d61568f46ef8b702ec10b1b9dbe90f58 DIST kernel-aarch64.config.5.4.21 199104 BLAKE2B 578ad451a76204df2a9bbbe34b5cb27051d2ac5e2c33967f562b01338c43f35da6dc33a4c2cc67ea6c3b32b155729360d3748ec28dcaa750f18449245b2e8a09 SHA512 66e9a437beb350fdc59512c17b8f72c5b5bfacf2b35070d810d77e66f49cf7929026cc28ad44b04a016d61e65d9fb4a10af6996ba09b604bf97e9c467d08f8ff DIST kernel-i686-fedora.config.5.10.12 205412 BLAKE2B 92c715b7e2cd7dd74da7970c05981f520597d3e403ce82c8cf4eee31c9f1f50b638792a6bdb256ef5bfdc99f1bcd594e819e8f44dc6febb2ad9a854bad817f2b SHA512 69d8db11723ae1b40fdedfaace74d15bb63198cdb0485e0a1e5eba95b31217110c93a93e39cc7370cf45f1d3a8bc7f75ec096d6db5ea9ecb28ac6b56702ebb10 DIST kernel-i686-fedora.config.5.15.14 222268 BLAKE2B 96e283052369a936fbe0f415d7176bb922bc0e22925fc25a56e6e0c36a723bf7e9ae29bbc661c0a8a6c44a218482896f25c529f9cf7a0d3bc31de8ea88f50a5a SHA512 b5ec452458b04ab316622239ffd98782a10eab17a02697d15359efdc18dfaf8052a189c66729157d2e9eed20aee25a47fa9b81f1da78d42150f10b0746f57938 DIST kernel-i686-fedora.config.5.16.5 215513 BLAKE2B 3e8fc55a0cbd7de2b1c70d3f5d85f4a7eb77acd6a3f41fb7120ffc8531ce7dfd868f6f8ed9ae0ea8f69c727c7da77c3e68d6245a7edd0b1f9a79f304a2354c95 SHA512 6e49aa3d975982d9a1e476590d9e499c9c798f62713666c034367a256d339c785d89bc2e061495240644ff5aeee34afa71b840cc8f1d8ebfe95142b9ebbfb515 +DIST kernel-i686-fedora.config.5.16.8 215573 BLAKE2B b13e235930122e51a29ab923e99ad9243fa13e825b46ba2e165d9d25d231e5901ada6aa1a48b9f5a73dcc03b61ec80a8b609627319884d8bd013b293201e3b8f SHA512 aefe2ba76439070b17d06c09549f29ae6b3c7c0c0aa611c1333f1b58ed5c607244f614226297c886af02eadc72513c27f4d5630777b4dac4b69e4963771a2167 DIST kernel-i686.config.5.4.21 183910 BLAKE2B 185126ffb85718bb73761d01683def80b6f002d7a7a6eddd8e858a30d8eadc863fb378d83a1cd2ed82b3540337fa66ae44475e31fb41ebc46d77005b6f54e5c0 SHA512 6307afc2295902e44fe65b1cccaa7a0260b295a5f21f1d67ec66197bd972bd3f5675b624f08d9da8b224cb3ec987d5c21cbd743599aeab9ac6214bc651f43476 DIST kernel-ppc64le-fedora.config.5.10.12 192105 BLAKE2B 889141debb0656a358a3381bae14b5216b982acdfce0bc758f9445c16647807a68a788fb290199c2a1a23627bda1ef4c9405b3f5ac2a4176d1d2b55c71fb7db9 SHA512 3ab0f1401d9f50a61477c71369dede438f575d9d2c3a2f5c2cf36d624c2b59a938efca9c981b075511b3860c983eaaf5e5a9f877d659277f09ceba45edd43770 DIST kernel-ppc64le-fedora.config.5.15.14 213374 BLAKE2B 527fcc240988d111f41a366dcbeb1a04938e8cb1c83406557fd9fefc64677ee7d2539fa21fb78ea66859c428870fd54b1d3827deafec17569cdba9991913c960 SHA512 9db1d852c9385a5771cf9992b1b3ba34a44d95abdee929ae85b6e6ff8baf6b1c7a4a6c4b2446ae7ce7d1bb59b4b915d5793b505e21d643e24dcb408afd60457e DIST kernel-ppc64le-fedora.config.5.16.5 207101 BLAKE2B 3ef46342a647e06d96597db46a59bd953987eb9604bb5084758783191be3e0ced9ba3b81c16d3bbe373cc9c8ce7ba3f49c16f24b128d89415ca489273206cc31 SHA512 4c108c67d2f2afbca0fcd53ca6a09da5f79cbab21fb64704a47f7e112e9ba00b1071bd1aee8f4ea0790c15a2ca8e2a464007ff2eb0769ab2b59b1e0664f37071 +DIST kernel-ppc64le-fedora.config.5.16.8 207161 BLAKE2B 9fc75e8ee2b85dfb64fec7bffd38eecf1d0640c971cd7806a1ae825eb74631863bac352549f669d7b177895dd1a1d87673ed51d26f81972fcd55e1985f316c53 SHA512 63570697def9f9b7cd8dab98ef9f1adddc42258fc3a045040f7ef495dba2a93ab5d287ff3d2be29e9e643c42f17640b19e1cabe9a94b63079745bf90d9cc073b DIST kernel-ppc64le.config.5.4.21 172003 BLAKE2B b53887cb44f7c378cb3866780f8e556e19fdb02130d3b0df01d97698d2a91f7d90a200012559f288e962935742c3fdb67dfb6711876fad37862fe55cdca5b5f6 SHA512 82df8d0be47e9eb20bd7db570539bb061d0b6e2101dc78a54596cf4d0b4e0c536041449304ff9240b051ee09b342ea336c5645e9a3b66a5dfb96d7778ff86008 DIST kernel-x86_64-fedora.config.5.10.12 206357 BLAKE2B 0eda9d4f3f973336cabd67c1ac78f100aabde926354743e8dcb7ff84496f0de49210d45f99bc850a2096078b0b4687aa7fd965d999248559506004f2b29dac0c SHA512 b12f43d3c1a52a4915cd73db98874ce9ae6c425672c0f1c19ed1b1101341c868ebf1c9620bef5449752ec0d7342c1ce38fb77779d0f89b9267096a605ebf7a26 DIST kernel-x86_64-fedora.config.5.15.14 223321 BLAKE2B 7605b06ba48c40841927a4f384d6b078b9b333ea5fb4b2cfee68a7ac9510daecd6e9e3555badae23f93b072a8d08b9503ef110dfbe35ebb058cd9a0c57437310 SHA512 e5ef924333714165d0afe5c33720920bf277ca341e939a99bc058f9ea52377a583fdd7aeb45a4060c6426c240fbeb9a6b80fc3dad19c75b112b507bd65369c98 DIST kernel-x86_64-fedora.config.5.16.5 216440 BLAKE2B e79c8445467b70937c4a0b44f9d9488a264603335b93711ab52cd9499523fc4fc90c9f1e1acfc3a4da3f5e7a1a35ff36fb33411e600199940a8f8ed32e962a4c SHA512 2ab3e7cb9999db8fe015b21d7f6c7b1f0647b8657f09e8b256c9164ed778d5fec5aff48c9b9048f100adc4e17d078e89318126c417fe34142201ee8f6a03837a +DIST kernel-x86_64-fedora.config.5.16.8 216500 BLAKE2B da5d13e4d2bae7e06768f6d1a478f00e8d198339a3961b80fe3a459c74908f675d03b04c59a20f9b607048189de9dd82ba0efc5d474bc6cc54d2395dd5c19c68 SHA512 9e5ac243e1c9f55a3df09dd4f0a0e53b34a557a96989250a5f0649142639d22bc4d12b57d49cf62051f52a4eac040018a97a839164dd72eb16118a6dda3d5ba9 DIST kernel-x86_64.config.5.4.21 184907 BLAKE2B 0eb2b07c14cea7545350fcdf3a94f2a531f0137c502ebda9299cacf44da5385686e2049b480b28bc153c9d413d453cfe682b9655eefe70428cb720f57c7bd200 SHA512 f3b3ee6841555ac3a9cc11536a7d44e1a5a8df2bab14ba341fda7df1ceb0de45cf1c799a1d54a64f2858fd1272d348bb52cf269ffa396878c5402baf2730237f DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.16.9.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.16.9.ebuild new file mode 100644 index 000000000000..db3e66bbe857 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.16.9.ebuild @@ -0,0 +1,126 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +CONFIG_VER=5.16.8 +CONFIG_HASH=f38101bdd0124e3ae7c3116b66f7fd1cd76e5601 +GENTOO_CONFIG_VER=5.15.5 + +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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/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 ~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 + 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 + ;; + 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[@]}" +} |