From 5c26c8437f0f46571e95373e57e838c83cb8be26 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 3 Sep 2023 11:01:55 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.51 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.1.51.ebuild | 79 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.51.ebuild | 22 ++++++ 3 files changed, 104 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.51.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.51.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index 0859643..5204e7d 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-6.1-53.base.tar.xz 3225656 BLAKE2B d701a2920347788f343b14babfdd1 DIST genpatches-6.1-53.extras.tar.xz 3812 BLAKE2B ad3b65af5b05947d20e1ecaaabd7304261310162c9ef679cba698712af55e7bc5b18ab1b69613a4442e38f362e34a9a1699408decd9016cfb4543c33ac97468a SHA512 a813b49a8af0cf17e48a88475731b6349dfa49af90e16037528eebd55a80b3ecdb52805547a56003a463b00a4302a779c8fff23970d73f3393cde7f205e92d32 DIST genpatches-6.1-56.base.tar.xz 3326400 BLAKE2B 4a62be88a16883b13ab169a93933a638aa61ca469fdab5f4a474a68983dfdca256bdbc4e62bf7b4ccbed48365a966c6396588444d45ed210a3dfefc8677a3ca5 SHA512 5c9d46528036cd7457e825dd97d7c20c69cee3f6d0279b82b0f45a3ec707d15a74afd270a0084e3438948a47c3128cca4ce2c53d45590c0260dd3b4324206287 DIST genpatches-6.1-56.extras.tar.xz 3808 BLAKE2B 647f53e02a9a383d96beec781f33892f015302609b93f6d9f8408ad1e8b2ffb423d01f0f540365fdcb795e493bc1bc493c390a218226258f6ac51e8fc8bad657 SHA512 c4bf617db17818a615b279a2351e5f369c9efb256b30e2581210c57758ca519eff1d8a320bbceefc5ac8784e530476dd2db7cc559e7da99c3d1037d1ce69e663 +DIST genpatches-6.1-57.base.tar.xz 3329956 BLAKE2B d43450b8139d3a37aa248d8b5af3047d29cc8a16346512633d6ebd55c8adfda8a165d707051e4bf5b167830a711074e9fa4fd2038c04505ee455a6a43686eb1a SHA512 1917b2d9026372ced986e2572f9b1f99633bd61154855547283110279d3feca3fe2326d200bda75c61a617ff61a5758032bddbb4fc37dc403384bb76e060bcb3 +DIST genpatches-6.1-57.extras.tar.xz 3808 BLAKE2B 39e1e8aef7db1d76f770bdee410c6b26bc7bab3e6c7b3e7ef342122d83ac8fea8bf1975887bef6ba1be2e99035f2f233ff3267c05a1e6d17ccf282ee26c4eba2 SHA512 027cf468cd29d927f620f013c2d1461dbe4877f587d8e4fcd02dde085bbdbb4f0f1ffb5cd23a84ba89ce9a5425144eb28a72415b2998bad14ea8a589316f32c5 DIST genpatches-6.4-14.base.tar.xz 765548 BLAKE2B e1d9bc63a0d8beeeeef9894b264ef4d8078bf57a3548548c08e75e699420731cdfdcf9df69ab6844a57563f24d806c96c27c9a158a7f6a1afa72bf8328ce60bc SHA512 5ee620824e0c17146add7f9bfd1d3444e5eb497444c040dc0f06a7ba247e81fc30eb8c92896ed359c7192690f24a1c45bb3b767bc408e9430ad9c7095ca2be40 DIST genpatches-6.4-14.extras.tar.xz 3700 BLAKE2B e72b1378e2c05049a5cb981e7bb09e0d448fd5e1219393d7b552c1c6de2ed557c395a3f341946bd142d8df45b61d12a13ea2424325d5a98045063e0cabe7584f SHA512 62149b4cdce5bf1a0567557790cddc1248dd927f31774b65848f00075bf1a0179939c292c79181af0a39132321f056541919beb30c6a4d46f57286886c95c545 DIST genpatches-6.4-15.base.tar.xz 809064 BLAKE2B 5f931235de8f0d94b1297c4e5c1c5c82dfe51e2e5149551fd053b908f112adb034e399ec3a8eaabf1b07993cb021577b210ccbd55d0f4d3670f87ebfdf34964f SHA512 b5181ddfc2896849cd0a5889c2c1f3009eedbd3c080a253e78c75545d8a57b7671e163b0cd5076d6255c5eb18b42b8cd81f0d47eaeb40397015418c3e212a5b3 @@ -11,5 +13,6 @@ DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b DIST linux-6.4.tar.xz 137794856 BLAKE2B b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90 SHA512 11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928 DIST patch-6.1.47-xanmod1.xz 2530012 BLAKE2B 4415d01da127af74485195aac5af1214fb685ad94ad09336f5a6407f9f3a8a9a2187499c006ab52b1740d249352cad48fbd9e9db294738cf350df0b85aef7a73 SHA512 b78f7e4e04f358746481d117f6b186f6d4bd8910d93b77a4850d2209b738ab425ceedb05c21aa004c58aa83599bbc5fa7abf71b0639f86f6547fbbdea1ab798a DIST patch-6.1.50-xanmod1.xz 2564272 BLAKE2B 007ff683f21845f8a8cbb855c6692c89687f11ed34fb0b8314a08d2d5533657fe76acb114362564740c5acd320a7e6aca46c1980e1cd5e4de3f30cdce0d4387f SHA512 99314257ec9e209f5274ccf45af6ee5508cebd5ac4195a5c7be52c38017d7c287c58d47c5c2fff99d9fa02fea81114d975e30b0621c7d27f189b62fdb8c758ac +DIST patch-6.1.51-xanmod1.xz 2567916 BLAKE2B 29840cb3169ed0ca9c8545a1dd102504eafd0ecf56263e9f2db6be719774353a6c64b4312ed947c7650113847455de80506c8ccb152425a7b4c69477958b7c6b SHA512 cd88ffb70bbffc65c88bf4c547acf6d5b3a40ae5b37f90f8f5f8a7470571992197630bbd47713ca2241ecdb9be0a05fcc2d618469d7cf5ef35896cfc56db8ab7 DIST patch-6.4.12-xanmod1.xz 884548 BLAKE2B be0e56b5332401ffc61d738501b00d68dd6945d9660de50c25434a1484060754726bd0b32e7933ed037ed8cbcddabd5e357001df0bd45b9cf53aa27fbe0cc63f SHA512 ed88e380375d9fe89bb57c26c616d6b77c3a5f56d5c502291f64a3731cb992719f3f0550cd387ec584fbd047c2b53983276d108fffe3670b4f758c8e6dea0ca3 DIST patch-6.4.13-xanmod1.xz 924796 BLAKE2B f447a5fdc8332641bb403ed4f690c031d8c47b08ad4345ac5844b49fc642c14d926a80989d04ced506baf4cd557ec0c9412581ab0c10ca34a9354b818353c50e SHA512 fe377806efbdbd32524efefdecec1506ed17e4bcae3342287a0edac99d867a7d11f1b1308e8a072a6b4ca66acc7823ce8d236539df10f08cfea540a5f19e1fa1 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.51.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.51.ebuild new file mode 100644 index 0000000..7cdc3fc --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.51.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##*.} + 6 )) +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 + "${FILESDIR}"/no-debug-extra.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/virtual/dist-kernel/dist-kernel-6.1.51.ebuild b/virtual/dist-kernel/dist-kernel-6.1.51.ebuild new file mode 100644 index 0000000..b9a20a4 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.51.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} + )"