summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-31 06:31:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-31 06:31:03 +0000
commit2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (patch)
treef2362fa4c0f61f631c2b7a484fb90b8283618656 /sys-kernel/gentoo-kernel
parent7d7cc3f0fa58454952dec67b110b41d503bca422 (diff)
gentoo auto-resync : 31:12:2024 - 06:31:02
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest5
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild144
2 files changed, 149 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 338c1ea3f971..8c701cf6326f 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -15,7 +15,11 @@ DIST genpatches-6.6-75.extras.tar.xz 4056 BLAKE2B 6e2e14f16a7ebc675e84b180a8f26f
DIST genpatches-6.6-76.base.tar.xz 4119292 BLAKE2B 643510f5f01b8b7ac5c24098cd65b21ef02fd75b2682b371b00e8be48c6c335e7135569c58ad91ab6549e298b1dca15b83806143bf260a9e594feeffb2178fc5 SHA512 1345c21e33f3f0433691e03921c7b3d47bfdaad47376c06610170cf82214e3648cbbd2cb250ea4877d5c238f324f499b52e50dd2e5b51b4e336f2a1a5a431a1e
DIST genpatches-6.6-76.experimental.tar.xz 5764 BLAKE2B bb585f5067c7a9fdf4db9ddded50678e192a97aa9e635701255432bf7525110b2aa9424f61562514f8cac165dbf3f2f3ebfc1ce418f58b8a54d6341475465aeb SHA512 9757c33baceea2a37f890562582cda6777423bb3201eccdf2b2acc573c03605b41701ea1c44e0846dddd0ee92be8960c4dd53005015bb13372ccce986b494d11
DIST genpatches-6.6-76.extras.tar.xz 4056 BLAKE2B 51631e3f138ac1f5146bc8d70f3381ad64e8341336cb1d706b2b3f838c6b5e884a1c60745bebf73ea25ae7ec26ec049d76db7e260593b3e7a4795b98d4488734 SHA512 fdff2ce695891603f3b9bd6b3a44df526559f454edde20e5159c9e53d73fc9820eba1836ef81b22da9d3adf7906fda16e9b6e6a3df65bff56519c40dad56ccc5
+DIST genpatches-6.6-77.base.tar.xz 4120472 BLAKE2B 99c511e049d8b375eb54c8c00688e695d22629a758234fa47e11222b5ab2a448c22e2fc29bff59c95e1c39992e38a22286e791a9dab16b0e3acf59f1681c6adf SHA512 1626b4b76bfe3ae1c6c01d11909fb65fbec2e570d987268aefdcad5558aaf2a3a95f3f159b73e1eeef4d66abc5f42b965d3c9200224433b788fc1a3400a3b9bc
+DIST genpatches-6.6-77.experimental.tar.xz 5764 BLAKE2B f725aaf5fabf0f103206a7d5d191d4b041e73fed0d582d79e547d62f9edb9e0e9f433ab0cd4cf284f768c6c4d2f7b797a4992067e2fc412cfc4ffaf6d84301ff SHA512 49a8f105a67447f8fa2cebe90b0cfb3e00bc17e78c7805fe785a96f49d5e7e6920f7fcbe3302af8b095609f7b795f689e44cc43638401308440e7787ce09aa6b
+DIST genpatches-6.6-77.extras.tar.xz 4056 BLAKE2B 72ee0f92105f7e24d08e54614b5fa1514ee8ff75de5781474f56a3655665c5d3152771e3379bb431fb73ce19780620de72858cf64585109033c851be05efb0f0 SHA512 afd1947987efc0268727e6019910aff4f8860ab60707a32a289a454253519137dd7e8da92ea2743706b124ef873f854ff8ed6b3eac719523ca5ff94f466b261e
DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56 SHA512 f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502
+DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B 2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016 SHA512 45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445
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
DIST kernel-aarch64-fedora.config.6.12.5-gentoo 288068 BLAKE2B 4290157a17df36fccd2ead9fa381b5d6aa2079ca918773aa65e389a35127bcbd40074d2f2072371b9b50937bfaa2944168dcba628148dd654811ec93ed028b1e SHA512 62723af8ac13650cef09873f2d57c550171bfe5fa1a4ba00a12bf0650d3aea9f7af52a1d9e0662dd95df51bd0da5aaeb9fc0a0c0450fbb7fa1f76c1ab46bb099
@@ -43,5 +47,6 @@ EBUILD gentoo-kernel-6.1.121.ebuild 3936 BLAKE2B dcf88459003e6870e2fac0577ea2baf
EBUILD gentoo-kernel-6.1.122.ebuild 3940 BLAKE2B e25216f0e811fcf6b8fdebf47e1b37359e0d2a828663c3dca599a861e4e504d1c2e6e0d3dfe5a5ce0cdd2535c7db93dae937f2f000908d08ffe0ef6eaa919c07 SHA512 95704de64275cc7b118e4e45427ed742c4f356eb14145df02bda8852a15555b5ed23cc5487b0762a64b10c201b059d28966a8e8c4a94e4d0441d0572a5427929
EBUILD gentoo-kernel-6.12.7.ebuild 4187 BLAKE2B bb85bd698eb5080f332b7d751533d72383812e796f57f2377e695ed9b181b01c7edba86e6b416b496519746b4211579fffebf9bf440bd805953522e01b14e555 SHA512 0cc6fcb09cfe7d9b9add4a0d2f952173a181dd05993210cf3b733b5aeca9d210347ea95b72fe56c7213be003a2e9ab92c9ee584dcd063ae8022f6d44443a5260
EBUILD gentoo-kernel-6.6.67.ebuild 4183 BLAKE2B 0598a06064bd5c90bea8d3eea31933a15ad4a749d3e3648ddb29a6024c12bed813854e3447cb6a82067d917a3c777b6dd5ce22d97581e6b24bb4854883f0b143 SHA512 ff4ff9dbf3854ff063ce7b47d1534036828c200264864f0e32d587c40c6ef67d132983c8a0a269c45016a560e0a0fec5bf95b20f7228d41a6f985da3aea2d8bc
+EBUILD gentoo-kernel-6.6.68-r1.ebuild 4187 BLAKE2B eeb0566d25b36334c32a389cf50053fb50f55beabe54b78babac4b66d23c1ce648c3e7e1dfb95baf7314cc123027fd4429f761f98978eacb1928f15320da17cc SHA512 b88628814a2488b1a53455af8ba7765fba62e9789533c374900f2699b7b6d6c8169b20afdcd3ca0d4bd803bacb22f7c7073589939b8f40bd85ca8690b5cc04ab
EBUILD gentoo-kernel-6.6.68.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.68-r1.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild
new file mode 100644
index 000000000000..354b15e5e5d7
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.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##*.} + 9 ))
+# 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=g15
+
+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[@]}"
+}