diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-08-19 13:34:17 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-08-19 16:47:28 +0200 |
commit | 82789ffd8097fbc8719e3b987757e747fe193391 (patch) | |
tree | 06897aa1b95a663d3cc3fcf493447930d26c96c3 /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.165 (diff) | |
download | gentoo-82789ffd8097fbc8719e3b987757e747fe193391.tar.gz gentoo-82789ffd8097fbc8719e3b987757e747fe193391.tar.bz2 gentoo-82789ffd8097fbc8719e3b987757e747fe193391.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.224
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.224.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 2bd9dd4e02cd..2879969804df 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -28,6 +28,8 @@ DIST linux-5.10.222.tar.sign 993 BLAKE2B ec9a556b9aeb2cf51d14f5459576f92ca3bb79e DIST linux-5.10.222.tar.xz 120709324 BLAKE2B 05370e0a32687a804663ce4da2e3ddf03a4c7202842550a5833ce50a7eaa434094a981d83a04dd893a925446c6f1392af6d26253511c288229d891c610f721ce SHA512 384b3b816daea1579116f86e0e0271101093ed82854a986351b1a5936f003ed1c469856c26410ab503480531acfe9ba1fbc39dffea03d32ee58849ad20af8877 DIST linux-5.10.223.tar.sign 993 BLAKE2B 12cb50217d95ed49a9b96ac804ec48f273d601999676887dff575ae33601d4e5bfc6cd41569018ea3760822769753fe63ca750919f5545f112de466d7a5aed9e SHA512 9ea089f6018b273777293d33854309db168e98b1abce0d0e23db6d8bfff8b3a8fcc57514d632df910ed9554e92e6388f0f089c9401e67fa570358d25a0f5bfc4 DIST linux-5.10.223.tar.xz 120710080 BLAKE2B 220c17707834358323aefaeb0de62aecdc8679b453d25e8e747fe3523c9055cd239002e03ea13f4241dae2db3da248f3f2e72ebf550dabd7d108d936c5d21ca1 SHA512 e764f12d1736261cff4c5a73264527d9341dce6268a0be236cb3fb5cf0521487844c341b0c34d6aeb05b4556726f53074cb1d2e2e34ed1df85b51831ebe7e96b +DIST linux-5.10.224.tar.sign 993 BLAKE2B a359659b5af01d61ee7e5220b100cc811b60de637ef0ee2624ae46734fc1bc0ee5bd4178cf1dc906c2a8312255d4d982d3ebd6d7a0323abead8ff6cc6eb24e3f SHA512 14a0f4a14f5242fedeeac13fc8d6a36672bc910f21635c05dd8a68641ba5040520ddb4cc3030419edc0b26277a827d4fadbde683f8b5de1858cf5a63db139a17 +DIST linux-5.10.224.tar.xz 120718024 BLAKE2B 122032b13a7909bed102f2f26c74e5c743938790138a56afec0c11c878303f26ae638307a739c547c5bd491fe15ad9b261622909b2c60784a96f8ba8389e48cf SHA512 43c038046601a32100056d67300ce32700d04c081935964b15732e749fce5bd70c54a3a2419f85a60ccad229726698d3e163e3b9959156fd6e0cb653dad27541 DIST linux-5.15.163.tar.sign 993 BLAKE2B c7b726dfaa4ad159c7c55454577892d111f03f13d95367acb741f71f7dfcb0d17bf8ac5b6684a384494d6340290d21f9546c7b407499e741c90b6e6fbd285e31 SHA512 5868c9e671fcbb1134abc25bbe8ff3563021fbc79a4f550046a060eeb27024887600e0932c05812f92b78b946b769cff9720e5edf684766e1582017e15b57b14 DIST linux-5.15.163.tar.xz 126680944 BLAKE2B ae8b721b2835d158fc6610f68bdff8d95e458a2ab1f6ebf4a53b3056d251d44253cd060f817a1e853dcdb333d91abbb44fea9bc9fa5302d5ecf90b5f5546db91 SHA512 8145c55476e56355bc785fd999ae514ebfb6426d9d0d9ef937f7a8c55d6c2734e9b2221013b596cee5e01b69340533353f80d99b59a4fbbd297c37acd57be3b0 DIST linux-5.15.164.tar.sign 993 BLAKE2B 40f5b2db0e56a65fa06e1b4f46ab11356cbcbc96540286cf2cb398913823d5e61b668ed70163c7000ef4eb261f9d0d8c751427a126a6c166544284bdfeafc3e1 SHA512 651686362cc104400c40df56a923a78a1cec0817b9379363e0814f239b25e4ce42df5e9824aff5cb04f78e8899cd241f8c5086cc7a40e4c9f50d40a764803514 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.224.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.224.ebuild new file mode 100644 index 000000000000..900f0cd17578 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.224.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2024 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=g13 + +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=/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[@]}" +} |