From 01e88b9258c9bd89d84203230b772e5921c1f99d Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 25 Aug 2023 06:38:21 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.47 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.1.47.ebuild | 79 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.47.ebuild | 22 ++++++ 3 files changed, 104 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.47.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.47.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index 553b987..2b4f89e 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-6.1-51.base.tar.xz 3127240 BLAKE2B 047b00560651226a3514417f10e55 DIST genpatches-6.1-51.extras.tar.xz 3808 BLAKE2B 2f188b3f2062d491118bf96735420e63c7ae85467a6789cd00316b133d254677656229f7f4b8d364bf37713a0b8f42f77acb580db0b4eed9c183008074b3eee4 SHA512 984b4c9a7e030e2687ac574dbb743bb40b0b031ca8ac55e1e632018e174a70567e3d94bee85ccac66212458e7772be6d39f119181a7252f9bca662646cb492ff DIST genpatches-6.1-52.base.tar.xz 3173368 BLAKE2B 429b5bc3af457d91b9c178737e573d150e337859c0f07a25043c86b834829e749b92c57fa2d80b2acfe9864f916ebe77c830249be23391d6553f5469b1934708 SHA512 0f003893b6c24fa9bb79722d6d83edb25e77fff11a526f86052980ee175d6dd599784cfcc7ad82055de9663a178fb9de38a766cfe61fe17fbde696a5292f023f DIST genpatches-6.1-52.extras.tar.xz 3808 BLAKE2B 6a67986309840e14bd4759c0aabb1af5d6b3653660d1a12d8706567470a28b3a56d5a09cbdd3df9068bed7a845206b5a81fca3a1be0ffe7122579d9b3ff63401 SHA512 0476ec7af5906dfd4dd48c96799568f8ed7d24d7d43717979e03a16219b732461e0afc7af1c5a4f528a08c4b5c2c35d249e81be1c6d0f854f7993da2e0c7aad3 +DIST genpatches-6.1-53.base.tar.xz 3225656 BLAKE2B d701a2920347788f343b14babfdd113b62b78218e8b19a5ee4f36d76b8571e697d9f3a3a9aa8364344e4d0ccaa60eccaab27b24036504b3ea1d011c4492a1eb2 SHA512 10aed454a5d7d7a763ec3008ceb17e30d989abcd76e1ca54d47b8946cf20a9de5991e09158a4e0b182ba58b41760a8de3bbd1979ff23fa9a84aa094c5c31094d +DIST genpatches-6.1-53.extras.tar.xz 3812 BLAKE2B ad3b65af5b05947d20e1ecaaabd7304261310162c9ef679cba698712af55e7bc5b18ab1b69613a4442e38f362e34a9a1699408decd9016cfb4543c33ac97468a SHA512 a813b49a8af0cf17e48a88475731b6349dfa49af90e16037528eebd55a80b3ecdb52805547a56003a463b00a4302a779c8fff23970d73f3393cde7f205e92d32 DIST genpatches-6.4-12.base.tar.xz 647340 BLAKE2B b0962b6a6b0c07aca1f27abe48e9a1e361b55b6e818d24077e989a231f44f6275b7c01b1c73303a1692fa812ee09766c58108c9efa6551263a7d117ccfddbe0d SHA512 f271fc0bc410d2faad9f08479027207ca6f1cefa0d615eb620e57fb3103d6b26ea5162c01e438ebfabb2f23b337a11c5088452e1a646bd4fb60ba464f3c5ce21 DIST genpatches-6.4-12.extras.tar.xz 3696 BLAKE2B d5c97c078e4abe4df885f067dd2202332c607452ecba07e0797426186b7bc2fac2cf6d876a269fcd8d2b8f5a33c8f36b97cf080d61bcff58ba8247b3a5376ad0 SHA512 5fe6ba9e4b8efddb7d305fd58825080862628ccd45fafb729756592a31d1ac6cd27f62fe89270d1ac30d54b99a617e4f49c127a3752a10af493ee9df3b113002 DIST genpatches-6.4-13.base.tar.xz 708424 BLAKE2B 35ac10ca68775c9e9c5668e9d4a8764c6cc583f8ecbade54b6f1bb1e4ca41fee1d48f5e782a6ba271d0b2f710889aaefdb13c9e4bb437d4f91b05a3d7e464a2f SHA512 5c3fa0b3c09b5298b4bf6542960e07d9c63875cc84821bbd6ef70556868f33a6aece33b9882b97cb9e32536ebfa536a71b9113e95b1b72b80c4f1348434e43c6 @@ -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.45-xanmod1.xz 2458000 BLAKE2B d0065d499fa942037a649d48e7ea035e075877e4891ad6572f0595df7d0fd69b6d2da960287770eeb612ec95a9881c57accc84bd5acf29c0a8a323ee02f15cd6 SHA512 893ea3004048e83a0001275ceee1905c39b2dee2673072ff8b3e3cc6717274dc2830173eac47f34632621cd92f1ac76c24d264ecfbd244477e8e10f291a2c98e DIST patch-6.1.46-xanmod1.xz 2494048 BLAKE2B fe1684f53708d0e2706db4b75502aeaa125293a36606485d080afc70a9dc1618934d3f09e1d25372228ec92f45ac954395a086b3f5c3ecfb1d4ef4b6a68df932 SHA512 666ce47be7df1bd72e18358c393779f3d5a244d79a3c972f48e8efe4f8c81d67a471bcddac082841fabafb902dc4dc1de426bef2a12ef4b6f481b15d56ad8f5f +DIST patch-6.1.47-xanmod1.xz 2530012 BLAKE2B 4415d01da127af74485195aac5af1214fb685ad94ad09336f5a6407f9f3a8a9a2187499c006ab52b1740d249352cad48fbd9e9db294738cf350df0b85aef7a73 SHA512 b78f7e4e04f358746481d117f6b186f6d4bd8910d93b77a4850d2209b738ab425ceedb05c21aa004c58aa83599bbc5fa7abf71b0639f86f6547fbbdea1ab798a DIST patch-6.4.10-xanmod1.xz 775816 BLAKE2B e6df15e544df872670893c66aefaa63a7438830416850bd03de75b8438ba25f220b4e5fe66ec3ec2a5d08d6d4ba4adacebfcf7f8d148502691afd78e62451787 SHA512 92486eaab664ac00669f7955d6f42e6fc32b1fbd6e29f2044b6b76c95c861274e78ebfca6eb1513daf0573d441f97700a2c50d71644f00bf5c2367af6c7b5a9f DIST patch-6.4.11-xanmod1.xz 832920 BLAKE2B b478f99d8b913a7d2c47760f58ec342df2923d5717977df1d2d373f29b620f1b42288a5972a88d4772fdc5c7e30bb53ecfea392546ceb778cd22ad94baeed124 SHA512 70af2bf9e1a0cab7542fa2f5cff48ebe49ea47bf438086b932975832f02ca65cc8f1fc4b1c436c08c54867e74a1c30a3802b0b9f4073600d405ec6a778782590 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.47.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.47.ebuild new file mode 100644 index 0000000..7cdc3fc --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.47.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.47.ebuild b/virtual/dist-kernel/dist-kernel-6.1.47.ebuild new file mode 100644 index 0000000..b9a20a4 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.47.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} + )"