summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-14 20:20:42 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-14 23:58:29 +0200
commit15dd5276dff1e8ddc4913e5a58cea079144458e1 (patch)
treee2a2a1f915dcf77c066fa8476e78192fda184fd6 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.119 (diff)
downloadgentoo-15dd5276dff1e8ddc4913e5a58cea079144458e1.tar.gz
gentoo-15dd5276dff1e8ddc4913e5a58cea079144458e1.tar.bz2
gentoo-15dd5276dff1e8ddc4913e5a58cea079144458e1.zip
sys-kernel/gentoo-kernel: Bump to 5.4.119
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.4.119.ebuild97
2 files changed, 99 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index a50a888c78b9..5fb39d7c413d 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.4-120.base.tar.xz 3365276 BLAKE2B d72fc4839a6716278fa6144c4ec3
DIST genpatches-5.4-120.extras.tar.xz 1772 BLAKE2B 40abc1f926eb659f257f9b1988434f752ade522ae5efb72b721015a070774a9bf1a96ecc5947c289d7793864ba55505e4e140533b6d18b094a66e5517ea856f7 SHA512 0f03daef6fbfafde7cc1cfc7cd75ddd5ab55942a5bfe45fee7e39324523f05a3cb1774aa572a0543913249ec2b478d0db76359b6329f90942b3b8f8dac264ec4
DIST genpatches-5.4-121.base.tar.xz 3407340 BLAKE2B b6cb01e7d9663640afa9c65f13393b66b00575f71ebbef6120ef01447f580b0c9a8ad45ac924ed4550d0d331fdd2fe711ce8bdb9bec8965943de0b24d485ae01 SHA512 01a5fdd3645bc3abb66fa3088bf8cf3e90302ebb81090efd4e76306c32756b5f5edb42d332efc5b0ba33f8d08ed4b0bab939945334a8e7189f6b8cbedf7d9104
DIST genpatches-5.4-121.extras.tar.xz 1768 BLAKE2B 59572978e5e9e24ec69aee64991b794560355f522702f2b68b33c0ba74164027f62ea6bead7822458131fd8445453fe4c9ae0eb4bf60c529833a83880613b8cb SHA512 22d808f23f684dd468149ab0de361a7a82e188fd2381c79b4342fcbd64ea2033251e2e7247b0d1f0aca473d899fcdaa58a072009313e68538461de7be1150197
+DIST genpatches-5.4-122.base.tar.xz 3456412 BLAKE2B 1fcb1d1491821f2bc8e7cbb4ba5afe34ab359f2ec0fb7a6dd53b7763475d46ee28063117c5914b4e46812713695f03a87c12a24c0c2be4a0a24b426f18942e3d SHA512 fe1cc1e6a4f0b3e00bace3d60e930e47c026b6256d3497d832376b8e052e2052d4578836cd8b40c3fcb7fd998329fe0561a13007b89918cf4e8491ee1df05a42
+DIST genpatches-5.4-122.extras.tar.xz 1772 BLAKE2B 9f36f1ba90a633d2cbbfc182be882e866c9c393eebad2353e302ab0a49435963d0361757085b643586e67de49ab3c509a66a6767a86e5e7b38ada319cfb9ca9e SHA512 b0930f9b2d4fac28c67f62afba4b6434adaa7e93229adc613a0880c5ceb4bb4b1c36618cfe598f6328233e075086c84b474c29a714a556de191ad84145383998
DIST gentoo-kernel-config-5.10.32.tar.gz 1269 BLAKE2B 4a21a57d567d9a527ef829f375275c65347b2e6461b00e50099458c496af0a7b3b863a6e1d8421ad18c52c64c1c4cd7e5fd416673b67738cde6253af8a9f18db SHA512 a83ef22a7f9f83f01bd65a5470f0678111b0a7dcf1dc564e04264f68cc54833dbed4cccffe2864caf3ac14169611259f0bb786c1aefe194372d6d3f67fa64c00
DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e359934d5054238bd096addd7965754e6708bada63398c4b315318f73130ed81c1391524388396775632248870721f1ce23f203 SHA512 225600db53532ee131dd83d10cecc97a83f4615975ff32f3f6190a15eace64707cb59490bb42940e4429f9054221b9d9a589ada443922062bb5ee18ecc42c26c
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.119.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.119.ebuild
new file mode 100644
index 000000000000..06fbd7e64e61
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.119.ebuild
@@ -0,0 +1,97 @@
+# 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.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/~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.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/dwarves )"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+
+pkg_pretend() {
+ ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
+ ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
+
+ kernel-install_pkg_pretend
+}
+
+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[@]}"
+}