diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-03-11 18:06:46 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-03-11 21:30:54 +0100 |
commit | c5f8ab5a871ac32998bd11aaf83c03251f4974f0 (patch) | |
tree | f93414ddc224d29af3d9673cb22bf89fad7fe6a1 /sys-kernel | |
parent | app-containers/docker: fix (some) kernel check options (diff) | |
download | gentoo-c5f8ab5a871ac32998bd11aaf83c03251f4974f0.tar.gz gentoo-c5f8ab5a871ac32998bd11aaf83c03251f4974f0.tar.bz2 gentoo-c5f8ab5a871ac32998bd11aaf83c03251f4974f0.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.173
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.173.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 9b0e5aab701d..3cb151076949 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -36,6 +36,8 @@ DIST linux-5.10.170.tar.sign 993 BLAKE2B 8f47f3beeb361d6a658cfd282548d38ada55bc7 DIST linux-5.10.170.tar.xz 120567560 BLAKE2B 2cc5de731c61dcfb8c006aa805ab840ed9743f02330c206c2cea127ff840ada1de630ee2f844b41b6302f10239fe001dcb3a9fd763817767cc8f751759f7fd96 SHA512 89dc8bdf843eced09acfd9abb1ec819c29da4305549e9ce9133c47a5f023ce1398f488fe7928e07b44bbb9141cb2f48aff1c13fe3839b20e2153e24d78dd3786 DIST linux-5.10.172.tar.sign 993 BLAKE2B 29f39419ee257ab5fee025797255df6c994fc37fc4708510c25ecbd87032f51cb96a7e1f96dc5c2bcd5faedac3ffa1fd1b62ac60ed8edb5281557e651ca0637a SHA512 deca74f8e344bf405b2e84477a07f0137fbb9b9d507311984e6dbba0686e9bff98c4583ee18b5fe4f0edea5e46cc9b42481e8015ec2deea423460caf30d28043 DIST linux-5.10.172.tar.xz 120591456 BLAKE2B 002260913f33be97ed30ae5838cac0502b2966283f2c3a6682957f3595c3c707cb449ecf84a41b4af72dc4ebcfe46da34e9ecc7ea3855ee40231ee7115643b11 SHA512 23d4397436073e57867dc9f51ee5be3a532c6fc05a8645670c2244ee1bbca6d6a7c9e06f5b73e11b6a886773261de348e72c1fce8ff70316ff98e3d7ed88e9ea +DIST linux-5.10.173.tar.sign 993 BLAKE2B 9a35eecfedd0e9f7d3dd025ae9abaaa6cfe9a8c04533f3a594f8ea169ae9bb12de95cf026fb36c6f17bbb3f90fbb34ff1a657af30cc7f36179fc9d3b3005cea1 SHA512 97805946e9c3aa72d264622645b7b3edd612f247fffcc06c5c88453cf57865ed4481b87d5b65632a6df82230195150aaf27e73898b13d86a299a4560776a8634 +DIST linux-5.10.173.tar.xz 120591732 BLAKE2B fb7c0d78496eaf919e7fffa8eb5c68bdc25b91c4e80f08101ad85f89e5bb46ff2fe18bec2a49cb76db2de681f601bd37877b0fd5b7c24f7424b58486a8ecad06 SHA512 c5321788eeee0a84c6e50d809c5ebc60f489b8cef1febbdaf0b8564a3d15b4f8dc65c13ae3daf67cbdcc7f6aa46308f65203b93535ed005efef0a29f8534be42 DIST linux-5.15.100.tar.sign 993 BLAKE2B f188ef5014dca3b4474bd1e17e4e47464589bd4d632df4ddf0c6f3c1fecae243e4eb4911453798f73bfbb4b52a19480f39e9596f1f2e51e22c8b9d8248f78897 SHA512 f6bb356839969f699bd2ac56a02bf9dee63a6cce3d237d8930c198b173eb959c848884142e8a763d5a593ba1fdb6bf12dcbfcb9ba8be8290f9e72f3de28fc93d DIST linux-5.15.100.tar.xz 126525956 BLAKE2B 2629f4c53c5fb51118961e445e5660213e26a454d645246c4601ac3a57fa7ed1cd50a71986600f37d231d712080790c533f916ca685202d49d7e3b31c3140e4d SHA512 2f9d73c8b8c38ccdff29c52f4d7d18f3fca1d48ff0cc747f75a616ac7964d3f7bfe4a22329ac6b28b4c6e9e44a79ec30104ea3c93cde98ef95e95fd61f4ba5cd DIST linux-5.15.94.tar.sign 991 BLAKE2B 648f4c183bf955ee25efdb575551ef1e9c20e0b3e3fbe0ae5cf5d1c08cf5b4bc5b5a6cce603f3f17d9ddfce976fa42b480f93ac8ce2ee6f64d5ca11f56e899f5 SHA512 ab6eaf5a44df0ce2dd7ccfa4c72788ac212ef42eb1c4d8464f59b73638a08cf5361792e6be5fced152343f4c278e45379e76659a96bf623e7da33f13c3b16133 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.173.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.173.ebuild new file mode 100644 index 000000000000..3d406f474e2f --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.173.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2023 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=g7 + +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=${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[@]}" +} |