diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-11 18:22:37 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-11 21:51:16 +0100 |
commit | 3215993c31b4d70c566765d153758aa3ce18ca89 (patch) | |
tree | 62503da7637b0637c0163c5babc5b0d97efa806f /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.14 (diff) | |
download | gentoo-3215993c31b4d70c566765d153758aa3ce18ca89.tar.gz gentoo-3215993c31b4d70c566765d153758aa3ce18ca89.tar.bz2 gentoo-3215993c31b4d70c566765d153758aa3ce18ca89.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.91
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.91.ebuild | 130 |
2 files changed, 132 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index be8b2c6ebb49..a2ecfa9fc100 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -27,6 +27,8 @@ DIST linux-5.10.89.tar.sign 991 BLAKE2B ffd758cf40031ee8ada07514218d9c03cbdbf21e DIST linux-5.10.89.tar.xz 116486456 BLAKE2B d91cf085ec273b3ad3d128e4097d0841496c0e71fa330a09b2db878cc4a7c683f8444e7611f172ffee84fd2180a2037bdf57fdf4fc1e6995d3b044eb4ac1785c SHA512 a5c60d947246944c75bae0b62efa39580ecb9c1f57f141071de0055afde725c1d9ac95a78db55326b5e43388d44ba1c810b547239739115099297dc68e534674 DIST linux-5.10.90.tar.sign 991 BLAKE2B c41b37ab6e42e5f89b2ca2e0ef84421a2419d137c58a21a497523162b6f576b2441a03900177bc0ba16702f819e88d401cc1f182cd94597f8b53d4e0b6ecefee SHA512 43b7a3ef71c342213a542d9836dc44825a3962ef742c109a75028943d4a7433bbb252ef756214b26f6f77d3b3d384c89a3913fef27b904b3694f72818291d3d4 DIST linux-5.10.90.tar.xz 116480464 BLAKE2B 993cd26adddc38a811bbfbd4acc1d595660379d1d55eeaf7008681f13e198571554116e85a88ab90fe945688695831d364a426959bccda0d15d9b01ebe611a83 SHA512 0b31b025a7f65cfbe4cd77b059c74a087109daf4c8195e17f91f725feeb074b12e7db0f8333906e8216511723ca5cfb55230873a4351867c1b4962831646a51c +DIST linux-5.10.91.tar.sign 991 BLAKE2B 6b649151e0bfd3774ba37451eeab2923137e152dd9c538a2e27ffad48edba78c86b5b3ee9e94c52095927d9c76a571d03ae13d04a7e7ffd923c636147539fca2 SHA512 f809d4e43f006f72cf30745a31f9a766b9187e90a4461b1fa77754f5e85275f5657b62fec8828c5b0a13a1730d493068cd4e01b33e2d8a5bb99319acff12c027 +DIST linux-5.10.91.tar.xz 115074200 BLAKE2B 933d76a40a908733bdbbba17f06e346695d02bc281c715ca53a3a2d8a25b0f629f82b31962d631b19838d8e76e1634966c5631c904e791b6cedcfb0cb0b7d454 SHA512 11462ff6d874432f685cba8822132bfda6f5bb44f6c20125ecd601bfdc21cd28c263a441abd60beabb90e8e82364cad0499e6120e5ceac4433cdc6dfdd823fdd DIST linux-5.14.21.tar.sign 991 BLAKE2B 159182d90911e738c0693c839441f679b66fa3e75c61bb55251552b1ebb7bf6ad018d66d0a83a8f88935b88c1f39fea1207a94f3fd4af3d1e5d148cf9293baf9 SHA512 1c2639bfec52b2f8cfc69504b7f474d1d7a96dc1793e8cd77a6160718a5f381c5e57e42339bd5361e83b86c84cda2500d18615bfc210bbe989c0560b275f4918 DIST linux-5.14.21.tar.xz 120726436 BLAKE2B ced805df81421f328e2e08d50a33bf6ba54092e95c84d7c1c8ec25ad909c183f82c9966a074c274dd0d13b069b87c12c6f6d5593faf3c0813c4369f90fc4a24f SHA512 0f428cb7273de5b440b610b1a3709563e4ed955afb4df084750a8b43c45e5b000a5906780ff7079a8324fac0a8b7ecace778ab8bbf0511fba92d4dad160d7f87 DIST linux-5.15.11.tar.sign 991 BLAKE2B 42bed55a97098e8af2c9f33852b94806710e2df15a9fa8fa2199a1f3be133b89b9505e79f3e9c9663fcc5482249334f34a1c7a9315fc40741ff7302a60c4c823 SHA512 5ff3d7d368dd4481e003b00ed926f601520f53de020a507c5f9af506679e57958db0967752a600ee80cadbb0b19d33368007fb1d3c298045b30faed964da4714 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.91.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.91.ebuild new file mode 100644 index 000000000000..54ba5f449c7a --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.91.ebuild @@ -0,0 +1,130 @@ +# 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 )" + +RDEPEND=" + !sys-kernel/vanilla-kernel-bin:${SLOT}" +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 + ;; + 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[@]}" +} |