summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-02-10 15:14:19 +0100
committerMichał Górny <mgorny@gentoo.org>2021-02-10 17:58:18 +0100
commitf82c14ab4d8a8beac0b70afa40efa5250aa32d34 (patch)
tree3e1dedb9b87dd7c119905d1eef62cbe11dcd5a20 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.15 (diff)
downloadgentoo-f82c14ab4d8a8beac0b70afa40efa5250aa32d34.tar.gz
gentoo-f82c14ab4d8a8beac0b70afa40efa5250aa32d34.tar.bz2
gentoo-f82c14ab4d8a8beac0b70afa40efa5250aa32d34.zip
sys-kernel/gentoo-kernel: Bump to 5.10.15
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.10.15.ebuild89
2 files changed, 91 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 6e2dab9dd1fd..f5bdbf536b1f 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.10-15.base.tar.xz 455860 BLAKE2B cc02492f8f33e3b644df293231e9e
DIST genpatches-5.10-15.extras.tar.xz 1772 BLAKE2B b7cefe073d4c1c6b6f5b57e79faa95baadea2a79be973524876941275be05b60be2008ddcadb02ffab605d47dec4fa325609e70b58d7c59aba83d2075d7c3766 SHA512 ab18ecf108271a4a132ca5983a47985dd462e5b312bf0cbc356340713738c40888b59fe4fb2597c218b41098d6496594f2ad98638b6b14c435ba271b8f4b2882
DIST genpatches-5.10-16.base.tar.xz 468704 BLAKE2B b7476d5db21c56f2b0e3082e47d643b12b163277e84aecd4b7df75e97f6b703ce8fbdea29aee0a7150f0f193a35ecd896766e9e6bef8dc47a4dac941f83b7f02 SHA512 9623b5fb47de8a93d036e301220031d5b6508e07ce87002193a5d52a34902a486811f133419c84c35cfd7f7bb6076fb5be87992d6934ed57b830d4c7542313df
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.4-81.base.tar.xz 2591356 BLAKE2B 63c0ef166e2691c6747a2b2a8317aeac286ddac1454ae1eba7a34035abeba67ea2627257d17f266fde57da0684f83cb102b465252a3b95075c1442123c2473e4 SHA512 88d4deb9002cfe6aa8a8045770cf5c7ffde8cf9bad324a72296b1a5202c94386807fad53460147420363b3c73613be424bb54000e5cade7baa4df254ef2c61ab
DIST genpatches-5.4-81.extras.tar.xz 1772 BLAKE2B 93bedfbb023ab9d3913751cd242a4221b204685751f57d0ac31494fa8f8caf8e5faeb3ae10eed5332016f9a40b20670a6af6c4198eeae1136b14a3b28174beb7 SHA512 8776735a73aad4672d4b857d750f985ff6681f8e565a906106e2cfcd4d7839fa518d8fa19b39a0ac948736a3384656be44aad239ce2516786c797303f492ce01
DIST genpatches-5.4-82.base.tar.xz 2792480 BLAKE2B 39960646116f5f85ee657a29557d8fd9e809ae9bc60aac349c91e7680f2a0565800ba37a478573098dbad41b686336a058985d2925e5046fa68eeaea8df25477 SHA512 6a76eebd7178e2ccc522477f53c36f74e6fd691f87c547dffa2602a516ad9a6a01f05c953e12bbe6ba9aa2ce34b176a6a081a22da40c7d86855e5dfc34098059
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.15.ebuild
new file mode 100644
index 000000000000..1eef3068fb9b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.15.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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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[@]}"
+}