summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-24 17:08:12 +0100
committerMichał Górny <mgorny@gentoo.org>2021-03-24 19:38:39 +0100
commit5770c804b0cedd5a756c972aa78a7949781fdeaa (patch)
tree072db374313000ee7e572e5b7b87b89dd176eb74 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.11.9 (diff)
downloadgentoo-5770c804b0cedd5a756c972aa78a7949781fdeaa.tar.gz
gentoo-5770c804b0cedd5a756c972aa78a7949781fdeaa.tar.bz2
gentoo-5770c804b0cedd5a756c972aa78a7949781fdeaa.zip
sys-kernel/gentoo-kernel: Bump to 5.11.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.11.9.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 724944156172..796643b45bf7 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.10-26.base.tar.xz 780252 BLAKE2B d3da07e58183e25210b0a14dc5cdb
DIST genpatches-5.10-26.extras.tar.xz 1772 BLAKE2B d6e02010a72510e5c18b80102f2383002acf45b645c34d35b31234d6da9ad7b38ed70837bfbb3563c9c3871121ec4638bdebeaaaf225b3f3c6d50dd30ba30547 SHA512 8e1c534b5160553f0fafe542953a3f229082cf541f744038831c2aba1cc061a8ba14713155cb98245ca99e62514619ab6969bd8f61c3886d65c65b67e410ff0a
DIST genpatches-5.10-27.base.tar.xz 862992 BLAKE2B 6b8e6bc6b1a1b9b07d6de58f38efec32272c6d5d4b01ab9761821b9ee1d45fa805c504b2a6e6755a03558138fcb098113cddb0da349a811ddfb8290b8206b451 SHA512 c9290804d54af33212bec8ef1515cc8162226a949b7043fc65c9b73261c06c61d65df1a6ba5706cf3a31d80acb659a7046c722612cd4868f1fa19e3799be8047
DIST genpatches-5.10-27.extras.tar.xz 1772 BLAKE2B ef13bdf8726981575e0c123f198ae7fe93172ae6deaafad5df08e61eb57af5cb920853fa3bafd29e20433368372a11cc1c6e13fe95bff893776f5267ffeded67 SHA512 b75bbc811ae2998ad0b3a56dabe1d84437753c33b5c584c73d3c3e90af5befb91856efb331c5a3260de2c26d5669006bed8ed453374e39c125dd493b40f0abdc
+DIST genpatches-5.11-12.base.tar.xz 437596 BLAKE2B 18203256f36ac4f0dcc959b362130902c38b5c0b3c0d6109b284e4eb15e02c8fa2bd1db2ab03e3efbace6b50a21a928434372684d14563ffb9e63fcc772e3b28 SHA512 64c06e53f8e03d27de6c6e9d7d9beca2ece09644bb7baa4b72b1942168e957ad7714dc3b25c7d8f300a23bc952b78e9e86914e3fe6f8ad5a307cbaeeffea1ae8
+DIST genpatches-5.11-12.extras.tar.xz 1768 BLAKE2B b590414d965e422aeb00a1cf719f96133485b53941b15387d665affef08e7e67ff88380d667e2b95ad85abd0c2e3dd6ef67098e58d0536ec389823a38db18939 SHA512 f3af5e943766337eff397f94166eb173817a634c133938c596878d47b99a417bb8eec0c05fad9067914625dccdfbf1d39629bfba6ed5b82269ba468ccbcdfde0
DIST genpatches-5.11-3.base.tar.xz 11280 BLAKE2B 83a975b07b3e04e19b008e5a5c4f08fa551b3558b68afb800cb3c886f782a21950d5ea1029b631a6caa2658f02e7ae819e8d8c137a076470120d94deab99e524 SHA512 0a8b19f888af853e6a12aff9d6675f7a9977fef92efa19e69c79a6325fc1626efe7aa9fec8c42ee65ba29f0757b166567679a54d0351f19ea502183e92a63ac5
DIST genpatches-5.11-3.extras.tar.xz 1772 BLAKE2B 165d5928e6afc65544392186737efd1df9e1179591ef7edd85a1868971ea76016161a38a615e9e692c4515fe7fc19424a0cfd01420b5ec57a60c8d1d2d223cb7 SHA512 c74015c4e1b824c61db9e9deca6b30a839ae9a8fb5747cb6c46e2af99a9221f11bb971099554107bbfc58ea5389d96e810f9cf8e55d0bcc16a093eef941c6ec8
DIST genpatches-5.11-4.base.tar.xz 247120 BLAKE2B 64e8bb77aa399a797a9dd9726ba51a00ec43d850504680c52b9fe3ebc1277e1e2216a43719bd79b12e3267171f1031feab5adffc35bfffd87f91302b9f8714ee SHA512 9480fa377439c010f6aaae8c5ec6a512070cb30bb6171e31617dbb24ef54687d13bddf4768c5652d8e8c640d4c6b9c85fa0b434d8634d58154ee205db2c1cf28
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.9.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.9.ebuild
new file mode 100644
index 000000000000..d6cf6123b873
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.11.9.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.7
+CONFIG_HASH=ee22e4872dec1ab1f08fabe765e18b945ebcc29e
+GENTOO_CONFIG_VER=5.10.18
+
+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[@]}"
+}