diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-01 12:17:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-01 15:53:40 +0100 |
commit | 316001acfca653e818525c07562b5f8d4885e99c (patch) | |
tree | 34d693782be376806226d03e54e84a5e274fb2e4 /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.91 (diff) | |
download | gentoo-316001acfca653e818525c07562b5f8d4885e99c.tar.gz gentoo-316001acfca653e818525c07562b5f8d4885e99c.tar.bz2 gentoo-316001acfca653e818525c07562b5f8d4885e99c.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.166
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.166.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index a8ca576aac96..1db00f0776d2 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -32,6 +32,8 @@ DIST linux-5.10.164.tar.sign 993 BLAKE2B cfce5733bed718ddff6fa41091db7a00f3a4b08 DIST linux-5.10.164.tar.xz 120570784 BLAKE2B ada524ee102ce8f6fcf75f58bd288a50927f523f3e483a6cd3c1f3d0bbf5bb27853a1c851fd5ec0e2f210b8a6f7192d163bbc9731671a3f2c71438356cb7e17a SHA512 f3f2df99b5a7d32da240ceeb0da77f4f3b3514c16e8553ee93b05b99234ce059bd67ef43c8b02718b906de98f02b1bb3866f132647bcf2ab3fc4a19ddfea49dc DIST linux-5.10.165.tar.sign 993 BLAKE2B 0c878a82b5044ea113c83c820f0dce146808968743df354b2d8fbbc99deed37e3c8bfe3976409e46f92bdbf65860c11d3c1165913078c794504d1bc226d6b69e SHA512 9c2da3d5e0f5f1d5a4c269719635e81d45b5b70b706dd3c7810c008666c1255162bd657ff1136dba73d7a32b32c304c7cfe152b4b945259cb184aa8da70e5495 DIST linux-5.10.165.tar.xz 120555856 BLAKE2B 455bed20bb26c7edde2d2fabfa9b21b39d447e4e74fe3ce73c26c69c760b1ab97808fc5d7e58db6028d76ed1a858438fd50e7e8a6909c7bf225e86b430789abb SHA512 2c3431a36d4be44b83f70025110ac4b4799e284481d11690f620813d5b4b48cfd1c03f0e93103339ae7d017a61c46d5b8b9b1031f3be444d491ead74a1cb0386 +DIST linux-5.10.166.tar.sign 993 BLAKE2B 354afaef10f11a81aeca2e6acc132c961ef3d14685e86f8bea7d8b07e8f9cf4ba318e808cbee6363665476ff0f5969d5b17509c55fd05bd916e59f842be6f60d SHA512 357c06dc33ce7f8559fb9e525fab2d3e217d1bbcf13f6a4cd45cb9cbba376abd282ef333c3ab4c44f942f174c82962ed6e9fe3eaf7855c722cb03f3ff18282d4 +DIST linux-5.10.166.tar.xz 120550760 BLAKE2B 87cd994ce1b3d4d573299aae680d4488797ddc82a3010ef1965b7890bbb7043f84e95f96e88f9988c64b4774bf64989d13cb8dd4e0882e21ea81481dd22da067 SHA512 a6c185acb7b24e38e3a8331bed97dd5e03e885b5e3d5ea7fc3c1113ec64c16567dbd3ee6daa6311634dc3bfbbfdcd280571975f636457f87ef2a1e19b226b4cb DIST linux-5.15.88.tar.sign 991 BLAKE2B 928ea938758c904971cde08ea5d390ee483eda4ad5c7ced83d606e219d823966bd6ea745c64b2c954e81d444369507d57cfa3b54e18e433d9733325007fca93e SHA512 b9f1744190bdcb220d8a17b295784aa34ca0ab7035d4fc832dab0605ce665dcc9ac356ceefdf47a2996dfd33b05b0ec8a2dcd66c785146c756cca74ad10ad0a2 DIST linux-5.15.88.tar.xz 126523892 BLAKE2B 26ec7427e3370c417a048ca76f394cd9aeb25f6cf8b6bbceb074707a85c75f668c8d70c9f1b19cd05ce33212f259736ac1b554793ead30a007d1745d4329879c SHA512 2ecb84f7800a6fe22577f890c403e2bad383a1638b6a176c20cd8d1311ea433c016e08ef00d1441099c1dba974d82c4211acc190c8d59aaa9feb12588af1b348 DIST linux-5.15.89.tar.sign 991 BLAKE2B 79d90af0bc18768e9a09ebf159713d59e708ec23ddb99662b67ca7edec6871dec70ec624a98db404b59f0daf9bd5559e5488f8280c2e1fe83218a6e99f6bd450 SHA512 77846c9c18aedd5f8dea54208cc65067cb85a88532f812c19bf510d34e03d0f4599c4d1182d799c982ec63d235ca0af474b2817ef8d45e2e4bc51aa8092329b8 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.166.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.166.ebuild new file mode 100644 index 000000000000..9f817374f36e --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.166.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=g6 + +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[@]}" +} |