From 243d7f0e146d7ca57c491ea88f8e56ffdee11f80 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 29 Jun 2023 12:22:09 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.36, 6.3.10 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 6 ++ .../xanmod-kernel/xanmod-kernel-6.1.36.ebuild | 78 +++++++++++++++++++ .../xanmod-kernel/xanmod-kernel-6.3.10.ebuild | 78 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.36.ebuild | 21 +++++ virtual/dist-kernel/dist-kernel-6.3.10.ebuild | 21 +++++ 5 files changed, 204 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.36.ebuild create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.3.10.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.36.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.3.10.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index 4fb261f..7eb2301 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -1,7 +1,11 @@ DIST genpatches-6.1-40.base.tar.xz 2034256 BLAKE2B 7a95fc06c6d7f6f3f658d35b21a2761543444d9a95114665a9d74e8514a8577874009ecdd0dbac862359362cb0661b99d54e1c43fd8e5285dd148034fcc637b6 SHA512 645fca84ce19ef2bcd30861a2db5e6332294e3c5feb453ee0132f046c4c49e40a188fe53e27c543000ed04de531909c0500e9f571cac432f645774dc08db2e7f DIST genpatches-6.1-40.extras.tar.xz 3808 BLAKE2B ee4162db692e272773091d94d06bd2ba11fac8ca9bd4da96396eb450a7ea0c933e49ae9f6a27fc453c40079054d9140578c9d4c80a835f6ced71fad20a29247e SHA512 07a61941a6e0174d309da302bfdde21dce57a7449f3f8263d9005fe0a9c47feae2a5b508062cabaf53f92d6f06724e1acc3c71422e4a8e9215c515d989567a81 +DIST genpatches-6.1-41.base.tar.xz 2664364 BLAKE2B 411463f6532b87253491c5b4d05e4a76c2739408901eaedfcecc135c3e01303a30870e6133253e86b9e1ff10f9363dd7e2f0b5f68a85c7d1ec0e5f1443737820 SHA512 3227ed7184af3db4090c8e081b56f1fccd85f08298cf944c44ffdf808b7b17499191657a71e232e9c5dcaf68c1ca93902816c4dcdefc5f1240632816b87b2659 +DIST genpatches-6.1-41.extras.tar.xz 3808 BLAKE2B af183a6fd9ebd81ed22f8ecd36ba323e9c3aa438e72018ae1282bfd371874870a8a6d52b6488b1940a6eb65192cff46af7221967d4d473b2f3eafc963f0b5ed1 SHA512 fd26c56b8a9c5052e32c3ddaf7ff1379912f2aebc7b57bda68bb9f9bc0b316f8b5ae396e0547f205ab491acdc1fc9731acd87d13fdbb13508efbb6d6fa3154a4 DIST genpatches-6.3-12.base.tar.xz 691736 BLAKE2B 533383ee5f0bce440f9ceff66b75d742596d22113367560cf364243d90ee418d84868adedc62e74202fd5cc1c67e8efb8fdddae35e7ba12d2026be252b4005cc SHA512 8bf1fd11b3d5c3346923ce573dbc730204370b033825b9650bce83da2292dd8ce253e7e60bb23fcbcf902d0cef6b4b4b335df07c1db4c5fff477d2fece6e6489 DIST genpatches-6.3-12.extras.tar.xz 3808 BLAKE2B 08914680602e3a59ccdd2699b60b3707e40bd2dd28c87170e78701758f50ed2273d7b4b7e238cc6d6ae5819c48c2c8e744056e0ce964dfc900fad44dd628da5d SHA512 f99775c2aece8d77fb432fd9a013868d85cddba6546b6fa489c91b085b0ed35fc14e2e23c922d5b34f677994749e050f837112aa6c0ad171278481eca257606b +DIST genpatches-6.3-13.base.tar.xz 754256 BLAKE2B ef146e227f2df785bb65d1cf8e50d786103aeed18a8f42e5584656f1999b943ac48db16d5cdc5917c03823364199284975837fabe9a777215373ae83e7206b99 SHA512 3df4532294febf47cb0291acdbf5ff137877186747ff7791f675686f2c08e14c0b8fd110e452c50172dc3d1b6a48bda604f6e577753380a4ab64502d0ec17724 +DIST genpatches-6.3-13.extras.tar.xz 3808 BLAKE2B 87d56c9b4869ed1741878e8dc03adf97c77872a7eda00697b21a72584393eeb89d9124299aa14aac9f4790e2a90adb42038a226e08ef01a7d1906a381c7a7d2e SHA512 8e5ef88f45333e6afcd139b83698eb7a250c7db6882fe0409361d91a52fa6997fe57ef8ae1d3e5eb4b9306efab0d2fbbc96a4a3808925f15c305df6514159fd8 DIST genpatches-6.4-1.base.tar.xz 4304 BLAKE2B 66c721dee77d8bd64257000dcdc5ae8ffb1141bf8634670a57e356a1cfc9e73b26660aa63293f6d02bfdeed04db54f8b1a224ace9ea614bba172f593bd0c8918 SHA512 55bc76b8f4c4ec09419407b6a32d9ba1814afd0e30309edc5503d428ea78c6632d48e25781c8e9308ff90c96214ecd0cdc6e8f942614c9a9bc1dc2307ee4ee43 DIST genpatches-6.4-1.extras.tar.xz 3700 BLAKE2B 22a7977323c67d814184f3bac199adf6b1777a6db6a23ca72ac87a61b91a0a72b51127891412ea61c136dd9273a0862341d547daa27bc41a1f158274b7d3c294 SHA512 be85aa68830be0bee308a675c46675e25461f5f58d7dcf3fb77217de6ac28600c50104951550167c8b7e5de50ff37a01e0127337a1ffa4bb2e7ce1389ab91c2e DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628 @@ -9,5 +13,7 @@ DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b DIST linux-6.3.tar.xz 136891752 BLAKE2B f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69 SHA512 768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65 DIST linux-6.4.tar.xz 137794856 BLAKE2B b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90 SHA512 11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928 DIST patch-6.1.35-xanmod1.xz 2041668 BLAKE2B 603aaa663bfd099df23c0f2aa4463fe1c1a473f80ae4b9abf474fb9e6424a67a3e52c98eb24ef9cb5bf201c5756ca3266427c2ca2b7dd0d1625bfeff74e294b4 SHA512 3a693954ff6d1ca96c6007045ced149f55e87ce347c1d84aa7e226be650e4fbe932e57e4a26a4d2078a2e00a700f731e4d0b394292000925e59be2e0c753bba3 +DIST patch-6.1.36-xanmod1.xz 2083812 BLAKE2B 357fdef2d7e3a0b77a795d5b970aa983e9a35971618a199c46dd440972fb4b27d2f3221534b2c96ef97b14e517175e6524964239c40ee243934bc41b48acd662 SHA512 63ff2037e55ac1678dc541f20b139e39e0753001db1591f5ddc07f5543695ba9e36ecee41db6a14e80610ac2a49f284ba3453bfeb4cc2645bab843f7b6780b2b +DIST patch-6.3.10-xanmod1.xz 872104 BLAKE2B 3e57ec110b6df2e86eafc93bdc966d1291097d0b31b53ae0017315eca894e0648ed1ef22d9ae47958adac92d6c449b8139bf38b1c3d1607b0bbd98de424c2067 SHA512 e98094400590a3ef5828bab54e850a8a6cf4fa37e2d19b7251dd178298d050cc950fb29fedac2edcdd25b0bb48a913f3344bb252a964c5964b1e7a2f6b3d6119 DIST patch-6.3.9-xanmod1.xz 813640 BLAKE2B 53a9313a42cec247563a620ec251f1c2f6ab0ff43fad5261595d2f97d738b011ddd521dbb42e09effd67cc32630c4b25247963dc29708ebcc02614e8036a877c SHA512 164beb6ab803db7693df697899614c6f5985b280c02e4f62d9f9bfee2ea1bad729e192fcce172d2fc57472afc5b4e4757425049e5e526ad1a15a830eb829fb9e DIST patch-6.4.0-xanmod1.xz 149876 BLAKE2B ba9f06364a3877f2cffc1a74a928586836c21d0eb37615960991c2baa04224f349624e216e598f534bf84bdec159947de7e9a762fccffc96bca51b9fe0a5c9b6 SHA512 c23240b2d68e75e061eb706bc3b1d1113e416686ec2a720e813da59f42a34cd3199320bf85446c1cf21fb55b1b7c91a779219bb85e944d489cf4d0d250fe4e08 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.36.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.36.ebuild new file mode 100644 index 0000000..3b058db --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.36.ebuild @@ -0,0 +1,78 @@ +# 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##*.} + 5 )) +GENTOO_CONFIG_VER=g7 + +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 + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.3.10.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.3.10.ebuild new file mode 100644 index 0000000..22f2644 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.3.10.ebuild @@ -0,0 +1,78 @@ +# 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##*.} + 3 )) +GENTOO_CONFIG_VER=g7 + +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 + https://github.com/xanmod/linux/releases/download/${PV}-xanmod1/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 + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/virtual/dist-kernel/dist-kernel-6.1.36.ebuild b/virtual/dist-kernel/dist-kernel-6.1.36.ebuild new file mode 100644 index 0000000..ad0ed82 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.36.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} + )" diff --git a/virtual/dist-kernel/dist-kernel-6.3.10.ebuild b/virtual/dist-kernel/dist-kernel-6.3.10.ebuild new file mode 100644 index 0000000..ad0ed82 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.3.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} + )"