summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-26 14:02:09 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-26 15:39:19 +0100
commitbd4f515121b7c12001e006700c0dfc07c2adbcc2 (patch)
tree4fd75cc2a3aeb22a2ded7d2b29f930e69b16cb1d /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.162 (diff)
downloadgentoo-bd4f515121b7c12001e006700c0dfc07c2adbcc2.tar.gz
gentoo-bd4f515121b7c12001e006700c0dfc07c2adbcc2.tar.bz2
gentoo-bd4f515121b7c12001e006700c0dfc07c2adbcc2.zip
sys-kernel/gentoo-kernel: Bump to 5.4.162
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.4.162.ebuild91
2 files changed, 93 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index e5a77e4025e3..b26e7dd75f28 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -24,6 +24,8 @@ DIST genpatches-5.4-164.base.tar.xz 4167868 BLAKE2B 62abbdb5c0284dbfcb1d6342b81f
DIST genpatches-5.4-164.extras.tar.xz 1788 BLAKE2B a1c49d863d28e352a89a8ef344e2b9fa7d634147190ef2886e1725ffa0a0acac0a8a1a8eca633dae7213e39f6030951c7af7828449b810d32b987ee8645edfea SHA512 841638c80395371d41aa45fc3cf5af0a4225e312495346514e078fe7d5e0d7dfc758e62402816ababb8f0df020206469920ec6b53fc71d3fbb6fe15cd8cb34ce
DIST genpatches-5.4-165.base.tar.xz 4172064 BLAKE2B 5533ca691df2b2eae12f1ddfbdd4a38625569bafbe2a90d8b7c8020013587f873f03eb0b177191a2fa4a060cb4146ad98c5a36555d5efc99a952cd5016ae127d SHA512 377e4298bf5aa6e3537969adddfb6028937035cd1ea39bc49108dc11196bddff4771ea01fea17eb06be88126da8284c8846c33ac800eb55eaa2527de15612cf6
DIST genpatches-5.4-165.extras.tar.xz 1788 BLAKE2B b724b539ecc76ffb7ed1186b71ae33ed066ddc823647c6da87e6afc3c0348bef83ce7cbade88f80579e00de1d2c32af76e5756f71d617c70714656ee60f2b295 SHA512 428c5204967d8bcef77c80c3146294fafe676501e72187c8a5c6a6882cde732635bd422ae690cbf365bdf033891a0f54605e953daf542251692af92a873f06b1
+DIST genpatches-5.4-166.base.tar.xz 4193772 BLAKE2B 0a06f3f716f07f15a01f96fc0f736300a90a7f5be47f1cea7c9c245bdb93f8d255178d0b6b2d1ddf015ef1b51d2f86ee1fb9f45aa17f91ccad41601069d15632 SHA512 ce3ecaea43b7cd15af93a3e4076bc6cac9815f820891ba4b4127a4f8581d812a4c6adbce34cb284d189110df34f64d61d4a7c2619ad0da62ecda94185230aec2
+DIST genpatches-5.4-166.extras.tar.xz 1784 BLAKE2B 29955fdfe9d1f4a9f373cab61b9931a3f4d816e78766db02cb942951283ee5ba1968d3ed208164681fed488126210d93cf20731fe0b4e1d0274333bab75da360 SHA512 799d99c155d060e959728c311df73c6ae184be5a8a7b113f8714ccca0fc30a7b390bc534c138b6d37e00b7ae2e2277229caeefa047dc3b110df9d2e7a74b2ee6
DIST gentoo-kernel-config-5.10.42.tar.gz 3992 BLAKE2B b04f585ccc823c25baafea011a5df9e4ed79f5537fb0c47726bb54d3f6197627b078a6f8510707a68edd9308f7ede84ca3f9bff78e64e06c9ea3d53db496c10f SHA512 5d42e1ac694441acb8ea13fa3e80615bd18f0932a37f50c3d34c8c2f95ef4dfa6541407ddcad802b4fb13468e0e85d8cd09ac37d3612260f9a81d081cb4b6713
DIST gentoo-kernel-config-5.13.4.tar.gz 4024 BLAKE2B 9b4e3205c356c791768b9de09057b55499519af5551165040c5ad50bd85b2886e34a9f8dfeea08c6a2113b903341c2bed897bc2615913cdfe3d13434d7be6f48 SHA512 55d9f2c72d164f81aede7ce5b2c703f8a426ad0a1a3323c0a304c9f07ed86aa06949ba2f42da115b977b810886a47a0126eda96ade853970a951c301eee5e12c
DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e359934d5054238bd096addd7965754e6708bada63398c4b315318f73130ed81c1391524388396775632248870721f1ce23f203 SHA512 225600db53532ee131dd83d10cecc97a83f4615975ff32f3f6190a15eace64707cb59490bb42940e4429f9054221b9d9a589ada443922062bb5ee18ecc42c26c
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.162.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.162.ebuild
new file mode 100644
index 000000000000..d08e589ffcc8
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.162.ebuild
@@ -0,0 +1,91 @@
+# 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##*.} + 4 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.4.21
+CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
+GENTOO_CONFIG_VER=5.4.114
+
+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.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 ~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
+ ;;
+ 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[@]}"
+}