diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-12 02:01:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-12 02:01:24 +0000 |
commit | 39c32f4d5dca9f6293fccb69e9d50baf494c8de4 (patch) | |
tree | ec772fdf23a7279a60e9063b01c2dc909741a197 /sys-kernel/gentoo-kernel | |
parent | 494ca58c9f5243dd4b56557aa8c41bce76e95ec3 (diff) |
gentoo auto-resync : 12:12:2024 - 02:01:23
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-6.6.65.ebuild | 144 |
2 files changed, 148 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 232b38c15f32..44128f38c820 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -30,6 +30,9 @@ DIST genpatches-6.6-71.extras.tar.xz 4056 BLAKE2B def4ae87c4a1b9221a7f8a38cc1b5e DIST genpatches-6.6-72.base.tar.xz 3928624 BLAKE2B 65d75de6e47496de435004b9cc85f29517583accbe8b795774c3cc48a9886510b2032a8234da1ef02f28ba42573d3c2ab3aa60e2bfd2bf4a2ed0dff4366c804d SHA512 3432d58a63d5964f7c45b83d108825254bc7b2cc93dbd797f517d18bf3ac37b258503fb544781d8d8fe9ee6d335e7aad13eee5cad45cd68d45b11499d26f32db DIST genpatches-6.6-72.experimental.tar.xz 5768 BLAKE2B 7bdcf51be9777e331b2f44c709729e6fafa9ff9496c6a462af3dd9118358ad3a11452c3adb8786c18a350e704f699dc07738113bc2ae7254ce424511ec828f22 SHA512 381893b8c48db2d400a1ab42bace7e678cdcac082cb09ba2487496d445fb59110b905cb1a3e11e9a7bdb7efecccb6043ac4ff242de583c40a09031c6e5cada93 DIST genpatches-6.6-72.extras.tar.xz 4056 BLAKE2B 5c3a9d0cc988a15fb2ea4cc3edc0d807d7523814226cd22cdad3d82b7a67138cc860445006d32d34667ae5441201adbc28e250b4c9fdfb6340129e5a23aa13a9 SHA512 6712bf418245ecedd113c451b795be17c6886f3c081ab9204124faac97703c7d4aacb02c7b8a9d68b5d981cb280dfeffc0a168c576c68b3bc4f65ca9cba4702e +DIST genpatches-6.6-73.base.tar.xz 3928696 BLAKE2B c5955b4fd604c01e2056f167a4e4510e5c450daddc49348fd2434c65f20aa2789cc1823d03623cca15c47840830affd035676189fab16db34acf8df320b79646 SHA512 aea78f633aa046e4e1bbb4ae977eeab8f276cd007b6f7283db03be621293a5f29a5b0da95e761bc72153875ccbb9f2ac88625b3f6a6ea0cc742f565760c93198 +DIST genpatches-6.6-73.experimental.tar.xz 5760 BLAKE2B f1e237ae8f67b4c4d1e3c515bb52fdb97565cbb7fafd14fad0aca39b477fb3dc0452cab55fa41eb7a2042409db308325f6416b220c4e7a0f7a58139dffab7f80 SHA512 53c1a5768565a1f94db56a723ef643062d3502e9da149340e15a966e17ac99cc10a7bb3c5b51686a5a8a2d7d0cbd23bd1369360bdeeedecc0767a0a1d1160077 +DIST genpatches-6.6-73.extras.tar.xz 4056 BLAKE2B 7258b54caee92901aef45569d8d45d218640095b622e0106a0cd640d13fb0c377e9dc51271e5d652922ac250c74e99d091a668cad526d30821e4db676f8314cd SHA512 7b6995087d0f94c7f2cfec46090208bfd36cfee60dd26343cdc108a3e2e1ffb2e906f1e990cacde1f72d5b920a8746d4740f64c64bf39a8dfdae33949a35acac DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56 SHA512 f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502 DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437 @@ -69,4 +72,5 @@ EBUILD gentoo-kernel-6.12.4.ebuild 4187 BLAKE2B aacf585b9c2826101810945e3b89ba40 EBUILD gentoo-kernel-6.6.62.ebuild 4183 BLAKE2B 0598a06064bd5c90bea8d3eea31933a15ad4a749d3e3648ddb29a6024c12bed813854e3447cb6a82067d917a3c777b6dd5ce22d97581e6b24bb4854883f0b143 SHA512 ff4ff9dbf3854ff063ce7b47d1534036828c200264864f0e32d587c40c6ef67d132983c8a0a269c45016a560e0a0fec5bf95b20f7228d41a6f985da3aea2d8bc EBUILD gentoo-kernel-6.6.63.ebuild 4187 BLAKE2B 3c01463be2bbf082983d3a7d7c4f5cf98b0824b5f0b077874a4e78b4193b81b497414e800e51f747095a87f3a6ae5f818ccfb972d8bc58a2b6565f287294df9d SHA512 beda23b415caa04be906399091d675881247f86d57bab888800649bfd040c4b93f4fc9c930dd511f5c66fedb58580cb4d17f9accccf7af7927fae763a0379fc8 EBUILD gentoo-kernel-6.6.64.ebuild 4187 BLAKE2B 3c01463be2bbf082983d3a7d7c4f5cf98b0824b5f0b077874a4e78b4193b81b497414e800e51f747095a87f3a6ae5f818ccfb972d8bc58a2b6565f287294df9d SHA512 beda23b415caa04be906399091d675881247f86d57bab888800649bfd040c4b93f4fc9c930dd511f5c66fedb58580cb4d17f9accccf7af7927fae763a0379fc8 +EBUILD gentoo-kernel-6.6.65.ebuild 4187 BLAKE2B 3c01463be2bbf082983d3a7d7c4f5cf98b0824b5f0b077874a4e78b4193b81b497414e800e51f747095a87f3a6ae5f818ccfb972d8bc58a2b6565f287294df9d SHA512 beda23b415caa04be906399091d675881247f86d57bab888800649bfd040c4b93f4fc9c930dd511f5c66fedb58580cb4d17f9accccf7af7927fae763a0379fc8 MISC metadata.xml 837 BLAKE2B 4a479438c85425dc4b1450f546cda4cb516284062391554a7944b56e11643c96dfcfdf354670b8e733ef3c1e86f6e47cee7e37445fed688123185c5e970a6669 SHA512 fc8982b0c939c006971bdaea1d91a13d232d41aa62451db5a07ebe55e5b87de548d40dd1d953f60fab8fd7567f56c8c918db76d34cd3c6239c6e0b545a539f94 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.65.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.65.ebuild new file mode 100644 index 000000000000..b94f0d5ca83d --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.65.ebuild @@ -0,0 +1,144 @@ +# 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##*.} + 8 )) +# 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=g14 + +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 + experimental? ( + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.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 experimental 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 + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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="-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[@]}" +} |