diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-15 12:59:51 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-15 16:56:41 +0200 |
commit | 7d710af1a53e502eb03e041ca9034481fe42fbc5 (patch) | |
tree | fcb5e674e95cf78df3ab2ae00d0262a85c559e3e /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.213 (diff) | |
download | gentoo-7d710af1a53e502eb03e041ca9034481fe42fbc5.tar.gz gentoo-7d710af1a53e502eb03e041ca9034481fe42fbc5.tar.bz2 gentoo-7d710af1a53e502eb03e041ca9034481fe42fbc5.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.213
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.4.213.ebuild | 100 |
2 files changed, 102 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 5d4927f1616c..0bf26a70e1cb 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -24,6 +24,8 @@ DIST genpatches-5.4-216.base.tar.xz 5015752 BLAKE2B fd736588b9cbf9ba0a48ad838a17 DIST genpatches-5.4-216.extras.tar.xz 1812 BLAKE2B 7dfc1025fc395883debc819c3fd5840c423d8b3f1973104906545086d35a966551fec967da9ec976257e231c4270c7b091e7641353f89c254c974b848607e5fa SHA512 aaa70a72cfe0989f5ebf2e3f57cf55c6faec4e2c605fef7ecfd425c47574765fc0a2ad5a7b9fcfe33dd70060b52d4dcd44d2849fa0fe203612c0ebacd2b171a6 DIST genpatches-5.4-217.base.tar.xz 5035852 BLAKE2B 45b15e86b35e7f669a4f009261f0f2c0b174579850f8b99be07e60ab7561a1f35ecc48be927621f31a9f97ecf08256af784650b0991aac7d35fe7fcc8ff19afe SHA512 c8f898cb5178e67bda970c273ac1e18a37f8dedc1e813fe8429546eb83ac808ef40e008935c726924557e9669888a9571a162d75965d6c8b11d052ed1c66d482 DIST genpatches-5.4-217.extras.tar.xz 1812 BLAKE2B 5d8cdb3ee45a1180bc94540338f3dafc08da96a849e818ee54be9cfeea59e5fdca2946cebcf2211c256978242d337671398cbaba38581f5d66e7c0f1f692fecb SHA512 55b4465034fbfbefcb0e22e782dbf7f7e3c9d74975cbe737fb0e2c57ed116d84857970074507dd449d55e8b8eb61e4dde725f5fa9e24c6dbbf83c57570007b33 +DIST genpatches-5.4-218.base.tar.xz 5055868 BLAKE2B 2dde93f13540d5268d3855b6c4b57f3746badb0db68564bd9f0a5b80cf63138dfb77a1d60be7c9256a36a7685e90299a8e28690debe2e8bad9e23e2d31dbe470 SHA512 884f469ef288aedaa2e9271fce5cbce8254247b64cc4e4594fd176b62f65133910f8e50d2458f8c822db5683beb02316b71c71e69c71ae2331baafe1d421f347 +DIST genpatches-5.4-218.extras.tar.xz 1812 BLAKE2B 3d98f3ae24c5612a9427c88943474b1ca8efbba31bf5e0c0f012b4bc41d1ed980042221a77374a19813d2ba02eab944343aebe2b45aac893352a27e6330dd74f SHA512 31a3790fc98eadb717e9dd9ae9a3c0f4d8d36a2fd9023f407c6c5cc8e4018f89c74535c44f7fda34e3f7b48a0116c4bd1a4770bb98bc60a264e9c541cb767d8b DIST gentoo-kernel-config-g1.tar.gz 4283 BLAKE2B 44dd51ec45ebc71bffcd6d85a2fefba053f7bce8035057f0bbe928e24816ad4ba03c9bf67dcfcd6d6d1833c0a2ea93e0fd486c2093664dc41ccce316e1e60588 SHA512 3a45f28df9d457df0fe0d185da8b10f4e35f49dad75075e041e8cf3cf6972fecc8145cd557b0bf3a8dea20ddffae0194f88e61c1e5098fa0a5ca301d40aeea2e DIST gentoo-kernel-config-g2.tar.gz 4359 BLAKE2B 965392fb5b3c1290c596d3e8593cfcf54e76cedd47de335c1b9658c1b35649af18a94639bf3df84507c797e6d7ea074f7f2a2579d2d01073478b30a4f167b2aa SHA512 d1bdef2e817799fcebbcdae1f3b1666f8ca70b0d5adca74014dd665f6b02c81b839220d8fe3794ea1202e1f2589d281344699864207c98b95d23a1d1f03bd42d DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.213.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.213.ebuild new file mode 100644 index 000000000000..5fa543cace37 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.213.ebuild @@ -0,0 +1,100 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=g1 + +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/projg2/gentoo-kernel-config/archive/${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.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 ~ppc ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +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.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + 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.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686.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 + ) + [[ ${ARCH} == x86 ]] && merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |