diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-02-13 18:26:29 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-02-13 21:15:27 +0100 |
commit | a03b16688d87faa6e07577f943662fa5a3ee86c1 (patch) | |
tree | 1387159ed12df48192a548e0e57d25873a8b16ae /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.10.16 (diff) | |
download | gentoo-a03b16688d87faa6e07577f943662fa5a3ee86c1.tar.gz gentoo-a03b16688d87faa6e07577f943662fa5a3ee86c1.tar.bz2 gentoo-a03b16688d87faa6e07577f943662fa5a3ee86c1.zip |
sys-kernel/gentoo-kernel: Bump to 5.10.16
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.10.16.ebuild | 89 |
2 files changed, 91 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 70a87bc6e508..f2545a37cf7a 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -12,6 +12,8 @@ DIST genpatches-5.10-16.base.tar.xz 468704 BLAKE2B b7476d5db21c56f2b0e3082e47d64 DIST genpatches-5.10-16.extras.tar.xz 1772 BLAKE2B 5652ee641cc180d14e7a28d3dabecc46430bbe8daa5d5e0cba3090d8a2e28ee56b92073efa996bd9ec598897045c29f1a8c3fdb28f69d7ef94422d31275d7fc0 SHA512 90d245b44e33ca5f8356dac3d3ddf0d736530384ffc232fb230b88e799b362c8cf9b4a147f7b9fc5c32aaccf18cec4ebfa7b8c80bc530ac300b5444fb9263021 DIST genpatches-5.10-17.base.tar.xz 502160 BLAKE2B e243f962bdb26797424cbf27eb64e37cc42a5d7297d8eac4dfdff556f641aa0d34461b9845df3c203dfc0df462e130089a83c1cb8fae4774df5e99cee27ed67f SHA512 d573c4f168fc65cacd01931d0cb52636ee4c739ec7a285f069cf8c0e487f606e2cab5a9524dbc020b830ede4a5660e2204a49d27596fc661ca96f3db26856c31 DIST genpatches-5.10-17.extras.tar.xz 1772 BLAKE2B 14f5f5b8a2a70190f80376f20a83c2f7a70ca31b2a956c2cfd84fb2999436bc3cfad925ce9744d333c896f520df6dec5337ad820340d9b4dd007d91abc95b0c4 SHA512 2bf9b8444f8d53937a24e1d0304236f04ca220eb1a2bf4d4c47d7655149d752948a0050684d1d1f18065226e7b50501b3182b264b2ff009b6f9e45e6886037ae +DIST genpatches-5.10-18.base.tar.xz 515540 BLAKE2B 245520300cb9ea1a0803dd4497b3f98bad3ddd29851f8f1273e3b51a3479c03a4915f601f1df216593a36b6f7593ba852dbbb7f106a40260c14b4590201b8fb9 SHA512 baa107fdd1c893ba977391cc429542b90de96d0cf4e6a671e392ef8e0f795d5ce1e4d2e74c214a907c9bf35fbdcfcec220785a4e66322b6191f097eabadeb567 +DIST genpatches-5.10-18.extras.tar.xz 1772 BLAKE2B e4c9b0ccfcdade38239cbf0e8db14e46b394b3da9a08c2538f81c602e9c8f52ffaeac0b441831ac771e6a19314a8a7d61b5411e1762c7705c555bea5a478dd68 SHA512 59290f7ea30bebb5137829a1d69b22b2170ff06a794e06b334f03312174e31ed9be9c8372396b482a936283a79e557f813755b5fed77a5485b2144d1d4b0e52a DIST genpatches-5.4-100.base.tar.xz 3072228 BLAKE2B e9dcc72a03ee2ceb3e02d8dc76b57178c6b7066e07b925bffbd6edf72befb262b68c953522052a357040ee1d087da414a5a100d29762fb65c0e0e1dd122879b7 SHA512 7ab34d9742d5d941632abbc392ca38c6dede00993263e9487a0f7f329b6d36803b9c26017e8f1daf00956f79d34a0a9365fcf5ddfb2322a03ed58476441c7bdf DIST genpatches-5.4-100.extras.tar.xz 1772 BLAKE2B 60ef6c84479783e92f613314e753e723201e8f58938e1ba7d58831b045cb02669dadbb4fe66eb10f4c7543359d9d16371aec09d6dbbf341471dedcf6bca29121 SHA512 0e8b851b181fa711645996b989c92ea0a4665094197700c4b5315bd92c2f4e6dde59ddeb6931f2533c8095a3f9e8a4e5e23bd5d0d473814a46aadacd10c30a62 DIST genpatches-5.4-81.base.tar.xz 2591356 BLAKE2B 63c0ef166e2691c6747a2b2a8317aeac286ddac1454ae1eba7a34035abeba67ea2627257d17f266fde57da0684f83cb102b465252a3b95075c1442123c2473e4 SHA512 88d4deb9002cfe6aa8a8045770cf5c7ffde8cf9bad324a72296b1a5202c94386807fad53460147420363b3c73613be424bb54000e5cade7baa4df254ef2c61ab diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.16.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.16.ebuild new file mode 100644 index 000000000000..8dc827c8223e --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.16.ebuild @@ -0,0 +1,89 @@ +# 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##*.} + 2 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=5.10.7 + +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/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-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 + + local merge_configs=( + "${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[@]}" +} |