diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-05-17 17:18:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-05-17 21:29:58 +0200 |
commit | d2e894ec6d60450fdc1da35e3da0b490c2a309db (patch) | |
tree | 5d20d027cf707c7dca2b77198edf79dd3a72da7c /sys-kernel | |
parent | virtual/dist-kernel: Bump to 6.3.3 (diff) | |
download | gentoo-d2e894ec6d60450fdc1da35e3da0b490c2a309db.tar.gz gentoo-d2e894ec6d60450fdc1da35e3da0b490c2a309db.tar.bz2 gentoo-d2e894ec6d60450fdc1da35e3da0b490c2a309db.zip |
sys-kernel/vanilla-kernel: Bump to 6.2.16
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-6.2.16.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index e6a9248641a8..65cc5f1f5cba 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -39,6 +39,8 @@ DIST linux-6.1.28.tar.sign 989 BLAKE2B c3ac2b197c826885b5b03eb9e908cb3d4465ed53c DIST linux-6.1.28.tar.xz 134884320 BLAKE2B f840274d9e1c5af90292bce6afb8b8b1a81b4f8ef82691a1cf28ca2d6cf680913c2668ddb086e1fa4ba4112e9d8118a674231374c14a06a911ddb3d2cf8ac3fb SHA512 7215e62df10847e8bce432880e0756e8a5f56eb8b8abb54f9e1eb8871ce7bd56d765be0f9a40a8dae4d135b2f9a0dab7f6b3d2691d73b0c47f05811194dee8bd DIST linux-6.2.15.tar.sign 989 BLAKE2B 08271f45e6928778d074f9f8db4451c74b6838babc816b862b114ffe01b531f845395945f4daf85a0b455260e0c3ec54489701715dcf22282434f7ae0c224f5c SHA512 38dbb5f07227d2329fdad438b8be7eddf6962bdbd563d4acea9c22224f12a58c4db30fa2c97c346778c423ceb8394539c9291d2f05a0aa1fde90ba3bee8c37fc DIST linux-6.2.15.tar.xz 136531432 BLAKE2B e9e0f83ceb47a8cf43ef56592fac0878c840868827fc902030c1e11597e3b8df5626059977887d4f66160b404eeca584ed010e131eb6bdb218e3c465d094d57f SHA512 6e98257946424fd5d511ff7cb9f18a09c228a3be4bff3b06a82e2b7afb5881342314014cd7cdb4a42101ff836ff23930cf6b2d8589bc4651d3d7bbd651a2439d +DIST linux-6.2.16.tar.sign 989 BLAKE2B 1e61250c6fb0c9d2e2419a16748b85cb804ef039f70e3c4b4f558fecb83c62eaf7c80d5c25692082e1da2d9efa6d47aab80a44445f4422b0f73c5b081a76cb82 SHA512 026b58ce329173e9bcd0203c298be1d2b095b3370d4e97b4a7b342323a615de48a6cc7ab9b4f5c4a2dae6d23d0c773ac545ef1aaa1f1e445c01eedaf24bf6661 +DIST linux-6.2.16.tar.xz 136509012 BLAKE2B 3357159d25bdd7ac95db7830e22be35e7f8b746673474b3050baea73e90e52e42a4723e6c19242fcb26e579bf52040ab726317fd74a85c37f722653e60ea4e61 SHA512 7f98d8ee2417272e2ab1517f6b7150f74033622e24a9426fc924c75aea46ab22b8ec8c73fc2523378fdb80f8899a3c6a55036a20dd30e438c1d6d39ea036f2c3 DIST linux-6.3.2.tar.sign 987 BLAKE2B 7bade09f4db3b587ebe81c7e5aca939bea29337497e9b028391f43dea07018def6786c1d784557e06b5197f2e7178e73d14883f528fd365d4a1db6888f6d1765 SHA512 28ccc9351b16eac092ec3987b94b174c3d4c52fddcb0142ca4757a1e5c06c065de80e9f1d831bcbe8ba4619f1fad0b562d8c328409dbb0d0bdbdc5cbc9c1b591 DIST linux-6.3.2.tar.xz 136908324 BLAKE2B 848da561356e462406240d36321afecaaf0a7897f0a12fff08aa32c0e62999e0b641143713bfa0e8934b446efafc656b5118af35829b311c574589b5aad9efb3 SHA512 5aa762b8e4ab6fd16656400b66f0fb8ec2680b4d84781004b6784c45a99d3041eca4b6f3e9bc9c3f091f475acca4abbe9096f112d484fdb40ea611e5c57bed79 DIST linux-6.3.3.tar.sign 987 BLAKE2B fd723da561fcaabe99bbff3e135c49909a35d00794e63f1a9fd98d163cd002b7476aba6f366f513d873d8b947f8f03360b8b1b23ea40a003937ac360c49f311b SHA512 f3f0fa8fec824d4304f130f824d4250b6158408d24b48890a64a32ac6579239df554a6fcdf89faf37fe10a70d06731979b2e0b54913e923bc9bca13e8809a3e6 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.16.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.16.ebuild new file mode 100644 index 000000000000..f3d6f00441b7 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.2.16.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 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.2.14-gentoo +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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/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[@]}" +} |