summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-06-16 16:46:28 +0200
committerMichał Górny <mgorny@gentoo.org>2024-06-16 19:33:34 +0200
commit34f6911294c86a0c376677fa972cd9a55a9bac64 (patch)
tree844e857b9cf3545a70e03f5b4b0aa73d1dc816bc /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.219 (diff)
downloadgentoo-34f6911294c86a0c376677fa972cd9a55a9bac64.tar.gz
gentoo-34f6911294c86a0c376677fa972cd9a55a9bac64.tar.bz2
gentoo-34f6911294c86a0c376677fa972cd9a55a9bac64.zip
sys-kernel/gentoo-kernel: Bump to 5.10.219
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.219.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 8de98b34b11b..46e580fa2cc9 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-5.10-229.base.tar.xz 6801488 BLAKE2B fa6992a4274f2a43fc39df9acbf20efda8059291556f083efa80d71eb51b263a244be38d327317631da0044faad5af20ed830528e0c87502231db02c3c2e7fbf SHA512 e0f7d32915673bf28d615fbd15daee8f81fb24161d783bd5026d5a1dd1010cafe758ea7996b9613fc6ad28b00d329d4bd0d900b77925ac3ed335e7083f09a740
DIST genpatches-5.10-229.extras.tar.xz 4048 BLAKE2B 72ae61217320dfaf4a6cea8544c66360eaa42307f23bf0c666114d3ad5ea1f1a98d471be9c4ed824e87a6a4d0f90eac10ef703b1a7d2231655740ba0b2100639 SHA512 168250682177d829f2a510714ba7bbf42a9632032bcbfab8616ab66c6c6f21b09e49ac566f599fb2c09f486280b611ce3764ae4826ea30c5407e091363e98af8
+DIST genpatches-5.10-230.base.tar.xz 6876488 BLAKE2B 9fad0e5e713c4487cfdc3bf370b95f3e6c8eadae663b48b956f8fcbd870dcf13e19c50febebf98e64ee62c9fc2906ca3a7e899e073a03ce3c1f2574096dfe397 SHA512 1b2e074854d8e3e155884c2ba7a352e1437650150549cb15a0b5187002d1bc529b097ca9c4ca5e88fa67ab9e91766c2a39037f78b92c4a1bd70039e9374b834f
+DIST genpatches-5.10-230.extras.tar.xz 4052 BLAKE2B 5a1b37765f94e0d259c97b797ff2c64f9347f98882d5b759a42f5124da0cc1abf19226c89cdc52a74dbbb693c26f066610480d99474601d0f8fbd524a5778a53 SHA512 66b82411df58f53e6557d4afb6d9dc34ee529b32bb41415e345255aa4c4deececd1720be6ded4910aada1813476f7fa8aa51d5dc288bdf55b08b8f06dadbef2f
DIST genpatches-5.15-170.base.tar.xz 6810444 BLAKE2B 979cea1e399d312eac94ef4e4fa417132fce1d2522713e78234dff05db3fbcb13ead3fc679d2d0f42f801d8f796cbea47cfc2a64d212ea1b6bb3b312f775aa86 SHA512 0d75430202e4f9e59ec923fa9cc9a11276b10ec1dfff5fba30746d9e8c60bc82d2ff027463ac4b17ac048285438a7a6657679f6a5aeb2caf10391016163ff446
DIST genpatches-5.15-170.extras.tar.xz 4048 BLAKE2B dd052053b2f791b558938755ecd1946d55aa52374acaa98b666aa2017d678d3552d161b36e50bfce63b9a71f0e252cf298c8416e3c6ce8318854886e9c1caf67 SHA512 b2befc9604dd5fecdcdf7d58ca219fc780548b439780b64c3e3eabe5b3a53fb33af30af8a0807b6d5d327381d9541f94645dd0f8475bfdebbe0ca41fa9de7846
DIST genpatches-6.1-101.base.tar.xz 5248940 BLAKE2B af64a685e905a51004350b263e6d5bf9078518a979bb5d192752672d15f54a1dd330ec71c33dde0dc6afce11f5d53bc62837ba400314978d740d4adfa3f32778 SHA512 fde5c4d51ba8cb095743d936e6b7e31ad4b7b04b46db66a4746d8fd03205a0b18a17e4d1d08210beaaff13557fd47a9752cd36a28abf19d879639c175cf755fd
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.219.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.219.ebuild
new file mode 100644
index 000000000000..0845d4e45e94
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.219.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[@]}"
+}