diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-06-22 16:35:59 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-06-22 22:01:05 +0200 |
commit | 5c78f1103637c0267b4a1002dad236a186a01b70 (patch) | |
tree | 56ba8ef5dbde963ed053680717468086ad511e4f /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.200 (diff) | |
download | gentoo-5c78f1103637c0267b4a1002dad236a186a01b70.tar.gz gentoo-5c78f1103637c0267b4a1002dad236a186a01b70.tar.bz2 gentoo-5c78f1103637c0267b4a1002dad236a186a01b70.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.124
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.124.ebuild | 134 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5aa27a1d5116..763905306992 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -17,6 +17,8 @@ DIST kernel-x86_64-fedora.config.5.18.4-gentoo 221797 BLAKE2B 1873ffeab78c7e9a81 DIST kernel-x86_64.config.5.4.21 184907 BLAKE2B 0eb2b07c14cea7545350fcdf3a94f2a531f0137c502ebda9299cacf44da5385686e2049b480b28bc153c9d413d453cfe682b9655eefe70428cb720f57c7bd200 SHA512 f3b3ee6841555ac3a9cc11536a7d44e1a5a8df2bab14ba341fda7df1ceb0de45cf1c799a1d54a64f2858fd1272d348bb52cf269ffa396878c5402baf2730237f DIST linux-5.10.123.tar.sign 993 BLAKE2B 452125ab4b6b820bb05ece8a837de686e355b0538b7a81c222354d5c98c14f83d4e3fac1615b9507bd85f6edb376fd0600fc581d57d6f65e9836a5c429dd6b06 SHA512 ad208814a6123926e05aa120c598b02ff94ef316af6c701fb2225544f216860cfb320ea5f1450711e0b5fa0ea06cad0eac4fd73fb03186af4af7b091a67c84aa DIST linux-5.10.123.tar.xz 120419760 BLAKE2B 91664daf29a41859650933ec0462d715e0b198dde1b8602b415a8538eadafee50998236c34aa7c914e998ad9ba83f5d077a2594b0a4d718bc41dcf36c2ba939a SHA512 1dc91a931d8a01274d47c469892ca5263e35cc8202d33e44f510dc6a5e61195a363cea6cafe035824c3150eca6294255f5f592f4c2a8acff1ea70c5db16ca624 +DIST linux-5.10.124.tar.sign 993 BLAKE2B cc0cd95e6c6a3ad78f802d2a2192b718a4a0ef9e8c2ad08c6580b3fad3083822eea62e42cc899ef992fbb2f82700f94ed1910eab8ed0737cf7be8e406b1ab7a0 SHA512 87de588e614f35aa1f966093f6baa8fa42b394b3f890062e7b04ff5106fb4f472c763e64908d8b1eaeb56665857ab68f5454436eefcf44901eea33ac97ed56eb +DIST linux-5.10.124.tar.xz 120409020 BLAKE2B b2e775ec64ee45c5e17e2a35badeb5f76b948057eacd90a6b1a3232de91c64a3d3381310c9628fa6ac8258bd2df2be460704236e6d72774c2105a938585f3dad SHA512 98454c50b382c94d88e24942a87d91cac053ae5c888bac94eb167261c9cd3268367734f8d61eed77bc7dde3d8bc96586b83be6a7bc3289e13c26a90874df6405 DIST linux-5.15.48.tar.sign 991 BLAKE2B 763026ae690c17bc2e1fee512fa792425a9bdc3ac15f35ffefb32d99adda90e1a0acb4bfa96528b1f90f50127b5a4cb86cb5a7b44fd8ad78f4d31312ed8ca9dd SHA512 160bcdb7aa692c5413ac7b13bb6548c73b0d5256df8eda25d02d910d8de3b9afa27820da4c4273f7f7244265c92e1dca88f70ce7deeab7d9f670af49f1cd03ae DIST linux-5.15.48.tar.xz 126357096 BLAKE2B a23dd33dfac22741e5112961d92543a895c858be62c4e82a60b639e47c7b05e623c41a13a6c5157ec7b71ae1f152b381b7729f2bbaf03734cd40dfc0c27923f8 SHA512 6eee3ff3352a864a5d98295527056da0d6d52b5f566fd7858b2e12a5d0094efea0af484a7e8cdcb344bba343c5d95b5d19c0d2756dd3f38531712438223755b6 DIST linux-5.18.5.tar.sign 989 BLAKE2B 558168c1828b1d3960e8e4f5e0f5c72b2b3ad556db722db234dcfd7da71a6f01226a951b3426292ba08104b6aaaa468f4f43199e6400928c801850bf492bf8ff SHA512 3018e8046fc9ce248952fff1c4c2df821306f68e639ec5ad6b9728f72974e3c589166da823fd9e0a751a5681567c6e84beee3a20735608bcf54566be30a3ae4d diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.124.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.124.ebuild new file mode 100644 index 000000000000..96cb3e86fc4b --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.124.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=g1 + +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/${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[@]}" +} |