summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest22
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild137
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild134
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild134
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild134
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild134
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild134
12 files changed, 0 insertions, 1514 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index b967341a816b..0b837dc30489 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -1,29 +1,7 @@
-DIST genpatches-5.4-65.base.tar.xz 2300512 BLAKE2B 7ed1f7694782a2f2aba5448d4e2786b813d1caaa6d3da986ad429834c73f15c29268dd1cf3e3fbc63a913717cdd707084d5c1d0a9a0d0a91a558e44d1605927c SHA512 3109881309ec0354ab91924b6e45e8ecad18e13ecbcdd86adc4626668557ce6324ccb942d9a62ca02d7093fd221e90e8b8e9f33ce8c009676122ffc100576f61
-DIST genpatches-5.4-65.extras.tar.xz 1768 BLAKE2B 07e18047c9d88d73325933496d70d645acc6d07bf70d531a4e4602b85c6dacded40d9fae716bfa4654672be78f0d6029700cf4b5b368f3bdbec485218f74abeb SHA512 b3421a90b0e664a64e49b4e87c4392871d425577995cbd15cc420d3f4a1a101706bd19e32aefc077144d6da955c442c7635552f8987f1af707af05868aa61a2c
-DIST genpatches-5.4-67.base.tar.xz 2335352 BLAKE2B ae98701f88da8c3ab823499c6d5683c80adaface3b23d0e5671deb4e8005a6aa8f9ef3c4ff4b0fb1475ca33de7790c59c56571795122ac4bfed6f1c6e4ae8049 SHA512 1d039a98cb29a76f0b5d26cf2ef72cbeef469746e31afc513f6f5f88841e9fa4c96fe34e92748e61a6f6f5a6d8ac68783126e6bcc696bd0106747b8a93a9b940
-DIST genpatches-5.4-67.extras.tar.xz 1768 BLAKE2B 6e6718c80465485c0271d46231d45412e4bb7e713caed3a333b27f1a655048c2ccea871d5331fc4d6413ddbeb2776df02acf00ad1c399a1d86e65615f05d5c69 SHA512 7da85f2ff8f50f43ae1eb814e34402fa8a55629c7b8e9b362ad657974be2ac60489157adf474f91c05587475d89deb1cb1511c5241b80885d695651bfb122af3
-DIST genpatches-5.4-69.base.tar.xz 2362320 BLAKE2B 5f0a1f950d6b4edd2eb2189256e128350df0d9682c218527e8f2c8283cdebefddaddaabb7d77e3f8bc8a09d4fb23fea37a9208ffe3c3bbf748eb5e05df85ba28 SHA512 d323506ceb6d8cdb01ff7be8ee80d6b7d5a72fc7a2411d96a84f58ae12392f2f72565413878cc7b4abf9221bdcd0b505d8dc5ee5920945aebbe6984250f13d88
-DIST genpatches-5.4-69.extras.tar.xz 1768 BLAKE2B ab83c9bd71bb08d7356aa93c27c3596911fe67fcadfe97a80313d2a038001be7ccada663ab25aee1d5cc348b220d3c82970d08bd3ebd538a729918a7487e0a1a SHA512 6a780c1a4ab2d2acd313e45c3fca0ae013104e916961855c76b4bc2c4f732f8eec27240b728677bf8e3c0042694605f477e672af41e5e4e50e266320d126fc32
-DIST genpatches-5.4-70.base.tar.xz 2483716 BLAKE2B ec87f655614a22728baa721a291616f3c5f0516ec25dfcfba74ce72a8236e132dc2c66bc8b551cdac6cdd170d29a54545b05fec5d853afba33e70b23b7dd50da SHA512 246f449d7720de05a8527ce19ea47ebf79dfe970d87087674630416b438d31fe499b8fd053b7ea19ad81248435345b56544774eeb6298475145ae59b9ef718ae
-DIST genpatches-5.4-70.extras.tar.xz 1772 BLAKE2B b7dcaf96dabb3dcb2ffac6532b59b9eff8e9e55e309b02b4d774a3c665e4499f0353bfb91ed81f1cbc73b852f0de50adc6a03dc36e8e7beb88f0cf62a5fd9a42 SHA512 3fedd41a60c6941f9ee18485c92b67c3dc69d0b36a134adb89c246106d043e10afcc9114f5448ea4164b956934e2dc9efb1f3af95c2bd1a67eaeef5253b07630
-DIST genpatches-5.4-71.base.tar.xz 2499052 BLAKE2B f19927e24c884ed8849b9572b5d199d8e9d1ad57137af70658016cee341e4a45d0e974996138c61880c39adb83616d6399e798e5fdd020c6275becd57a9d56b3 SHA512 dad3be3fa63d809458b08b7da7f45c2a0c126ca1df75ed156b2f54a93204b4504d42e678a74df79618e137b7b565fbc97e108e2807c97cd1b4a8d0bec69151a4
-DIST genpatches-5.4-71.extras.tar.xz 1772 BLAKE2B e462c7bf461058db545a11d05d6f6de16d0868a4f162874682425424f07e6b78019ce65ba9bd51aa413433894cea8561cba33837b66dd600351f36c563a0edb0 SHA512 ba9930a24342f7ccb5514688913e2517c726137317563ce301dbf383d484a6243c04e4d7e6ba427c0269009f979aea8c623e677e9d7f763275c1e299519d2ee4
-DIST genpatches-5.4-72.base.tar.xz 2519916 BLAKE2B 1998698004dea3a4dfa3866b96937902ca455766129d8e62b627e72f69aae4661abf37e46dfc996dec4232099c77cf910ad6f56baec527990aa94b1eff0c2184 SHA512 f6a48c095635a2fc8fa058ca40fbf272768da52993d924669544ff73d0c8b8f0d1bccabdbaaa5c8c1092a69008a1d527e9613a8c6862b55832738c0a80d55302
-DIST genpatches-5.4-72.extras.tar.xz 1768 BLAKE2B 8a25411510431be8515a339398b5d8d43d7739089f62c1e8158ca79ac793e7bfacc39b8e43d2f5e2667125ae7342bc943480804dd7b63df3e42400d9b662133b SHA512 955413633bcc16fe215e9769cec6dce68c3d8faf13659342db6a795d3e042ecccff9a6722cdb0abc87220ca301caeaccb6f25588f19da44642e358a8dee46916
DIST genpatches-5.4-73.base.tar.xz 2527064 BLAKE2B 6e0b392681d6e5e709a02c1c8f15fe06ef1651f1530506982feec7fd436aa04ea75079eeb5d3a61c91bcbb46c59a232cb8cb67c62fa7b2e8b289591142dd9430 SHA512 db987b95895fc37243e3697f3ef8f33787489e173fefb84ad09a6600898b2b9b285d9113e6f867aab0c3d5b4c65398f4bcbc40a4220f3cf2b355da9def209dae
DIST genpatches-5.4-73.extras.tar.xz 1772 BLAKE2B 7475a0907f287fef28ee8bf220932528107bbac0d612dc05de6ca8b2dd86ddf37d9acea31ab2977a677f6ea3a19c594737b23e504da405fa811c4d0faf00b94a SHA512 751898547b1f60070f1d8431cd89daff55e33473c8fe68415a15e3b8079ae2d3e44318815ba47a1ce9750feb1cac1812eb8eb7765426b204eb1357993cc68cb0
-DIST genpatches-5.8-15.base.tar.xz 498912 BLAKE2B 429c079f836b9dc6d2086fe818f4e705264f002bcfcf4e5bdbe144af53aca53c8bfc1c0ac23aa33939bc59111e2194747088bbccff61015fd59ac0e3150aab62 SHA512 936414eaaa159a84bf016080332a8ba29c2024c02e5b83ed559df7b1a910ba405093e5ed36d54a346091a534f1389eba99b95852b23328a92e2f7ba5b07723ee
-DIST genpatches-5.8-15.extras.tar.xz 1772 BLAKE2B 690935cb537f442dd48dea34000bc444b9c2861b259ebb156722f1027ba281111b037fafe4cfdb71e68c40603f2dcb27d2639d949d4e4fbada8811fce2716329 SHA512 8dcc4ebb194603036323dcc559b5827d02c6a678b2f162191e306fe6ae52cc860e651937962ac8b52e2a4e229b1326a2cb24f938638556b0ddf4369f140f997b
-DIST genpatches-5.8-16.base.tar.xz 525416 BLAKE2B 53b0e2548b25b93999650cdf8eb920447367305049349a468b954f84368f803d2e1fd591fe4c01722515568257f1457a7480650a2debb1e9196bc41cebc07b5c SHA512 b708d0ad5303cabd7ba73b28391c138bf443c0af1dfc8296eb528e1a16cf00763a5a36aec1cb7bd0b0e9c9b0d844d4a135e2f1f5cf4ddbfa9742d7e05e0a4c0d
-DIST genpatches-5.8-16.extras.tar.xz 1772 BLAKE2B 60238a48924010a7ebe1214de7835522ad1ad5b156dd3bba13d315ad753f69ce7b82a5265bd4f8d8631699304526fd44279ba27413f10cc4f19e1a60880cf30b SHA512 f9760259d90cae491252c409c6521ca5285bc0f7655795055db8bbf7c5e2ca65948ffc5541d2c4499f6255e4462884a90cc3b2db485f37e6133ba03c1a519751
-DIST genpatches-5.8-17.base.tar.xz 547680 BLAKE2B ea21c869fba01bfa213444c19deb4e8c3bf312746ec0b17e6f407dac00e8c19c6d60e4e243ff5e16605b413c3aa763db9a8d91907fbd57c7443ef48b7f93a344 SHA512 7d66e6cad6a4aea50fb996608c45896c52cfb1797da24a486c9cfd0afd3121886fdba4ba91a044af2774c92805232ce988bd0b82cea0618c29c17f2cc3407905
-DIST genpatches-5.8-17.extras.tar.xz 1768 BLAKE2B 937be9f6fb92f23e8604b609de34c6f51e8e873203c9f7e6dea545f213d4be90e3d0c173b703bb6956c6d79097ea0f25528bb249a22d7edcfaec1be8f2ca636e SHA512 3409282b77cad9c06d13f814d1904819ea967b2c499c64a03bc188ca31aee991b7100946324c719d35cd4e5e30072f33e9e7ebb70986e1d4d386c47ab0ce8577
-DIST genpatches-5.8-18.base.tar.xz 592676 BLAKE2B 1379f3d881dbb85cb8306e4b1bfbabb298435728d5e8c76dd6955aa88fd2b464f2d58b27a7afc07f7eba06f057fd03b225e3d85da6e0555dc2c47389597ca1fb SHA512 da23d12de59794f57c466f0e28603da3674770c40c59afe3688882ece1d537c1b11eb0f6c4732e5afebf46f921642a3925f7361532720cb26fcbd4de42064207
-DIST genpatches-5.8-18.extras.tar.xz 1772 BLAKE2B fece8aa842736f29f1ca6b3317ff60be6243ab2610fcc3b8e102bae44831f0801b977a42dcdff6b8ae1af32f43a312962865c282f48e087bae163d18d2d6c328 SHA512 ac9cf075daa86b7033cecd753959058031bd8856db5bb7aebb8426eff7ffc28b2e03e656ae679d8f6bdb628b1ae9ca79bae7317564a3737fa02f0ebdc11db284
DIST genpatches-5.8-19.base.tar.xz 596728 BLAKE2B ceb6cd57b593b5a2c02f00cefc61035ea765c9bb2bb2f9f8721e7503a149c8ad2ee6b1b3765b6d038e5d34bef2f0e0278acb7f3a8168d31d341ac0a9b58b8590 SHA512 f36c11a008e7965e0e113c3a7d87dbf40b87d87c7a801970a73367dcaaa07e7fc3356a114d339d68f16342d9f3c6601cf4746b9aa96d01d0c5efe2dbfaafabff
DIST genpatches-5.8-19.extras.tar.xz 1772 BLAKE2B c42390c17040a6557054835df177fe87ee124bcdcea91e1a63d50ed8e07a10044d639616497e02082fbb67a708ed408bd1e94a3c9d5b7c7b0c7daeca2bfc65df SHA512 3ba07566f1e721521676b862ca51654638400eeda4f216cdfb860b0639b7a611b2ff2e9659007486841e9a1afa8c05a9454abae87abbc7dff8af396bd0d7100a
-DIST genpatches-5.9-1.base.tar.xz 4004 BLAKE2B 8a4577d42262fa901186acc60d28221d00e5c9140886705f018d9989f818d96ee4d9a6586b292e7b1d945bea9e2408e3161a73e0999defe1b7f99d0a339eb7be SHA512 d6ba1051f9561aa30d7b196336c34930285d613e8119b152f1d6cc447cb22db5ac07c25f89d4ceddf58c9370c42699d0250a31449be2da3c591896b0c87d8718
-DIST genpatches-5.9-1.extras.tar.xz 1764 BLAKE2B 32d29f0448aef113ba9c9591c5d3b671d00d07abde9f35f365b48168887913bb2da95a8a52b852453307cabb111115a26178be4cbcc016e53a26a31f783a9df7 SHA512 df007dc98c1acdd31773f7dcf8aeb22812aa55e5593e8509b6a8762f2dcf06c95d69ad7cdce992e7a5fe730754bef26242acdc4e4da51ee29206fabb86c9cb0e
DIST genpatches-5.9-2.base.tar.xz 9332 BLAKE2B cfccc2ebc7e067c7326f95627470a01f818f3c64db87ca26406bd3fa71429593a4460cf82d5891961eee69cbce667c850439f512650131013025491804486510 SHA512 af9c158cf65c5aa5d678d4ffeb7395051a9706521684f3a984f47d6ad581652978eb8f0a4de0132a3603b63fa7f34fb8b18a76bca5d4d312672c89f3fa221fa8
DIST genpatches-5.9-2.extras.tar.xz 1768 BLAKE2B 1e9312bc96d30b85ff628a67bed4bf2ded3eb2231d804158d343d64ce6a1be3d313bcdf84406cfa34045df9aa239ae1ed476f838ff466e0df96b60b28caa15b8 SHA512 58b19bd67b573657c44861d65792fb7fed0c430a554e95b2dc41a3f53ec8a50e68f89130a68ae0167de9ba98076326ae843264d76a178efaecece90121d0f337
DIST kernel-aarch64-fedora.config.5.8.5 215148 BLAKE2B c71380f46c1b37e9e17bab6d78907114369b377bcbdb54afa2c35b6a222937fd061f25309d8de0cc78ef2329ede7192722270acceeaa3da4629a5f58d8fee809 SHA512 e86e2c60e88b1ea5968db1a471d7d928ccb3146fe850f8f2813ef315f2de0cbfa0daa2f6828dee71acb2299f65f05fc0b6f1572a82fb146ae9f53a905fe94e97
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild
deleted file mode 100644
index a207c4ae5ece..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="amd64 arm64 ~ppc64 x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild
deleted file mode 100644
index 8748c518e3d3..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 arm64 ~ppc64 ~x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild
deleted file mode 100644
index ff0e401cd76a..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild
deleted file mode 100644
index ff0e401cd76a..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild
deleted file mode 100644
index ff0e401cd76a..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild
deleted file mode 100644
index ff0e401cd76a..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 2020 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.4.21
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
-
-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
- amd64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
- -> kernel-x86_64.config.${CONFIG_VER}
- )
- arm64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
- -> kernel-aarch64.config.${CONFIG_VER}
- )
- ppc64? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
- -> kernel-ppc64le.config.${CONFIG_VER}
- )
- x86? (
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
- -> kernel-i686.config.${CONFIG_VER}
- )"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-IUSE="debug"
-
-RDEPEND="
- !sys-kernel/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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.config.${CONFIG_VER}" .config || die
- ;;
- arm64)
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
- ;;
- ppc64)
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
- ;;
- x86)
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
- ;;
- *)
- die "Unsupported arch ${ARCH}"
- ;;
- esac
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- # WireGuard was backported to 5.4 but we use old configs (#739128)
- -e '$aCONFIG_WIREGUARD=m'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- [[ ${ARCH} == x86 ]] && config_tweaks+=(
- # fix autoenabling 64bit
- -e '2i\
-# CONFIG_64BIT is not set'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild
deleted file mode 100644
index 1527024779c4..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2020 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##*.} + 3 ))
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
-CONFIG_VER=5.8.5
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223
-
-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
- 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/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild
deleted file mode 100644
index 1527024779c4..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2020 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##*.} + 3 ))
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
-CONFIG_VER=5.8.5
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223
-
-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
- 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/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild
deleted file mode 100644
index 1527024779c4..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2020 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##*.} + 3 ))
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
-CONFIG_VER=5.8.5
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223
-
-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
- 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/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild
deleted file mode 100644
index 1527024779c4..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2020 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##*.} + 3 ))
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
-CONFIG_VER=5.8.5
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223
-
-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
- 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/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild
deleted file mode 100644
index e7a5b2ccc317..000000000000
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2020 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.9.0
-CONFIG_HASH=aa6d9438d030fa4682d5d450481085c901503da5
-
-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
- 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/vanilla-kernel:${SLOT}
- !sys-kernel/vanilla-kernel-bin:${SLOT}"
-BDEPEND="
- debug? ( dev-util/dwarves )"
-
-pkg_pretend() {
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
-
- kernel-install_pkg_pretend
-}
-
-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
-
- local config_tweaks=(
- # replace (none) with gentoo
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
- # we do support x32
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
- # disable signatures
- -e '/CONFIG_MODULE_SIG/d'
- -e '/CONFIG_SECURITY_LOCKDOWN/d'
- -e '/CONFIG_KEXEC_SIG/d'
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
- -e '/CONFIG_SIGNATURE/d'
- # remove massive array of LSMs
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
- # nobody actually wants fips
- -e '/CONFIG_CRYPTO_FIPS/d'
- # these tests are really not necessary
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
- # probably not needed by anybody but developers
- -e '/CONFIG_CRYPTO_STATS/d'
- # 1000hz is excessive for laptops
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
- # nobody is using this kernel on insane super computers
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
- # we're not actually producing live patches for folks
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
- # this slows down networking in general
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
- # include font for normal and hidpi screens
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
- # we don't need to actually install system headers from this ebuild
- -e '/CONFIG_HEADERS_INSTALL/d'
- # enable /proc/config.gz, used by linux-info.eclass
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
- )
- use debug || config_tweaks+=(
- -e '/CONFIG_DEBUG_INFO/d'
- -e '/CONFIG_DEBUG_RODATA_TEST/d'
- -e '/CONFIG_DEBUG_VM/d'
- -e '/CONFIG_DEBUG_SHIRQ/d'
- -e '/CONFIG_DEBUG_LIST/d'
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
- -e '/CONFIG_TORTURE_TEST/d'
- -e '/CONFIG_BOOTTIME_TRACING/d'
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
- -e '/CONFIG_X86_DECODER_SELFTEST/d'
- -e '/CONFIG_KGDB/d'
- )
- sed -i "${config_tweaks[@]}" .config || die
-}