summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-08-11 14:17:30 +0200
committerMichał Górny <mgorny@gentoo.org>2023-08-11 17:37:24 +0200
commit8579272ed7c199404500270482123c0a2a445e3a (patch)
tree3273b312b3811392ab9f13c1e1565ce694d47aab /sys-kernel
parentvirtual/dist-kernel: Bump to 5.4.253 (diff)
downloadgentoo-8579272ed7c199404500270482123c0a2a445e3a.tar.gz
gentoo-8579272ed7c199404500270482123c0a2a445e3a.tar.bz2
gentoo-8579272ed7c199404500270482123c0a2a445e3a.zip
sys-kernel/vanilla-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/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.10.190.ebuild137
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index a02a1c63893f..400b036a2fb2 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -30,6 +30,8 @@ DIST linux-5.10.188.tar.sign 993 BLAKE2B b6c7ee466addada512ea6ba9fc86468040e0fea
DIST linux-5.10.188.tar.xz 120594860 BLAKE2B dd995a1dd78f7eb37a7152d5156e69aedcee5a08587edf826edbdda0544871eb6e10971d3a31cafaa2f9597b6c2b9aa1fcc10904f5054c7d3e6e89583d6f3df2 SHA512 b8f8f560a03ba9a95ccff0eb820286fbb6f17730f3e5959d26dd60ad4c3f4e9344ed7bdf5f7ff3558b52cdcda51a2c9141d0e2901e00d32ed1ece690437148f5
DIST linux-5.10.189.tar.sign 993 BLAKE2B 8684dde881a3318b6d008225d162d8bc7a9cc91995869bef22d0eaed7da529eda6d0623425c01927768cc176888bef64af6d95498c5d48c1c35c270ced32783b SHA512 df9162e15e2fb943a80a2ad2e285f010b162ff8a7b4fc81f3fde92622bf37430bb3cb088df691fd6e803166ba91fb992467c1cb082f50854b607c1995396ae98
DIST linux-5.10.189.tar.xz 120616220 BLAKE2B 1fbd10a45e8ef071e7e2f3f816f6150d0c1bc8559db7b628b1af930a83c914614227e6d7a5814a0fe3b9679e52c42d14c7fafa393b1e3e83fdaededdc7d56371 SHA512 24a6446658d0b4bda79d5da16413c838ac3f9f04790b6a61ce1464567cc00d90ccf39f31a9f98096042b042fadc06d324e7e86e99558c16f55dd0fc12bc36843
+DIST linux-5.10.190.tar.sign 993 BLAKE2B 42abfa20b9fdab7611a75d1e46cece5c073d520ed88569d9bf8bcd8f3eb5603203a8ab5ae5e7bf39d10133b62e8b03840a858a4aa2e2731d87a9cc50da9e629f SHA512 e88ab333ee373dfcba0716848beb56f2f8bba7a1c3872a6d620834db1fdd14e83e314210f8899cd0ab1f2a3c3621d05600b09dae320d40fb84be282f7acf167b
+DIST linux-5.10.190.tar.xz 120577812 BLAKE2B 01752a2f86667d16d31e4eaf4fddbfaaa5768254162fd7c3179da3d2faa584813816295907d89b75c4a146b8e03cb18be47c4f730ac49f000c3af0ab375a3c54 SHA512 9f82f1d64a72be7c50462518a69cd265df429741c01ac0f5deeb9a2226ed8f40b121fd0f3ae9df9a944898b382c1a4551d59cc8c7d360954f84a1c6ebd90fcfa
DIST linux-5.15.122.tar.sign 993 BLAKE2B 8a021595b519795a89fec13df9afa15087823348fc92d91e4306e598faac7b56d892b2db63823023df3ef5dfa7fdbcf887b4daa1a980f166367cc68de0657c9f SHA512 d67c1331aad447c49a2f8f52d38506e3fc2539eab387d84ac9de9fe47db94a2632d7297ff58a161f50deecb32e9a81b7d111438fb0c1b3abff2c346d040f1960
DIST linux-5.15.122.tar.xz 126497672 BLAKE2B ac2861be0226c0f49847cbf7466069712f75e8fb00fadbd3db5ab6e72e70b78f1b7fa954f46be442237112cf069b50c2fc085510e82164d620f15dcbc0517bc9 SHA512 a9eec228d9fc9cde2377b4c5445abf1b15c588bc9a15f529ae4c2924a6fc7daa0b8994ea6266e0648ce347a3b36f2439243b91269e4d8b5eea86296dad1abaaa
DIST linux-5.15.123.tar.sign 993 BLAKE2B cdb1ec66d92d6f91c87b52e52f967e7ddea8536b9e1bc4638464b1aee2bc34e5937fc5766c14d1d5b365143f27ce03d24ba357d8c1d7d6f51708d4dfa8add742 SHA512 234865ede0c1aa2f4f7be71858ba872bb2a37f9d85ff423e1085e20bfabf5a55dbb75e63652bf075c791eeb1f382fccbb3092ee33db84d1591e309ef692eb7a1
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.190.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.190.ebuild
new file mode 100644
index 000000000000..3d406f474e2f
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.190.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[@]}"
+}