From 0a5bb4a35719da7924214b44228f85dadcec0914 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 17 Aug 2023 18:50:19 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.4.11 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.4.11.ebuild | 79 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.4.11.ebuild | 21 +++++ 3 files changed, 103 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.4.11.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.4.11.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index ea1f539..ed41517 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -6,10 +6,13 @@ DIST genpatches-6.4-10.base.tar.xz 568848 BLAKE2B d9f28beda8bd4f69e1e5d586e274df DIST genpatches-6.4-10.extras.tar.xz 3696 BLAKE2B fa0b8d593543f3624b1cff626e2cb2dc93ff0e88fd54ec71a7e467c716481420da7f361c1dd353e36111425a74f6632f1c491e618dec47fa4bc15c6a6d9e26bc SHA512 9dbfcd1d65daca0b56360290f0a6369fa007f32dde0f1a62657d1697fb50b84668e8a14c62efcfc3d12ba6a4a911731825df260421506639d2ba9b8764962e87 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 +DIST genpatches-6.4-13.extras.tar.xz 3696 BLAKE2B e2e9014e497de63eae5dc5d644e1ef27fc2fda99379b881af096874bf25f269212bbd811781f3fc63fa896285e78cb9c41717392e59bfa62c039dce58ed11f86 SHA512 ffa3f9043767ae00e18b1d5313df6312d179b0d9e2b224d7b1097cbdc9c48f56615a36425ae1fd00680caed085420e438deb4fd331a37cd4397a814e542d6fa0 DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 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.4.10-xanmod1.xz 775816 BLAKE2B e6df15e544df872670893c66aefaa63a7438830416850bd03de75b8438ba25f220b4e5fe66ec3ec2a5d08d6d4ba4adacebfcf7f8d148502691afd78e62451787 SHA512 92486eaab664ac00669f7955d6f42e6fc32b1fbd6e29f2044b6b76c95c861274e78ebfca6eb1513daf0573d441f97700a2c50d71644f00bf5c2367af6c7b5a9f +DIST patch-6.4.11-xanmod1.xz 832920 BLAKE2B b478f99d8b913a7d2c47760f58ec342df2923d5717977df1d2d373f29b620f1b42288a5972a88d4772fdc5c7e30bb53ecfea392546ceb778cd22ad94baeed124 SHA512 70af2bf9e1a0cab7542fa2f5cff48ebe49ea47bf438086b932975832f02ca65cc8f1fc4b1c436c08c54867e74a1c30a3802b0b9f4073600d405ec6a778782590 DIST patch-6.4.8-xanmod1.xz 700384 BLAKE2B b2d891bacfe66cf4bec05d0d88a7d64ac95d94b50b5381ce3ccd7b6cf2cd479a67168e1ddd79bf4ce42aee8b5ee6bbef3b1996d73c5d2b0c897275cb9e43c62a SHA512 383fb94ea7ae809743729d60971b14a96f1f4663dfa0224bb43f4bef7513df954cb06aa6860a933a2acb51a154614cbfb24fed8b21b7a8efc08341434ccadcf4 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.11.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.11.ebuild new file mode 100644 index 0000000..d69b0ad --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.11.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=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.4.11.ebuild b/virtual/dist-kernel/dist-kernel-6.4.11.ebuild new file mode 100644 index 0000000..9cb3a33 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.4.11.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} + )"