summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-08-11 14:17:40 +0200
committerMichał Górny <mgorny@gentoo.org>2023-08-11 17:37:25 +0200
commit3c0b6e68ceac36d6d6b774f31871e2fd6aa066f7 (patch)
treebdd79fdf806eb0697ea4c42aa5ab9738883e87a6 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.190 (diff)
downloadgentoo-3c0b6e68ceac36d6d6b774f31871e2fd6aa066f7.tar.gz
gentoo-3c0b6e68ceac36d6d6b774f31871e2fd6aa066f7.tar.bz2
gentoo-3c0b6e68ceac36d6d6b774f31871e2fd6aa066f7.zip
sys-kernel/gentoo-kernel: Bump to 5.10.190
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.190.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 1fd8684ad7bb..cabb49a7fbf3 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-198.base.tar.xz 5696280 BLAKE2B 538dc0baa1ba2df2771c23e7670
DIST genpatches-5.10-198.extras.tar.xz 3868 BLAKE2B fb33cb11d00237cf8649e868175fe31211dd3ccba5201ebbb9606cf0ff863a2519587758ddd6464e98716a2c8c0e210dbf833e70f25631877ec4ba55760d9b29 SHA512 19d64fa354c8a8cc895052d9259a7b25561f4614dfd0a8dc8645f70d19bf677c826715042263769b8740f14fe6b9a03e7f9cd1e0f27d9fa373223d9bf39c7416
DIST genpatches-5.10-199.base.tar.xz 5715396 BLAKE2B 1dcd8389ac735e808f8b06e221b4cee5ec5a8683b11b9e35e78f00fb0ecc62f362f8ac9281937f1a383d6642cf873c17cd5deb0efdf965d66f32257ff8b5cec9 SHA512 c5ad0d9eb2a83ba6ecb07690d815f3e3d480393b995f3553e1dc546a1ac07860800f4df1a74d3d25e54d6d4aa8a082690f86912e32d5556ccd9c92c592b3b06f
DIST genpatches-5.10-199.extras.tar.xz 3868 BLAKE2B 0c8bcd30c0602978641996c3e9a89b8c0812490d2bb0a2f26ffabc1c6a2775e922ecfcd1e083963fae7ba8548595accbdc65412f0c3950790dbc8a2b51e5ed52 SHA512 f30454e4d8eb74052ad9bccc8a740c336070d52fa66caf451192ecde46e91512adbe30eacfa6aa502dc461de557c6f011beab4ba28f8ee2c3866c2200c2a47fd
+DIST genpatches-5.10-200.base.tar.xz 5792276 BLAKE2B 4b7a7cb8f5afeaa04863f955d56c9575f1903ebbedafb21dc38e41da3d3f31d28f2d83d21e530b26ae7f537dd7ac76cd1d940e5e93a75874b1c356ccc8fc3a98 SHA512 426bf39754e40f1b7b8c31d2b516ca12c1184a858e7bc6ed1c26a8348002266c992022fd648075f7c1efc4b526a64d2c1f73dbe9d6ba9ed8fc095f5b7497aa12
+DIST genpatches-5.10-200.extras.tar.xz 3872 BLAKE2B ff768dfc12d019bb9f006ed29fc05ddbf847e05d0fd7f82f8b2a397da7c72348849aca40457c13461a9a4ecd1f9599d5dff59933851ca75df686141ed0055152 SHA512 91ec8fe51b1bfc4d88be9b1dd56f6a7c156aa189483f6c93222f478e91d9fadc6edd5c2cfc48843f589823956c421d30ad9c0e0d0b0702b1cdedae5a01acaf27
DIST genpatches-5.15-128.base.tar.xz 5056336 BLAKE2B 7b25accd5e2c987050480abac7b79cd280820ee8b3607c84a58b6bc1c30c97c209b1a392c9c92abb7494307ccd138358674e7a984cf4766c2889ec9cee069546 SHA512 be70279f9cf6bdccf0bb3436b13cabca61e6360eae2d33e576f408ef2d32ed3bbb449083b0a84c31f98328ddda68b587f689487fe8346df41e83ecdaf702063e
DIST genpatches-5.15-128.extras.tar.xz 3932 BLAKE2B 64d34eee4a4ee36c8d2431d8341723eb0ec32be703fbb3927e7984e9ea365b7907f38b2f013e725221bfb7d867eb63da4e784506615e1cacf9018c58981a2ce3 SHA512 b735304d7990925485ca45f1cd0f6434a96af45269bb3e10b9b67a41f84440654f62831a5160125f8d0c1ff4587ab00294caa1fa5223e8daf86dc0393bc8a695
DIST genpatches-5.15-129.base.tar.xz 5079636 BLAKE2B 9dc533ca9995f272c9f69c277e02f028cf04a1161b6ff18082dc132861549bf9a297a99768bd779ccf0c5ccd26e2bae321e8e233986c23123b3fa549f47a4c35 SHA512 43fd5a4739883915187fa04a5c04e106233ce8e76492240585b6b7dca8f74687c8326117383f84f8d4b8fc1de602b2a9aedfa596ce5a1275777fd15ae0f7a142
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.190.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.190.ebuild
new file mode 100644
index 000000000000..91e1b5a2d288
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.190.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g7
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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/projg2/gentoo-kernel-config/archive/${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 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ local biendian=false
+
+ # 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
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-gentoo-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}