summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-12 16:49:14 +0000
committerSam James <sam@gentoo.org>2022-03-12 16:50:42 +0000
commit60e7f0e11f93c931b50edb2106ad74b16cd66774 (patch)
tree8adfa811df12ca99e442f326f7d5915ee1738646
parentsys-kernel/vanilla-kernel: add 5.4.184 (diff)
downloadgentoo-60e7f0e11f93c931b50edb2106ad74b16cd66774.tar.gz
gentoo-60e7f0e11f93c931b50edb2106ad74b16cd66774.tar.bz2
gentoo-60e7f0e11f93c931b50edb2106ad74b16cd66774.zip
sys-kernel/vanilla-kernel: add 5.10.105
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.10.105.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index b0a5b8d39ce9..2f4e287483c9 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -24,6 +24,8 @@ DIST linux-5.10.102.tar.sign 993 BLAKE2B 10a0889848b5198b4bdfe131b34423eb0e0ce91
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.10.105.tar.sign 993 BLAKE2B a03e4136fcf202dcf567e042a266ec1c0c0a61ead845ccd1c8ec60bbb50e48768bdc4ae465e500d4248baa2002894ca96f1890ccaabfa299c470a5acb931961d SHA512 004041214bc78c84a3755b5c0a3d87575b4548e37d31b5d57608382bf6aa0bbdac92ecfa936a4414648c112c4cc3c658dc9cf1769b904a7211a70135876a5813
+DIST linux-5.10.105.tar.xz 120378752 BLAKE2B 25ab3e77b201118ea22d621647a44c3d2b50b9eca057e6fb007cd53c9bf5b1aa7dfb0f26b54ac7e64d0fd016c329c174da10cc15b0433900885520b9828df578 SHA512 b0bb4c964a22d8d0ba917945213aa68a250dab05a2054896fa9d319f5189dd95570064f0bc0bf1424a8620dc58a50a7c011c93341b701b0b804d20c1b19292aa
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.105.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.105.ebuild
new file mode 100644
index 000000000000..3cc9d657fced
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.105.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[@]}"
+}