diff options
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 3 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.6.16.ebuild | 143 |
2 files changed, 146 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5807c89ae1ce..a81342135d78 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -45,6 +45,8 @@ DIST linux-6.6.14.tar.sign 989 BLAKE2B 1d358aad96d5cc4184cd4f3b4016708e94593bce2 DIST linux-6.6.14.tar.xz 140076972 BLAKE2B d4c804f804562db0439e75d0a9605e0da55f80103d11087ced20486cc0813e4840ec928dc55e33ae654509e593236d6a62fc1a0d4b911a1d943b5e13b525267e SHA512 304d737dac6d6628da0a54b3c8b30a7a25e4293a99d6d7a3b1231234dbe76f19dabae3e62abaf858c01d3f815066ed5ba65e1af0aa83b9761f9addc25fe58894 DIST linux-6.6.15.tar.sign 989 BLAKE2B 51bb977ee6300e457afbd8cd6c9f1f0a6143545673f6d9af379fb087dec7b9527da3dae8eea94e989c621274079b0ad2d817f902dfcc2289da231e4932e60c24 SHA512 208c0d2e9e12ada60a2fbc8245e0fe7cb4fc3c375bd06d47d81af6612bbed245458bf0c3f46e66393786727b5e064c8f5348493eb270954d3fe66970afb04bfb DIST linux-6.6.15.tar.xz 140110740 BLAKE2B a630bc7b2463bdc312f8936210a54e92bbe4136fc78995c18d0ccafbcdb27cce5b7b0d4a6ba10c378e14e86855ee7e76e355acc0580f7441e4df64e7dbd8a4b7 SHA512 2169111430b6041969593bf61911e53ce6b45db83d289336c0afaa3654886e11bfc4781042a15d64c85b0f984138d52c99636368a7d024864f0f41f873c5782e +DIST linux-6.6.16.tar.sign 989 BLAKE2B c221ca55eda0e14bda90972ac53ea8a16b163bdfe4724ba30b1497d17db9cc7b7a38c02773563df77f05facd9f1d157e3a93cb447f1b991539fcbed68acab063 SHA512 d9cbf6dd6acbac3be93e66fa22f50ba3817db57bad653ee937692ce68afecf41ba8bed8e36fe18daf74db8ceb222f4774c9c58c36a048ff064ef6f7582690263 +DIST linux-6.6.16.tar.xz 140120184 BLAKE2B 4fd12cdf4c11d1a4c01531acbb14748863ed15671873d49eb95c79dbc01c4dcccbfcd30318794489249868ded31059dd1ad16ad76e29db6d364ecdb331e91baa SHA512 3823a776f8e4aefdec75dce7c959adcb038ab0776d8d7e60fb79626d2d9410c0a334df71b1cd10499ed9ba82d7e50cec415c3f2b821b33f53171ca00b1a3b7f1 DIST linux-6.7.1.tar.sign 987 BLAKE2B b031b0ce27e336830785ce2e404a2766ee31489c95dd494e1308be47c500ecf99dcb4923d73629008ac8eb47840448a074512fa0b6a8b657d653952ef2ae0807 SHA512 54202d384166d3669417a978fdd27c8428ec8d23ecdc31f029e86f812a601977771e0a202b8e83fb2ab725a1a0cbea917fb042dce93465ca17da83cfd74a5c6e DIST linux-6.7.1.tar.xz 141405060 BLAKE2B 080f19034a9f5519e3212c723492849f3a2e019c310615b40e636cad39c89369fd91fd1129750266a1cf9683c0762a3ff52942045066d62f927642c443b94c76 SHA512 59374585fe35f1dc0906052ad7c74acfd6beabd334665b79432c39bda8fa28c3290df54d69eb63281a2d07aca1ea8cc3aa0acf0911dc9d763c20f89cce7afdb5 DIST linux-6.7.2.tar.sign 987 BLAKE2B 273794bef8b277a5f36adafb69302dd4987e7491bdc1dd596a0a1911ad0fcb6e8ac80aedb364982cbd1ff6c808bb64cd29d889cdaa5a32ebda38a86789c26842 SHA512 ef8751c0b8712f6d93c050077af043a726f0f6170449a030d007415a30ca8f543458b1f4c20548465119f567fce63be753b07ce1e9fa94bc7d2534897600581a @@ -67,6 +69,7 @@ EBUILD vanilla-kernel-6.1.9999.ebuild 3402 BLAKE2B f9d3719442c3e40de8dce98ba3dbc EBUILD vanilla-kernel-6.6.13.ebuild 4024 BLAKE2B f42fbd2f4d5d77b75c90619a09e7627be993622ade83e1b4ddec7e0574db948f81a659e8d565829d4268b8e01c918aa576d973c3e5570cb3a2d812b5f62b4949 SHA512 57fd678e6f55c5fb80e30c83b22a381d0ce6e905725511d1869b26d1112eb125d514ff1765e26becad81b9fcb6a905a0631879f7564e122d9009d2838cfb4993 EBUILD vanilla-kernel-6.6.14.ebuild 4024 BLAKE2B f42fbd2f4d5d77b75c90619a09e7627be993622ade83e1b4ddec7e0574db948f81a659e8d565829d4268b8e01c918aa576d973c3e5570cb3a2d812b5f62b4949 SHA512 57fd678e6f55c5fb80e30c83b22a381d0ce6e905725511d1869b26d1112eb125d514ff1765e26becad81b9fcb6a905a0631879f7564e122d9009d2838cfb4993 EBUILD vanilla-kernel-6.6.15.ebuild 4024 BLAKE2B f42fbd2f4d5d77b75c90619a09e7627be993622ade83e1b4ddec7e0574db948f81a659e8d565829d4268b8e01c918aa576d973c3e5570cb3a2d812b5f62b4949 SHA512 57fd678e6f55c5fb80e30c83b22a381d0ce6e905725511d1869b26d1112eb125d514ff1765e26becad81b9fcb6a905a0631879f7564e122d9009d2838cfb4993 +EBUILD vanilla-kernel-6.6.16.ebuild 4024 BLAKE2B f42fbd2f4d5d77b75c90619a09e7627be993622ade83e1b4ddec7e0574db948f81a659e8d565829d4268b8e01c918aa576d973c3e5570cb3a2d812b5f62b4949 SHA512 57fd678e6f55c5fb80e30c83b22a381d0ce6e905725511d1869b26d1112eb125d514ff1765e26becad81b9fcb6a905a0631879f7564e122d9009d2838cfb4993 EBUILD vanilla-kernel-6.6.9999.ebuild 3532 BLAKE2B 5fab6d83fb3a8b5a99cce67cb96b58d6ce745382d5b0a321ea563b3a0962b0a354392b1b8a82be0e68506be792814fee53c911e1797914cdc9872e0497843f08 SHA512 adb8310163db6a9baa86245bd00ffdaf6c9f063cfdb8af9c8691766801ca3caf902035257593d8e9419c6c0311ba825aaf7b7c698966750903b1e5e1b9f3e061 EBUILD vanilla-kernel-6.7.1.ebuild 4023 BLAKE2B ddcc1a626864ee53333aa8aaaac5500f5afca1ade366d7fde5bab9c4eb3a94df0efd0d86c552f221fb27bbed598d476391ee511d728feaab9827ec373efb3a33 SHA512 b927ec10c4a44a032a531469839bbb730c3f8576d71815c3ec7aec2e8028b5c0470f6757038f959a291ca00dbdde888285c5bf23f9e6733f989d9ef62d7b1629 EBUILD vanilla-kernel-6.7.2.ebuild 4023 BLAKE2B ddcc1a626864ee53333aa8aaaac5500f5afca1ade366d7fde5bab9c4eb3a94df0efd0d86c552f221fb27bbed598d476391ee511d728feaab9827ec373efb3a33 SHA512 b927ec10c4a44a032a531469839bbb730c3f8576d71815c3ec7aec2e8028b5c0470f6757038f959a291ca00dbdde888285c5bf23f9e6733f989d9ef62d7b1629 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.16.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.16.ebuild new file mode 100644 index 000000000000..c3a2f8b2f96a --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.16.ebuild @@ -0,0 +1,143 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 +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.6.12-gentoo +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://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 ~loong ~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 + ;; + loong) + 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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |