summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-18 14:56:54 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-18 18:15:41 +0200
commitc60a309f01b90404cfa8d713979ef99cb6b0d5e9 (patch)
tree06a5b65b625677ad25a579c53a515ab01516b825 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.222 (diff)
downloadgentoo-c60a309f01b90404cfa8d713979ef99cb6b0d5e9.tar.gz
gentoo-c60a309f01b90404cfa8d713979ef99cb6b0d5e9.tar.bz2
gentoo-c60a309f01b90404cfa8d713979ef99cb6b0d5e9.zip
sys-kernel/gentoo-kernel: Bump to 5.10.222
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.222.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 5c8dbc92517c..af5f506406de 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-231.base.tar.xz 7075456 BLAKE2B ca5cd718126f7c56a81b5949e0b
DIST genpatches-5.10-231.extras.tar.xz 4048 BLAKE2B 305514796a88972e4011dcfed0b7d38a647a7b55950e31b480402cf5f483f258185df7b5b23f2bbfa5b91a1bbfe31e6531da5a8985e48387df458228703b1625 SHA512 0fd5314ad98b88b052fdb341535ec39505a538eaa20f7b6afc5c059b77919f513898ef73db140b615e726af00dcf146db8dc23f5350dece194b7e084de5a9cb3
DIST genpatches-5.10-232.base.tar.xz 7140012 BLAKE2B 9052d2ded65b6ea556321b0983727cb5416f58f357ec9d77a21689ab97ef57c1410fae5b28f4972a23d64e4bb2c69eb287ad96d92800b24de36e70e38bad0a8c SHA512 e2958dfb876f9b752b9c4500eed60bff05aefe2e9384f0600eaa881139ec3156e86c4e0cddcc2eddc460a0a2fa5ca96ad4e451cc0501250d45dfc29e7aa18ae4
DIST genpatches-5.10-232.extras.tar.xz 4048 BLAKE2B b2eb1785c307710457b9979e1fbb7ae3f6929b4d1ae46863367ebd3c4ca817160c14b42a36018fa29e9b384defabba30f0ee8a0dcb153306bed8d31fb47041d6 SHA512 760817111313bed3dcbe056638c3d1148768811a8221295084111c4deea07d393e7d70e1af6411eab9b4df9d0840fd58616cb78aa91996f2b86ece4cabcb6f7d
+DIST genpatches-5.10-233.base.tar.xz 7166884 BLAKE2B 5e1b812e33adcc648e6a85d90fffe60e51c6f9e5e501aadfc2ac10450ea15ef2409ee3f20a54c47c0d86f04f04240b76ca0f9605e59f2ee1c1dfe1cf98541cff SHA512 9fc7b0ff029dc29c405eccc5eb550d10e3448bce7213f9ed3f9f646f52d95ae0b39d7648a824594f87c60cf6ce46354c6d4a0045d7d8cf4efa13c417b9e3210b
+DIST genpatches-5.10-233.extras.tar.xz 4048 BLAKE2B 8f7686f1815ec0bcfe333c237ad1734276a77b169d6d1f5bb235d6164365bee953919f0fc26ccec2954b1d1aaa250ffdffc1da85bbc5559f4e3fc0be6ba2fd8f SHA512 50646414ca3b5990e92da42550a8beb94ba44f428edf92a94286f20421fe396a9d6e53dde8278a64a3c99020c0a217b104bbe527de60d1d5acde362e61765de1
DIST genpatches-5.15-171.base.tar.xz 6912380 BLAKE2B 3d5572ca2854c0dcaa6000ffc7ccc6921115f95ada5e8902c5681c5e0367f525bc658afd504dfabf25111ad1a9a6f6de1bf90e699fec38be68997f1e780f4715 SHA512 176edf85ec8e212036ce90b83a1a00bae1ea84770d8cf60c4f313498a219644a29774da6be34247ad55e6def08b4fe2f1c4a880c528c1d98e63a65acb0ba5a2c
DIST genpatches-5.15-171.extras.tar.xz 4048 BLAKE2B 823bf5a1a62a3a4f97ae296bf78581a3b8ba79134e8ec7098385e23783c317509f8320afb9ff0c25ebfd5b3fb32aa883afa970ac86c550c2d70613d8af7da5e3 SHA512 f2eacb2ebda97e86c20f24a6ab591b6c41fa831947610febce3589d32fb326d9439b63273c2ffe82630157b7559141598e5bb5edbe939e1bed45bca802085f1a
DIST genpatches-5.15-172.base.tar.xz 7003732 BLAKE2B 0f9a38b1a0b8d85429b9f66eaf0fdb7f854f62d6e61c556bfc618d551c8497ded8d1413f8f0c9bcc27988faeb718c73646ae1437b14793837d14d5587f69aa2e SHA512 fcff72f4ddbca1c2fbd012e66ab2d1b1c9a666192edeceabe51a99588564a0937d88c62c8bd71c6a701577ead62bd543b77b520e159f2b60764c6ffd3bcd24fa
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.222.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.222.ebuild
new file mode 100644
index 000000000000..0845d4e45e94
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.222.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2024 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##*.} + 11 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g13
+
+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[@]}"
+}