summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-04-20 15:44:58 +0200
committerMichał Górny <mgorny@gentoo.org>2023-04-20 21:12:15 +0200
commit18ca326934829bba56c0b58463ef7581d38672aa (patch)
treeaccacbb639d80423fb0c19d25fdba8f399518761 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.15.108 (diff)
downloadgentoo-18ca326934829bba56c0b58463ef7581d38672aa.tar.gz
gentoo-18ca326934829bba56c0b58463ef7581d38672aa.tar.bz2
gentoo-18ca326934829bba56c0b58463ef7581d38672aa.zip
sys-kernel/vanilla-kernel: Bump to 5.10.178
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.10.178.ebuild137
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 058473f0a336..2a2241c8037c 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -29,6 +29,8 @@ DIST linux-5.10.176.tar.sign 993 BLAKE2B ac1198bf81516fa1bd3297eb19efbd43efaa536
DIST linux-5.10.176.tar.xz 120573768 BLAKE2B 80f566355ca1d3400edf447b10a109961123d0bb968a5f44c80867f0c2f4cc4303897d0abd2a54f4be36ed87b43f6647183535b680b5120f377724a8b2bafa8b SHA512 e5d16fb9b206474cd24e09745e72e23991bd90c43bde2c0de39e0aece8889f4a3533a09dafaeaa0f893d913153dbe72782655b6b73845b25a57dc27bb139d42f
DIST linux-5.10.177.tar.sign 993 BLAKE2B e692501352ad2ee680db8613b1c72cb76ce46a104c1ba9ce7f3ed8ade4ca755666c6c4724e73a7e8aa43d7978f1a15570024e181052397bee844b2ce63b4039d SHA512 af3d67dbff2337f5abddac24841b43d47cae05d8bea2281339da268b4cdeeb2c1bdcae0255ec00689322e93224f466bbb2295e7b461bd524f4ecde5d4e1aa15f
DIST linux-5.10.177.tar.xz 120593728 BLAKE2B d69e74195bf594c25e9e5d450520ca1941a360fea009a4037021608cc8fa7c95a4e4ccb8a302762324b62da2b207842d30c67230eaac44b990b262640c08dfec SHA512 27d60975e63cb61b4df1ca4419f25d9339818ea69c4275ac8066139e705eedb93b49eb6b86b4d4b59c09cc5080c1d7e9f1f083f274d94bb99d2ccf61497a2991
+DIST linux-5.10.178.tar.sign 993 BLAKE2B f1c97bd8b5f3b10bddba48ef818bd5c01c949edc36a63b5b48a3a2e5fcd8d919c738e60a087418356c065411405a885b5b43bb9ad5453c861c2ea3f5d515f47c SHA512 3480e059dd578a2cd142f33bccdcd0a56b468e7d6d23562d936bb4976a264e524245111948b859acd01b1942899ec0e89e9fafed4c973b1be6410944205dcb8f
+DIST linux-5.10.178.tar.xz 120585876 BLAKE2B 424b8cf3b1416f9f7b8d5ccba8346ff413448d1885253ee942d9cf2dc2bab49a4f9a569aa66391caadaa14490c6c1a4c75ec272b76b58da487e314f25ec3edba SHA512 80c3564ebd5e51cdc2a95510b0f49a51b3003dcae8f71b4245edf62d3a80deb1a31c986f2820cda98841c38745e5cb2263b7d9321fbe45d1a98afe7bb1ef02c6
DIST linux-5.15.105.tar.sign 993 BLAKE2B d3ee71e169ec78ec8a9a5c3579eaa504319c37b51ef41437534b92905a37056a6ccbf3116742d645ab7a2c095b39af41f861325d57d9856f96e6a587dc80c56f SHA512 720dbfc8dc4290db043dc76e0bee27276aa32e9b1c0954e28c559e1ceb03bbe8f1c828855c9a25bd644d2f99afcc21ba032fd28dd8d6dc61d283ace448de84f7
DIST linux-5.15.105.tar.xz 126525736 BLAKE2B f0175a21ada81910bf4dd176f1c6674244e8ed9294f4e19e89be73ae12e91c183479e0e0604c9c52c48f2e549ca1d4e01c5eb32a2333aefc82be8bf4160befed SHA512 f133d664431b82d995442878a155d77c624de0ccc02704198b5db27e170d55c3759f88091279cf9d91f717326b5304e0cfe0aa8253ac5d89bdeb7d6ab344b3e2
DIST linux-5.15.106.tar.sign 993 BLAKE2B be0eea3e6c2243f6535e330fa93b87440ea45a40b28dfdb5b6de72567abaefc2393542aa6553a08ad03c82774ef4099fde4d4c71fde31b33a21feaaae263229d SHA512 0a11a497ddcbfe0aab7d1af38c713e00624805d67e24caad33ceb7869ea129017eebb570d5590c51b13b1571c4b0ae6480a3bc5086de6ac713cf0165ac348889
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.178.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.178.ebuild
new file mode 100644
index 000000000000..3d406f474e2f
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.178.ebuild
@@ -0,0 +1,137 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g7
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+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://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ verify-sig? (
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign
+ )
+ 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 )"
+
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( sec-keys/openpgp-keys-kernel )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc
+
+src_unpack() {
+ if use verify-sig; then
+ einfo "Unpacking linux-${PV}.tar.xz ..."
+ verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \
+ < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x))
+ assert "Unpack failed"
+ unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ 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="-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[@]}"
+}