summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-18 12:44:08 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-18 18:51:38 +0200
commit98e1849c657185646b8e2386d5938b8344ed5eca (patch)
tree5df0e06a5220e418497158baeebf427775151d7e /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.8.1 (diff)
downloadgentoo-98e1849c657185646b8e2386d5938b8344ed5eca.tar.gz
gentoo-98e1849c657185646b8e2386d5938b8344ed5eca.tar.bz2
gentoo-98e1849c657185646b8e2386d5938b8344ed5eca.zip
sys-kernel/gentoo-kernel: Bump to 5.8.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.8.1.ebuild92
2 files changed, 98 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 65b9cad901ef..6e8e3522807b 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -18,15 +18,21 @@ DIST genpatches-5.7-14.base.tar.xz 608144 BLAKE2B 735617575780177615b76e35674d86
DIST genpatches-5.7-14.extras.tar.xz 1768 BLAKE2B 864a38c040d786d53eda128ca9fdb1ea51b28f2391b5eded178836469779baf282577e8ef6855616eae740f355230b9c3fa19f6da4885f210efb552cdf720cd7 SHA512 c1fe586202bfb1ccf6ae06bbf8a175bbe19ab21f6582b4ccae551d904e6c09e13faf9d938ebe78e910db9a6903135e413e3521e633d4cfa61ab93e34a5896175
DIST genpatches-5.7-16.base.tar.xz 629080 BLAKE2B bf273eb71644c7bf00840b0de0a19417efcea421eff2b6c4f08e09dc878e512bee326a6e8a8697faf3e1c2e026019b38eecd3d8837185d9b314e716dfe28a741 SHA512 204aede767226dcd07558b3a5541793073bca0af3bb2bd46fec9fd32f60bd8819f45e99bdda0bbf171a24dafe7615397e10cc040d911d6dae4cbacf869218214
DIST genpatches-5.7-16.extras.tar.xz 1768 BLAKE2B 62eb6dbb2e1dbabde212cb64f581d94da12243e1ff0c339e1552f8795ec21e46afe1b6fffaf214ff44c5d7afc88c59097414c7d2d383a199ca9207e56a1ef08b SHA512 fdf9c96fcd7c03fdfc520dc16872b01d685d0555ab8e0c21cba54fac06caf979438eb64aae9ce5a960ffb40abc12ed3dde6866ab4d2a3b7d094783f1a53d2199
+DIST genpatches-5.8-3.base.tar.xz 17408 BLAKE2B bfc58558204cedcad1fa9cfd169ea215ebbc030f28a001d6b172d1cdee92c873c9b832adc829837cdd73b5af506946769a3884790c6cd212fae32389772b3080 SHA512 bd05a93aa5b3b28cf25dc680614ddc59cd9902c94a5a2a5408fb9e2888b78c769587265239351e6c97a174b593908bc0b88e8dd2e04f9e36182079d0502a239b
+DIST genpatches-5.8-3.extras.tar.xz 1764 BLAKE2B 69fdcc9611225cbfc37820038eb3591497b859f81ac52cf5c80c330389eb32aaea7dde31f15268dd71e5b09dcfba67a58e80c41dbb6f04b03ee07840ceeb0388 SHA512 2aad14d765210d56f9a61ca8d26a08d6fdb43551925cab58c801ff9c0b63ecf85db1d79a9d213db0a0b9c3c6166da8726d10055d8fa689b11f7bbb07907c3b99
+DIST kernel-aarch64-fedora.config.5.8.1 215181 BLAKE2B d29bdc80f90f8ff22f43439ec03c8f391ddeae8d299dd36cb4d4d51c7d37851900faef728a94eca069c08fbb22a8ef5c2bdfb2b850e4f669276d967cb47dc331 SHA512 99f9a4fa65082d09b38bd05021a9f7577b98eb8b101928ff7862139461f603484722ed19aefe34540da6aa15908abee99a5287c1594e45f0c12afa4663820fa0
DIST kernel-aarch64.config.5.4.21 199104 BLAKE2B 578ad451a76204df2a9bbbe34b5cb27051d2ac5e2c33967f562b01338c43f35da6dc33a4c2cc67ea6c3b32b155729360d3748ec28dcaa750f18449245b2e8a09 SHA512 66e9a437beb350fdc59512c17b8f72c5b5bfacf2b35070d810d77e66f49cf7929026cc28ad44b04a016d61e65d9fb4a10af6996ba09b604bf97e9c467d08f8ff
DIST kernel-aarch64.config.5.7.8 208443 BLAKE2B ca77401ee1abd8a2f34de28c32a7153434534a10335f29150c33a0b4fa9b52b161223f59a79e50d9e260014ea2f95e5a2066957060cbf3ca8e938b05957315a4 SHA512 7528c9ae989e9d6297c4d06c3555a06f6636f92ef02adbc03a8bb7173891cfaf52222faeeb1409112119221b08041147acde5d4fe3ab73175bd55d4406283f52
DIST kernel-i686-fedora.config.5.7.8 191864 BLAKE2B 217857254ffd12e987a5bd573e2520508bc70764b6363fc2c6bda1e5be46b70528616b26167150cba32f9e57fe17883c455fed34615a216b2398017d307971db SHA512 b90c6f2cdb55bcb115d7b92752a6efd8fdc09f68acbf365b08c9ff89732745f26d2644e18cb097ffd92d75cff07dbd98a9723179a35dc72ce01a732bdd632592
+DIST kernel-i686-fedora.config.5.8.1 199143 BLAKE2B ea223234bc54d430b87f3eb15fe11b11e617103c861945fb530091285abd0702e2cbb1d9258ca1afe718c4e7578c41f8878422c53e2f0b476e5ff2fa5c17aece SHA512 fc9c1b642e59c3c80b4cb6e1e6e9e2a27692524324539a3f1c163e284f8a69efb45ec839a630b0faeb0e52c15fb6577449163c7396aa0f1c43d727fe8aa35623
DIST kernel-i686.config.5.4.21 183910 BLAKE2B 185126ffb85718bb73761d01683def80b6f002d7a7a6eddd8e858a30d8eadc863fb378d83a1cd2ed82b3540337fa66ae44475e31fb41ebc46d77005b6f54e5c0 SHA512 6307afc2295902e44fe65b1cccaa7a0260b295a5f21f1d67ec66197bd972bd3f5675b624f08d9da8b224cb3ec987d5c21cbd743599aeab9ac6214bc651f43476
DIST kernel-x86_64-fedora.config.5.7.8 192882 BLAKE2B 23044bd3625d1ced686950c1322e91dd99eddb3128ab830c8862f5c949b66df67bc9ce38b810f4d54a35f9b9f11feb58d01450593ec513e132d789e3a50ac48b SHA512 b7770da1f608e8f0ec227dbeaf66491815e9fc4f8f08f01d2ad5877dd1946e73b315e8834f35cb5fc035fc3ac52ede8365107515d54b0792f326ad937d901625
+DIST kernel-x86_64-fedora.config.5.8.1 200074 BLAKE2B 05673cc7c5ae861faff6e823b8fadb9ce2f00864cc955d78733945abe6fa5842b5b74d0e41129cea92607bd907598b39127740dabd377cb25a2fbbcd54eae8b6 SHA512 c601c380163c66c9e351508dbc7ad3f10214eb04895257f721c808e8fa685770b9c898f48b3b05a5f76832fbf8c91e63278539dd9ef3e2c571997c844ecc7c8b
DIST kernel-x86_64.config.5.4.21 184907 BLAKE2B 0eb2b07c14cea7545350fcdf3a94f2a531f0137c502ebda9299cacf44da5385686e2049b480b28bc153c9d413d453cfe682b9655eefe70428cb720f57c7bd200 SHA512 f3b3ee6841555ac3a9cc11536a7d44e1a5a8df2bab14ba341fda7df1ceb0de45cf1c799a1d54a64f2858fd1272d348bb52cf269ffa396878c5402baf2730237f
DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b
DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c71f3be730a15775b7e1d89cec2d72d28f1921987c63d95fe7bea6778efe0012ece6186449f07f6aca35ccf86805186c0f4c SHA512 187d88bdde7325d46b4bfee8d59ace88ab7dc377606b411e1249f9deee2b571ec42bac52c29d26d67bfadece2e77aad6d5e0255a95a84c200757cb05c69160a1
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
DIST linux-5.7.tar.xz 112690468 BLAKE2B b2b71e231507429b178b6b89be546c4a3ee2757f5d2c58b6137d383f16034a587225a75a9dbca6a01a433056ebe078487132c224e909a2971c9634687e47b1d1 SHA512 45bde01593f6147c8c169b9e46b4b56eee998142552ae0ff82f1dd21b1fd54f3b32f6283f6bd77ea717d374672167849e468c157f235d2f12f7d7816e4623bf6
+DIST linux-5.8.tar.xz 114459324 BLAKE2B 7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7 SHA512 45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641
DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.1.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.1.ebuild
new file mode 100644
index 000000000000..1fa0f526e32d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.1.ebuild
@@ -0,0 +1,92 @@
+# 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##*.} + 2 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.8.1
+CONFIG_HASH=47a895f435cccb2cb14eb5d0c52d2f6d4d904907
+
+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
+ 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}
+ )
+ 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 ~x86"
+IUSE="debug"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ arm64? ( 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
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local config_tweaks=(
+ # shove arch under the carpet!
+ -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'
+ )
+ use debug || config_tweaks+=(
+ -e '/CONFIG_DEBUG_INFO/d'
+ )
+ sed -i "${config_tweaks[@]}" .config || die
+}