diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-02 19:22:57 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-02 23:05:53 +0200 |
commit | d4fc0530a698b6c0ed2049b7959e0aae4f299768 (patch) | |
tree | aa933d2ee0d78a1cd675f809192288ddd850bfd1 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.11.18 (diff) | |
download | gentoo-d4fc0530a698b6c0ed2049b7959e0aae4f299768.tar.gz gentoo-d4fc0530a698b6c0ed2049b7959e0aae4f299768.tar.bz2 gentoo-d4fc0530a698b6c0ed2049b7959e0aae4f299768.zip |
sys-kernel/gentoo-kernel: Bump to 5.11.18
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.11.18.ebuild | 90 |
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 5de268a0bbba..5fdb91852f2c 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -22,6 +22,8 @@ DIST genpatches-5.11-19.base.tar.xz 660328 BLAKE2B 89eea3501d394d62cb116afdd0350 DIST genpatches-5.11-19.extras.tar.xz 1772 BLAKE2B 4d5771f406d8df3752f7512359e4f98a2f8caa07ef230785da07ba5c4241403f940a856b7be4552ca9a48358573621b8bb8cf069077bee0282554ce60d92769f SHA512 615a895738ccdea871dc45502da6695f42d28b6619530683100994053dbc01b9f0d3fd2d550f73305cbe8e53fcf3c1265364bd17de926107a1485302f4f1d65b DIST genpatches-5.11-20.base.tar.xz 674760 BLAKE2B 934558838ae3623f02697dcaed81d66eee7259c6cffc35ab1102336914d80cc11e8f757382fff6b56a7355008c0661ba2aafd693a4d689502684e4c96497278f SHA512 c227c4c5ef0197aea5ddcc10b457395af206aa3f305fb66ee36aaa9c858b025c1e5e7cee1e711d5157afd7dc561846b945186ab0dd1274daafbf275ddc657e74 DIST genpatches-5.11-20.extras.tar.xz 1772 BLAKE2B 720a9b97c773775065b1a050594bb5f286d985d33b6c1da624fd0771fdb8cdcb3577fe17229000a710dae2789a7480402b0961352a21d40d3940640f9e02abf6 SHA512 063f220996d8f852a5562545f4217f36f63b83cf7676976820500b60de85f45ba954bd1c637d7f453faca65d1c68daf77ee876e30e502fb2a9cd4d5ef0c260cc +DIST genpatches-5.11-21.base.tar.xz 675064 BLAKE2B 0bf51d2261550cca3b1e01f2abc99475635d00a4a0b99655f639ace9c04c9b161b36da07484f22ce32bb52a32648fd29d8fdd17e6b8d290786d2bae226cb03cb SHA512 ace9c71e28b9985f4e8f00677b5d1d1d60d77d3fc879f17e1ee129e2ce20709e4eaa9dc51584a54d259a2ec6cbaf9334a81802c1c517facb131cadaef1fce41e +DIST genpatches-5.11-21.extras.tar.xz 1768 BLAKE2B 23d1ed173ad6c888f51460f1012facb93ae1f76d3d4b320fc7c4b1b4d81ddfee257936d09dab4788cd3c5a95088e5f423eb6d7b1c2935de8f5bda4b95cb09755 SHA512 71d473521855328d515b2b824edfd29827072627ade43dab3770defba4fba836d624b2230d503a1fde005e536734224101e51fa632e355175a64cd0695081529 DIST genpatches-5.4-112.base.tar.xz 3278220 BLAKE2B 11c4a33da1081ce777019604d06740368895e74893cb88f4ba6e3988fe3204f2d5a0ffe2204f77aed427ce8decdd77c5ea7dd374e893cbf7ab346b8fb87a918d SHA512 d2c5378076390358ec60346e832a9454f1b61e67c68da4c6652d7d6cfa29223417fd0b95ea526cead86af5692e4e702a0ee5a169a894d04644f95bbbdd7d727e DIST genpatches-5.4-112.extras.tar.xz 1768 BLAKE2B 7f77e833bc17035063b98d89135455fe6200eda135a92221c0f2eef63c6b41235653a8d11a7c99e542010c2195c1af8f5ae84a7da27d159fef67be5192537722 SHA512 6dda1c917736f8a45b1d79e3d7f30b243f922b274425975f520d1d2a5a0fb95b0ab242e0f24bd3a5e0b09e8eac76b6f71eab94cbe1747e3162ce85d892a6da5c DIST genpatches-5.4-114.base.tar.xz 3305288 BLAKE2B 345acf1ef846178a5a70f385f3d9c2dea25b1892fb755cbd43c78f3aa553097294549a5f24e9552ab0d37d5086fb58e98b72db5230ab8506e725a0908edd5143 SHA512 fdbb6b9c10eafc3069b72460db1209843ec4d4d024548a384dca72592e3c6e5e4eb3b9b34058266499da26caf0a168a1469de7bf4934e0855c6a5db1f4d8d69e diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.18.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.18.ebuild new file mode 100644 index 000000000000..22d434932a65 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.18.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##*.} + 3 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.11.16 +CONFIG_HASH=020a7e573eb59b9d2b935e955c62c987e04751fa +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/~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 ~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[@]}" +} |