From 6bdf113f9fe24f179ee150bada14098e20e87476 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 6 Feb 2024 21:58:47 +0000 Subject: gentoo auto-resync : 06:02:2024 - 21:58:46 --- sys-kernel/gentoo-kernel/Manifest | 3 + .../gentoo-kernel/gentoo-kernel-6.6.16.ebuild | 153 +++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-6.6.16.ebuild (limited to 'sys-kernel/gentoo-kernel') diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 2e3fe46fdb2a..9bf453bfc853 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -20,6 +20,8 @@ DIST genpatches-6.6-17.base.tar.xz 894152 BLAKE2B ff9c821916d3b1350ac30a44673eee DIST genpatches-6.6-17.extras.tar.xz 3704 BLAKE2B d85a68fe7bf6e4693a41958a053705e35b8829c236b8fad024f7332f89be277708dce2bc931c013b3bf51e14e3b11162342893b7d257541677b17efa918c86b7 SHA512 d53c369e9f54f6de450a41882626d74b22315b8ca7c7b381089b77a6b1b5a1b444109e8fc9c25bdf22afeb92af252c963c700e0e309cfa272caf39c1f5855a55 DIST genpatches-6.6-18.base.tar.xz 1008124 BLAKE2B 90cfa49d54e086a9fbaf20154f427def0097e76ba6ef5a0b41cd0004634a9d8dd5413e53ea80c340716f3d8dca3685e8aed5e7d8180a11b30e2893c084858092 SHA512 0c5c7d3ed4fb6594d075fd853a730023cbb1e2902377d59cc07d6ee0bc934b371d8a522405c63a0f90a8e0742aca4b770eb25311013c062e7484e5d6f33f1fda DIST genpatches-6.6-18.extras.tar.xz 3704 BLAKE2B 9ce8d2ab8cdd70100a0552648053df120ba52c3ae281a6f102e5982550d15d7096eb2efcf9f5f30da17c6f86b2aa75d903f014c7232366699c5d82d493be8415 SHA512 e6aaa51fa7e0d519c5c129f029461d7217ba57cd252dff5203b84f6b0f6fbffbd1c0db8d9a30096623e5d442a5307254a8384a2da7869eb0024cd6546dd48958 +DIST genpatches-6.6-22.base.tar.xz 1119612 BLAKE2B e0e5cf468f1bfb7b76043b72528061a448a88ede3704fe5aab6fe9c5c5b4ff39362b8be25c5d10f1b0160c5071b4276e2c912606c857fd4ace2c8c92b54ea0ba SHA512 b71715d8bad12484035ab5d906db06fe570f40f0ff725beda500710837e9e90253b1fdbd2be40c0dc6d0226a8a1423e443b4bd7117142f346782401509f833be +DIST genpatches-6.6-22.extras.tar.xz 3704 BLAKE2B c09db6ac1f713f404001c38c650731a0c8821c844eb7638b072cc0d135575df4f965cbd7c99c0261cc1021f97459266b20f153e428ba7a3b7973bb6453d0ceca SHA512 dfe66f78ca064ac0d6878da769dbdbc568db35bed24c8e2388bcc9a1ee63adef1e729ad9a3e737b5838c6f5473a7b9c6a6b44f97e95a900efbbf9562bf7462b6 DIST genpatches-6.7-3.base.tar.xz 19844 BLAKE2B 69f53a7bf61154f3644919b870ed4434ccd7ceeeb8c57e14c274c7be28a1f6c5b0af7975f4c0ef131ff5b53f3afa0a1a4b7c7db92202e11e3c1647524e8e9444 SHA512 5022aeb1970e8652b5f82d09642c22970bcae0e01deefbc0271cab9c054bd21ae4c3835f4fff0a22d14f5fa7495211a95c50b35535586dcdca3c2b1f45ce05a1 DIST genpatches-6.7-3.extras.tar.xz 3700 BLAKE2B ce7bc87494eec57d39330b1de3462b99a088781bca0beefad667674bbd9eaa2f2413c712638d16ef8c335b6a0e353aec83f4eb69e3da53a88d51ca6853d3254c SHA512 43558eb7a699d5e24c8f2bea13689adaacc6c7c58b4975c3d204a4c2278620032add6ca6017c3fc6ae70ade7e3e227a655deb989b85ef05acb05804d33475ec6 DIST genpatches-6.7-4.base.tar.xz 193776 BLAKE2B d0b6ee8e055d0c3b8122e1050818b49600a94c8b1b06ee4b6209d89207d527fc6c65352c728e359ad2830830ff25079a2d6d6ef6a55ecf60e43887c16673376f SHA512 5cc15425a7e9e80320f0b18b891d2efa2dfab4090441003b3c617d820c7e449a792aa266941bde0d22ba26e9a6999e42c3b686b270bc00389047678dd71b93d0 @@ -71,6 +73,7 @@ EBUILD gentoo-kernel-6.1.77.ebuild 3979 BLAKE2B ca61fe4c03bb01424ab9139308e1ef3e EBUILD gentoo-kernel-6.6.13.ebuild 4123 BLAKE2B a4332dba585663b32ddd5d64fbff20c4bea36b870c64fd51f1b94f56fb30d77a093c81e0cda4ea394aaa7b76347f591331f4621a5f3d30e01e35c5febc27c0a1 SHA512 b6579e98cee01bd30ad7e103a7ea26d8afe4d05692450a6e1785269bcde69cc16d8d5e2f8b916e30381fd3735939d4edb15452f2bf4441e885bca2b9a0a3ee53 EBUILD gentoo-kernel-6.6.14.ebuild 4127 BLAKE2B 2f0aa171b0c7315c148d9d7c650a7902ce76b57927d5927350362692e66347d6411a9523b29d67a8119fe434c4a9f3a8d30b60cfed9c31dc3fbcc4eaf400d1cb SHA512 06eeaf64b3a604014ba66885a49491c85e82b8504f6ac1a4e0d45edbe01998144af1ec6872888cd66987a566c47f92606a73bc20a599d40f72325ae7d2607ad5 EBUILD gentoo-kernel-6.6.15.ebuild 4127 BLAKE2B 2f0aa171b0c7315c148d9d7c650a7902ce76b57927d5927350362692e66347d6411a9523b29d67a8119fe434c4a9f3a8d30b60cfed9c31dc3fbcc4eaf400d1cb SHA512 06eeaf64b3a604014ba66885a49491c85e82b8504f6ac1a4e0d45edbe01998144af1ec6872888cd66987a566c47f92606a73bc20a599d40f72325ae7d2607ad5 +EBUILD gentoo-kernel-6.6.16.ebuild 4127 BLAKE2B 44bc2171ca67e6be5feac2af9f207f1c30b7cca48bd9c7b8f25fb46d25c8bf7467efe16d69e632e055cbdd69737d68c8d30f4bfb2bc208c5310f3af63b6c171b SHA512 f74646e81c71472fdf2a4649e0b5f4d4aca8eea3cc0117c3cdde0558b9394a98e07f06fd07ae5fca3f8bfe7cb67501c07bff1dcf6b8919592d52d85311b356cd EBUILD gentoo-kernel-6.7.1.ebuild 4126 BLAKE2B 00e4fca915e8a47a3fe8eabc2289752a001709fa5cc37247793a984e58197327fb5d6dc19c52b4ca0e39d1aa02005dd6df297a106bf2e9e683c689c287984bbf SHA512 4f4e8952f31d460c102e231b2933ed8002cb59adab16562458f896fea90ca220bb48b99fd982486b52fa82b4cf4411b07f464d87a8ae427123915d72b6b4346a EBUILD gentoo-kernel-6.7.2-r1.ebuild 4126 BLAKE2B d3b946484b3bfafb33396dd7b25e046e1f1432de8ecf818ec89e9c6bf4dee7438e467abf2383edde4f9ae62ccc128ca3a7430df4abaaa70b5ad1c91d8f226cfe SHA512 bfdabfd4c46e74beb4ef1cd598985d6b0e0540e8468fb581301accf8cecc1c5b7f7184c7397d008c389807e3fe94b92eebebe07053c194d970846d5fe6cc1af4 EBUILD gentoo-kernel-6.7.2.ebuild 4126 BLAKE2B 00e4fca915e8a47a3fe8eabc2289752a001709fa5cc37247793a984e58197327fb5d6dc19c52b4ca0e39d1aa02005dd6df297a106bf2e9e683c689c287984bbf SHA512 4f4e8952f31d460c102e231b2933ed8002cb59adab16562458f896fea90ca220bb48b99fd982486b52fa82b4cf4411b07f464d87a8ae427123915d72b6b4346a diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.16.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.16.ebuild new file mode 100644 index 000000000000..47f9c80f0aa5 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.16.ebuild @@ -0,0 +1,153 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 )) +# 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 with Gentoo patches" +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://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + 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} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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 + ;; + riscv) + return + ;; + sparc) + return + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-gentoo-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[@]}" +} -- cgit v1.2.3