summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-09-12 15:28:22 +0200
committerMichał Górny <mgorny@gentoo.org>2024-09-12 20:20:17 +0200
commit484bf641c4b006ed91112ed46687a6ebd55bb757 (patch)
treecaf818b17e00bd571243baebee992030af355ec1 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.226 (diff)
downloadgentoo-484bf641c4b006ed91112ed46687a6ebd55bb757.tar.gz
gentoo-484bf641c4b006ed91112ed46687a6ebd55bb757.tar.bz2
gentoo-484bf641c4b006ed91112ed46687a6ebd55bb757.zip
sys-kernel/gentoo-kernel: Bump to 5.10.226
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.226.ebuild131
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 14a8749591c5..1d128eb3555b 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-235.base.tar.xz 7367252 BLAKE2B ea3261b363e415112f0a13f4666
DIST genpatches-5.10-235.extras.tar.xz 4056 BLAKE2B 6341fe389c77377eef465c9a92587bf370a56ecbbb65ec99eb2002e1e9525ad6a6fa1aa60f7ea28b52729a4779e236c706155f98a336358d12d1bf4c80381660 SHA512 d14506f3b69069682ab736b96116e58420974b77d99a22818601af7451aa07ee564dad10bef321f288be4594b6990b25521518865fcb111d9886aa3c1681f977
DIST genpatches-5.10-236.base.tar.xz 7402184 BLAKE2B 24f0283c2dcc8c4854be2b70018143df53d090df3be31f7a17de5a8c2b2a342c864b3f610af9de1dba3046a5ab9ca7ab5460673be55d36d88dcda7c384d08231 SHA512 1993249aaeeb39905846030c652bdb9c4437e43f6fa5fcdc87f6578f8583cb500aa2859c9b0026cb45b25319e53ee11526a16ab1f322aabbdf3d3b9b5da36b59
DIST genpatches-5.10-236.extras.tar.xz 4060 BLAKE2B b79eccc56c3eb9c3dc96ae67d22f4fd5144ae9c00fd948a31f6f6346bd76cb04933578bb22234e698b94f0caecf5e4fb3b57dc2190d5e87f017e19823cbefc90 SHA512 613f3fb02ff10f2320a0bf7861763f3d06c48b7f3bec0925d8d5e341744cf0c2c6396c17c277a4e1d5ea45fdb5fb88845bd5b6975749274e67dcaef183b7ba3b
+DIST genpatches-5.10-238.base.tar.xz 7454284 BLAKE2B 6c3793f4fde055e4ec7e6e1c5c1b1efb9168ed61dcb10dcbdd19f7bc72de9ea92a367039a2803d57bf223cc88f717c2ea1e947fc5a7727ceffa3ee2727005e44 SHA512 fb4bbb904139151f96d6e2337872fdb97d175648f4560a3978590414efb3b369656f65a44ed5bb86cfcd85102970e290be76bbc14de0418b4764d260bc511b17
+DIST genpatches-5.10-238.extras.tar.xz 4060 BLAKE2B 46f357f280883621ad97b8f1680d9f6c7e63bd5b9ab976dddb0f2023acfadb5d0e7f7919f4bea46b0dc099777234aba07259e427145be889fa8ba76cfb9dbf15 SHA512 e6f23a08bce4c0683c91e7907403d497d941e93b50b86660bdcad3429b490233dad8c40f117101395e81347150c99bb6b82cb51e0248074deeb0131bdebbe834
DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588
DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
DIST genpatches-5.15-176.base.tar.xz 7318820 BLAKE2B b7b87fa0ff1bde133cd721f87599163aa4609b3416677850fb30cf2b7afafff316bd50ba7301e658670c1abfbc81c29a0a40dbf1d8d6d2a7bd016f7a27bd9c01 SHA512 d4e5df70d7c28f0f39eea7b88fb27d76d4773ec41c52021b87cd2e84578dfb3421c641fbd212fd2f8961cb0dbb7f1e6237f13c5a3a1c348fd777eedf88b70ea2
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.226.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.226.ebuild
new file mode 100644
index 000000000000..741632ec759d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.226.ebuild
@@ -0,0 +1,131 @@
+# 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##*.} + 12 ))
+# 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
+ arm | hppa)
+ > .config || die
+ ;;
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ 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[@]}"
+}