diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-27 13:13:21 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-03-27 17:30:58 +0100 |
commit | f8dfee31df71307d3059d052ccffe3aa73ca932a (patch) | |
tree | 1008ad5643a3c213514e20eb5fc9e1f69ad6962c /sys-kernel | |
parent | media-libs/libva-intel-media-driver: Version bump to 24.1.5 (diff) | |
download | gentoo-f8dfee31df71307d3059d052ccffe3aa73ca932a.tar.gz gentoo-f8dfee31df71307d3059d052ccffe3aa73ca932a.tar.bz2 gentoo-f8dfee31df71307d3059d052ccffe3aa73ca932a.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.214
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.214.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5644430f392d..2cb197bfe630 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -23,6 +23,8 @@ DIST linux-5.10.212.tar.sign 993 BLAKE2B 1b2ff975b715c0b810d95e0cbe0ae53b61a6fc5 DIST linux-5.10.212.tar.xz 120624784 BLAKE2B b41be3cb68ba12974c948bb68be252f07863904f7ff879068e48ec50598e54746243e377abff0a1536718370c86f0a62f4d52a75f3ee20be2b12bf384ac189c4 SHA512 e430cc7a37ef77c5f8979e33865e3f5ad0c02270977d52da5bc153daedd30af8791ea6e2377d7e91ffffed6bb4a418e47f6401d09d97c567a9f4635afb3ed73b DIST linux-5.10.213.tar.sign 993 BLAKE2B d3ab525af7f99bb546977bcf67f0f8db5af809e6b53a42697e88a4b545a760aa2572888f40fa9285e44401fefada9d4a2037ce66ae30fe85b0786eb510d3f3b2 SHA512 f2389165628b6295d9efbdbab2ede961caf776717f3cd4f8e00bd984c28bdd0998e6d3cb0b243791767b78e30c2e604d9fc65279f64cefe61627f6c105f6747d DIST linux-5.10.213.tar.xz 120636876 BLAKE2B 1adc759ed74d615ae9a8291c1b5b4185046d716eaee496dbc1e97f9d90105ea770d79f075cf952de4206d7e2cef841d4d4a61ba4352c645cc242fdbff11b3d79 SHA512 7220a9b8c7157c6451f6c64b82485ca2c8a1625e430a86b810cf168e91a879ce982ed53699b9759554024036276ef67ccbdd7d76a73418592a7017ba4a9adb8a +DIST linux-5.10.214.tar.sign 993 BLAKE2B 3666fe792c3b463111f4b6d82a9af016220d8ece6b15cca78555a35c3a896401c8d06aedf987f31d5729fb99f60ce7a94730e59a37ac5a6ec2bc632a4b45d370 SHA512 34d1396cfb9eef747dec4c4a7fc560eb6d467442b01ff7b1cc10257ad92f301ebca710fc2e8fb061d03b2a0ef6260a77baf419f49758db6b72f4eeb2583924ef +DIST linux-5.10.214.tar.xz 120645028 BLAKE2B f0aa789bd853ce146452171ced154a083ec2587bc3651747b3fb47d8122d7b4f9ce8ebcdf7c4e9f61107c916c147599b0aa415226ea6077b22fcedbb3d2b30bf SHA512 120b5f269b56478791d00ca3af18acd4e16b8fd01af163d9db8b8cdcecf7df4bf6c50cfed9e0ae456e6b1677e4b450b8fcfc376b746344bf1d056f024d2ce1e5 DIST linux-5.15.151.tar.sign 993 BLAKE2B b7c8f59c94161d615776f4a5ff4d5443e9277acedc67de00157c8d4b0013bd63563373f5401f2b642f09714a2dadd68d7b143f11cc8d1709a8cc6a47fc9d3555 SHA512 5704f471f02246ce9f42537611ca6feaf16706eb1bc354af70bddf5f474b2b3383f08cc5ef322b46cea9a0bb78c61a39f725d20d5b0da1f3abc764cd34a63e37 DIST linux-5.15.151.tar.xz 126600400 BLAKE2B c661b84ae19ba50077fa30d35e8032ad2f0a29139984393f270058697300f0827b73ccd7d84da320633158099aa9600d9528250eab496e925efb0e239b3cc7e8 SHA512 25fda3b582871c834e467515b72eb300bf5bb1990d6458a270dfc95b2a8b20faab5345a22c2d0595d6954e270d21443c218b5f279ba14481a5ea0a8328361ef0 DIST linux-5.15.152.tar.sign 993 BLAKE2B 4a0b53b0146b65848725ee4a5c92f828ff5bbe6affb635bef1dffd3094a3dddcb7cbcd3108ab15d88d9375460f902c5137106156daca272a9581b427dbccef1e SHA512 14c95179e59c2ad6411436888147235a6878d8dcb8fb3bda7953a45883457bc307d205cd1853c37efcead7bc9a3448c524d86a9e794eee4c764a7d3c0776178f diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.214.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.214.ebuild new file mode 100644 index 000000000000..9c5b591d7e2d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.214.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2024 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=g11 + +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=/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[@]}" +} |