summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-10 02:37:47 +0000
committerSam James <sam@gentoo.org>2022-03-10 21:09:14 +0000
commit882e3495261ff43c5373803028eecc6790922f89 (patch)
treeaee86b050023ca47567b0bf037e05427760853b7 /sys-kernel
parentsys-kernel/vanilla-kernel: add 5.4.183 (diff)
downloadgentoo-882e3495261ff43c5373803028eecc6790922f89.tar.gz
gentoo-882e3495261ff43c5373803028eecc6790922f89.tar.bz2
gentoo-882e3495261ff43c5373803028eecc6790922f89.zip
sys-kernel/vanilla-kernel: add 5.10.104
Signed-off-by: Sam James <sam@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.104.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index c81b09ed22e5..ff5cb0fc6508 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -22,6 +22,8 @@ DIST linux-5.10.101.tar.sign 993 BLAKE2B 09edcaf2e47dad78efc4f5d551b0d382b2807b1
DIST linux-5.10.101.tar.xz 120405612 BLAKE2B 138998dd71669ec8c9bfb5a2c176d8f336d6dcf96f749deed82505acfb0f1d658b792eb01e96569878b01d6aa5600bc29882b27933ae40681d575da56bc2718f SHA512 930a38f82ca4a5a444a04fe71030be4dc10fb2447dcc73d88f3650e5239dc8a67116d4644e6aef1dad5f8aef17299bb6980fcca5a12522928a8409460e0bb5a3
DIST linux-5.10.102.tar.sign 993 BLAKE2B 10a0889848b5198b4bdfe131b34423eb0e0ce91b6df649b57d088e1116008a2d940060bc3b4ce9e24c5e91e78b8077a00c50dada776e42039b428e90e08b11d5 SHA512 7f20c13b2abe6ecb15f4d3bdc36c8d61b2065c60d9ae3f9310e1f763e2f7e3594df788f549b21d6961193de53c4b4ac9b589e243459de7cf9f8a988f2d919bc9
DIST linux-5.10.102.tar.xz 120395768 BLAKE2B 50bd2d608b193d25defaf347ca17bef198c46da9dc9a988510f038857a49b8054dc75adbf90bf48cfaf3da179bba776f0ffb1c54a965a5d7c3de19d648658407 SHA512 08f5a50cb48e0a58745a4825bbff49df68c4989c241eb1b0e281c69996355fcc84f8aa384069ef2323c07741240733c56a2abb8e85d25e122773ea465af5c57f
+DIST linux-5.10.104.tar.sign 993 BLAKE2B eb6ce12c4b0dc92e2a0fcf60cb667974ab21380d84afb87b3df15ebaebeb9647f176e8d974fb6502a52560206a7c50ea30c366f0b2c5422c3a8bd71943f13146 SHA512 9fcecbdf7d714f0627b57ba90724e93fb011931899e4b0f44c8c0ff3cba5f238120e84a138c5389e3f0317705558ca4aee1a766a8872f6658be18c350055ce00
+DIST linux-5.10.104.tar.xz 120415232 BLAKE2B 097673237834c79eafd1dc2334402c8d4712c48d0fa6e511b4c388a835c82cdebb36cb3176a1e8ea4bcb7317d5a06ee5fa9f825a9933b94db87bb83c7952d43c SHA512 8676dfdd1b81c70815730b718995894037de3d4d3f3a65f1648aaa8792c4d54f51166e9cca948cf2d0a244a38777abb6b9fa1a3bef50b27f510ecdb1549145cd
DIST linux-5.15.23.tar.sign 991 BLAKE2B d085b784adc51f74b17156a43c22fa98221c80ef057ec132aa462ddba79bc193f1dd645a1a21e752ed0d5e52949b2aa77f0b1b7d4341313bfe3206013c8934fd SHA512 880aca81e1f4bad49850b904c8f78cc63e8e1eafee27a912e655ed609b2c552e7a1076fffb557d8f19f0af850f917b2ee43a9181f4559dbe67a41161776b002e
DIST linux-5.15.23.tar.xz 126202324 BLAKE2B 36be53585e67350496a84438712d35e488b745e85b6981f51448d9b19fe30cce9968ef486defd8a68f556e2518d010bf6f63dbf2bf7a504e25568e71c3aecacc SHA512 eb863fe0b62b7f2457bb66361fcb23a7a629a53dea3b23b26d012227d318cd09fd99b94763e88b593ead70eda1f58b702354155a043aed0ef1e68d5d1ba53ce1
DIST linux-5.15.24.tar.sign 991 BLAKE2B 1807f81e43cdec5b5852eb5c9df6f17554466d4ed946740e1fe7ff17ca46c9c5ca07236127563bc2f249d2b4516e83c08e600b680c415c1cd76d4074f9c55547 SHA512 3ad52f00c39a9852b3f370c5b74eee375c7d64307a0f93f73542f407b8f6e72da7f9de483c6bf8fdc96dc52c8c053fb8c152cdff88db6fc5621a3905708e046d
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.104.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.104.ebuild
new file mode 100644
index 000000000000..3cc9d657fced
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.104.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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=5.15.5
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="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/mgorny/gentoo-kernel-config/archive/v${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 ~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[@]}"
+}