From 0921aa6eeb4c7d76fe3545c987afd7a835b9353b Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 7 Nov 2023 16:26:48 +0200 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.61, 6.5.10 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 6 ++ .../xanmod-kernel/xanmod-kernel-6.1.61.ebuild | 79 +++++++++++++++++++ .../xanmod-kernel/xanmod-kernel-6.5.10.ebuild | 79 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.61.ebuild | 22 ++++++ virtual/dist-kernel/dist-kernel-6.5.10.ebuild | 21 +++++ 5 files changed, 207 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.61.ebuild create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.5.10.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.61.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.5.10.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index a61aeb0..5a1a4bb 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -4,10 +4,14 @@ DIST genpatches-6.1-66.base.tar.xz 3766288 BLAKE2B 3cf0a62fbfcd492e5c16b4158bcf7 DIST genpatches-6.1-66.extras.tar.xz 3816 BLAKE2B 8b2f2aa2f65d427c4ec39cdb988200d31d360f2ffde6f633838b0c3437c4efe8438e01ccd8e2de57d7f164c32d509e35a8be1ac4818841a7719a3cdce9e47717 SHA512 7f40e6153812cfe74de8ce376d4ae02868b6f246027cbce67e0714a139e60b4aa32743876c180f3b7b07e9b6fd07d2138e21ff5e6ced9571d29bf3e647b615c4 DIST genpatches-6.1-67.base.tar.xz 3816044 BLAKE2B 9116263f1f3cbb472ad09ad785eb643cc4deb16f94936196c1dbb3d500b6e20447d07d434f4fbc59fe8cfc03076da0aa0ec22a3c6d93e09d0dfed6d6fdfe7add SHA512 609935fec85285a34e4fa6032f552230aeb7aed1caa867d34810a25f68c2295e0a8f886e0a093f111b1623ba364cfd6e17b237d670d42c8c539778810a02f681 DIST genpatches-6.1-67.extras.tar.xz 3816 BLAKE2B 6aa8e9614221c2b9d84df9f75e5b8eb530ae8752b406ad698be86a8031b47940f9efb1de9bedfa0e466d0bad32dae60c5c639815785353a49e4b439de79a80ef SHA512 a911476dcfa9767f4adb946bcdcbe475e78f83753a7880a7e3a96aed347f1ec520ba8d75fe4e5565b2aded25965cecd3c7f79fa12009af043f7408200e27189a +DIST genpatches-6.1-68.base.tar.xz 3834732 BLAKE2B 3fc3dd48708491bf32a17cbb8c23e531e2b95e60ebcbe3faa6fbe2c60e610aad9226d1846774ddd2af56e985371780e10a249a50e2ac46d7e482428f67b289d9 SHA512 28b810ad914e12035ef724f7dc4b3cc6226cccad4997804a9e3ba5a4f4a420f5f397eade002dd7a9231efc2b0c1850c40c44bf5daa358c24e42bb50da05141d8 +DIST genpatches-6.1-68.extras.tar.xz 3816 BLAKE2B 86fce6b028ed4c3b713cddfea42f56adf55e105c9defbb8f6a84bfe397f0163ee9759218c2b43bbe9f9f6838623816fd3c31887e5b05ac8e98235f01f750a4dd SHA512 23550c824e7f3a1507d1e124224f0c1f4b7bd3deb07750d392011d374352ee430acb84e55143f3bbaafb67f9ea28a6aabdee77ffe3a78d68691f30fefd4304cb DIST genpatches-6.5-10.base.tar.xz 631564 BLAKE2B 7a9fe483c7a6a040af5a1fc0fd99dd7d575a380240268bb61d68caf95613d53fac46edf6cb18633b6dd2e803c9360d3cc13f0160e6ccaf811ac8420f7dd30771 SHA512 506abb2a66c51e45ad3ebab0c3b921faaa890640c7236eed377aeb27dff9da552088ea8d8192b4f2e142c510c7d565a5c8431444fb39bd82948ec0e696c4b083 DIST genpatches-6.5-10.extras.tar.xz 3704 BLAKE2B 4bfee3cf5f3af32c02f4df2b91437258a4bed38c4cd1fc8f8467020ffe1835ec86dee58a10d2e1775fdd6392c6a28552ea3a90ff5fd36504ed43cb7787ea7e5e SHA512 48589be11fcc969fd3f46475f8aa53047f191c5fec66918e84d178e14f531c209300808f7c2ddb479fb8409a344f205f59b72dd18b6d79d1ca924eab10f81f85 DIST genpatches-6.5-11.base.tar.xz 690272 BLAKE2B b647ad0ef234e1470b72e4cefc091b48bc81b0591fa41d3741d25360d6c92d6b47cafe35a06c5246806072d11ec4839f76bca382f8cf38d0e76ddde9f4fa3bb0 SHA512 53da072920619acf21afa89f3df7b24c27c1798a1244aef3f21f76bcdcb38ad1ad79d07e3aba62b44773af57162c89bb77eb4c19b7056e0806926ec5951d149f DIST genpatches-6.5-11.extras.tar.xz 3704 BLAKE2B 21929f8a381175f9c33ac9df5f17388eb2f99adb00fac7783c612a2712db1d4b2f179b2fa6ac548b77a1d0e4c9c9d88e32cb393531c7e6ca680f9c98a037927a SHA512 f3643139bd6b2b324c477998b69418b80e40ae675dbef9bb34e26f138a10244ffcaf551de7c49623b8aa797ed7b9ba82e680a62b7996ed1bd1f8002b29b09cb4 +DIST genpatches-6.5-12.base.tar.xz 720508 BLAKE2B 429f4fbc3292ab46250bc1716212f369f888ee0219ab19baaf8a7e3634c012bcaa64820639b5650b5346cc93fffb3b00c8ba5ad48c3f0030e5db6102646ca60f SHA512 1b5de16a305f7cddc3125be3786347a037e25b8b53ad05c35c8efd57e624dbd7cf152898c3084847d6c9b77f5bc6df378644434e877434d40ad4fb0d08d6a37d +DIST genpatches-6.5-12.extras.tar.xz 3704 BLAKE2B 3d18f544a455d1184eb9687a5c53c7dd348b12f736313a3bb9d3417e0f4458a8e7f962451ede58f45016af700014fea87cc3336b30ede9f899dd75369eaadc57 SHA512 0a8c8a23d99962e5f0028ef1ee8ba79cd20af0ccf6b08e554405ee964cf542b6758d0e2456612a410d7fdfca5572e4af7c4d1c3b65a9b426412c1b480b2d6475 DIST genpatches-6.5-9.base.tar.xz 574412 BLAKE2B 339dc1d19a323c2143fdd394b324e8d73b6e21b833e48096b6ae312b188bd9f39811fcd7b93f900c6ceb6982eb6ca108b2ec617b8dc98fe2ec255ec3b002e31a SHA512 42873d29784c0d85434d7eee81ef2000a42164e20ef74c875b81ed8df96ec3632261485c38e17ffa41d94df200b69d8d0e663eb8c90ea741234e860aad9026e3 DIST genpatches-6.5-9.extras.tar.xz 3704 BLAKE2B f45e43b281c9ad49870e72a7d4e3790f316076f438a5b45fbc53bf3fc29173675fae1e1b8ec170aa7609e0a87e79afbe033ffe7ee64d1ebdf2c1200fcdcbebca SHA512 888a87e165c64ee71b04b6f103666b4f699f790aadb58314253f63e82b0c245646f29fc3f139da2eb6a08db7c8f40c5239a359e81e3d7ff2b0d60b219f8756a8 DIST genpatches-6.6-1.base.tar.xz 4044 BLAKE2B 5936817ce6dcf9e395b1f54efbf8890875bd00d6d59a1ab01bd4ce1d8c46756bd2599a149cdfd6fb745b7038c5213f60086aa76fa12c5fa50072efc7e528691f SHA512 fd07f605479ca9439aae0876b4597918bc847c00dc594e80be263917fb0bb1a87a6c8465c15f1f5c7bcc39359b6ee92eb56365878a9017b9a8185eccd4cd30f4 @@ -19,6 +23,8 @@ DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f DIST patch-6.1.57-xanmod1.xz 2900160 BLAKE2B 85c6a7f67cba7d985d08b41093229f4982deb88fe9701f6065bd46c2372b2a39cf0686aab772986c76adbaaa511df257f16c25ce930f9ea2b3a3e65e89223e4c SHA512 753810974167a1304d761b09d1e3b05cc7109c867a19ffbbac79058e4910a06cd95c9d1179d36d09e8a3f156ecedf667e880808e75d68e0f0bf2e964739a9f0a DIST patch-6.1.59-xanmod1.xz 2923508 BLAKE2B 9626b11ba7e3d60eadb1e55e75eaabfd1f04c998fbe698ccfc699c3623f2ce8cb2ecc5156b9bf8c0e7749f4df0c8a37c0e0b2229c6e9f0a5b00dfe975ed2679e SHA512 c3a14ba0f903da4b5156705820079c944532cdaba96f36d46f1a20a76a9e164780967ba26b70311f7161c774bdcd34f8bd92b82b9d675b9277aae9bf7a126220 DIST patch-6.1.60-xanmod1.xz 2961812 BLAKE2B 282aa34b5371cda327759af7b99c1b51ed0a5a680c429fa6a94baecac82546d06a3dd6e7d931c642af0ab38c3b1fbe34cd69663fa63d1a7c66863463589c12f0 SHA512 6b90f8a42e64ca21363ef287a96bc33cff94b83a2ea84c80caad3cd2c1789cb98dc9481ffa10db7d6e3b6a6a07ace477917e11c710380656147e3d9ac898a9f6 +DIST patch-6.1.61-xanmod1.xz 2976572 BLAKE2B c9fa33d6f978e72ffdd6b2b318cb148c61dc6e0d0615f611c150bc4d8125591426c3f6ba608e75e332f22e62038a933066354c7f688bcbd7ce07f0e67a50a102 SHA512 8019eefc5c4fe8ca1ed4fc80d8fd6a5e796c155eeec46848b3b245aab05b7e3d11b1705f7b7becfe488a140d78200e1de14c85a9b5689c09ac6c1bd378d74094 +DIST patch-6.5.10-xanmod1.xz 825280 BLAKE2B 14b651a961d900b491e5c89ac240a89e8a0b16cdf4605873efdb3c5386767fb9b80188f9225dd61e3cf861cb6c33d19da5bbe75a2b13fe6f3e0bacc2ecc774a8 SHA512 de62ee4e4e9a09476fecbd660b6761c49249d00c1daf8717d7a9ad770c6b6e3d3dfb8bc138a11e91afee0cdcf49f3ad1ccf955956cae83c6b60167c932930212 DIST patch-6.5.7-xanmod1.xz 690892 BLAKE2B 82d20fd5ac10a439c2624175efa48f8513146ca8b21fc11c3c77d1263b4ece101577e248cfe8a28bc4f81336460c5b51a17e04703282e5cca9399ddae64d332f SHA512 bd75d776cad10a911220ab2f5ebc0c24a5233e80e4a840286ac902a1aa4dc76029155400f4c1070fcedbbd67124fdaa7568c59fe4d4699e097e23c6fdcfed5e3 DIST patch-6.5.8-xanmod1.xz 743580 BLAKE2B 08ffd621c883647fc7870564f3f53f19d481fa881191fb701bbecc067b10126a1c82ed052591911ceb15dd088811cc49a75ca49fd636fe91f516eb92a714fd24 SHA512 a5b5d180b838f5a820d89f142cda3bfff143afade1276483502520333c26ed29511435a3ce62b7f545daf371531bccbfd0d55a59b84bc9101832a13af61bc665 DIST patch-6.5.9-xanmod1.xz 797080 BLAKE2B 8a403ef336993539d804bedc2b9799b249df6fa0d3fb9edd9693322e45ce1d047c3078748160572c5e0406c7ac29f1a4000faf648027285807cc3d52ed7d6d4c SHA512 c1380187b277b722e23f06c3ca8e45e895c850dd81cd798ae8a021d16949aa1a41dd4bcf6d22eb6068190a0f55cd99b4d535cb19a2a1ee56f4aed9761dcece9c diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.61.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.61.ebuild new file mode 100644 index 0000000..fee8e32 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.61.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) +GENTOO_CONFIG_VER=g9 + +DESCRIPTION="Linux kernel built with XanMod and Gentoo patches" +HOMEPAGE="https://www.kernel.org/ https://xanmod.org/" +SRC_URI=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + mirror://sourceforge/xanmod/patch-${PV}-xanmod1.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/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="-* ~amd64" +IUSE="debug" + +RDEPEND=" + !sys-kernel/xanmod-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 +" + +src_prepare() { + # Remove linux-stable patches (see 0000_README) + find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die + + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/patch-${PV}-xanmod1 + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + rm "${S}/localversion" || die + local myversion="-xanmod1-dist" + 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 + "${FILESDIR}"/no-debug-extra.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.10.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.10.ebuild new file mode 100644 index 0000000..70ee2a7 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.10.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +GENTOO_CONFIG_VER=g9 + +DESCRIPTION="Linux kernel built with XanMod and Gentoo patches" +HOMEPAGE="https://www.kernel.org/ https://xanmod.org/" +SRC_URI=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + mirror://sourceforge/xanmod/patch-${PV}-xanmod1.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/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="-* ~amd64" +IUSE="debug" + +RDEPEND=" + !sys-kernel/xanmod-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 +" + +src_prepare() { + # Remove linux-stable patches (see 0000_README) + find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die + + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/patch-${PV}-xanmod1 + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + rm "${S}/localversion" || die + local myversion="-xanmod1-dist" + 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 + "${FILESDIR}"/no-debug-extra.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/virtual/dist-kernel/dist-kernel-6.1.61.ebuild b/virtual/dist-kernel/dist-kernel-6.1.61.ebuild new file mode 100644 index 0000000..afc6441 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.61.ebuild @@ -0,0 +1,22 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Virtual to depend on any Distribution Kernel" +HOMEPAGE="" +SRC_URI="" + +LICENSE="" +SLOT="0/${PV}" +KEYWORDS="~amd64" + +RDEPEND=" + || ( + ~sys-kernel/gentoo-kernel-${PV} + ~sys-kernel/gentoo-kernel-bin-${PV} + ~sys-kernel/vanilla-kernel-${PV} + sys-kernel/xanmod-kernel:${PV} + sys-kernel/xanmod-kernel-bin:${PV} + sys-kernel/xanmod-rt-kernel:${PV} + )" diff --git a/virtual/dist-kernel/dist-kernel-6.5.10.ebuild b/virtual/dist-kernel/dist-kernel-6.5.10.ebuild new file mode 100644 index 0000000..9cb3a33 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.5.10.ebuild @@ -0,0 +1,21 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Virtual to depend on any Distribution Kernel" +HOMEPAGE="" +SRC_URI="" + +LICENSE="" +SLOT="0/${PV}" +KEYWORDS="~amd64" + +RDEPEND=" + || ( + ~sys-kernel/gentoo-kernel-${PV} + ~sys-kernel/gentoo-kernel-bin-${PV} + ~sys-kernel/vanilla-kernel-${PV} + sys-kernel/xanmod-kernel:${PV} + sys-kernel/xanmod-kernel-bin:${PV} + )"