From 40d2f6789d8757cdcc69f5249751a4a5fa6f0723 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 28 Jul 2023 05:48:55 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.4.7 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.4.7.ebuild | 78 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.4.7.ebuild | 21 +++++ 3 files changed, 102 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.4.7.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.4.7.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index a43fcdc..07a74e4 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-6.4-6.base.tar.xz 314708 BLAKE2B 815c36a6185cd1006596a4829462900 DIST genpatches-6.4-6.extras.tar.xz 3696 BLAKE2B 6a5cc63fc0e09b0eb697e34ec554153f179b0abc0ff5bf5ae06dc4b319b3343d0ba986f4a5ebb859c773c9dbb60248b4caefb192ff5c0a8f0aec115a4a67fbfc SHA512 7ca005f7a822cc90a7a8399a7e7c277cc24757f689dfff9428251419e627510a3e4560448dc5a2c6901e2478288c9b5dac3c0b9973545864bd60feb0aa688e42 DIST genpatches-6.4-7.base.tar.xz 412236 BLAKE2B 923eacdb511942c4588aed97786aa931a2c3cfe89465c9a50aabe3c8b8c55408684ae33fe25af21bc240311339035e6129aa6d7e2c45f3e9e923f63e5bef34cc SHA512 e5568b435f6e9261406742e95183574e3be5cc271ff8d55756921e0753e3239f3d2ee8be7111151488a899526f90a1d7ad27a9129a3c85520fd91a09e8043b6e DIST genpatches-6.4-7.extras.tar.xz 3700 BLAKE2B a264be6af2117363bc1bb94b5638eead9c01e15b9464ecaf1a5ceee6c7deb893832d11fe14a2d242089f81b1687b677fc784fa2ed7e9b4bc7fe4867dd078b6d2 SHA512 f7229f5293e50ab6fb93b47286c06ba96b2d7c03aa5c48fda6dd3639b53ae4da6c4d974d6a08828fda9a3963ab805eb02892e86c842b58dbde2e6b9563cb54c9 +DIST genpatches-6.4-9.base.tar.xz 483840 BLAKE2B 8f2796524871d00030c870fcb167f36bce2a990a248533b7bf481506f03937fc69ee34cc5e2b8e3fc994c8fb40c54f23ce14c922f99b46c63e9da7e449a6cbcc SHA512 ea23db4aac99667ce2393d7f639043c6169f0f452aa882060d009ead9ffe9b763acd2a88495114b1a691dfa178f0a82fc0df8f89546e2bc292ca643f918691c0 +DIST genpatches-6.4-9.extras.tar.xz 3700 BLAKE2B f76074d4fef0f7a531b5cc699e83d758455727029be4ffd3470116d8475ab50d880501f920baa5fb0ef607ca057b3e1385d70ba8cf928a664d922949c325251b SHA512 35401caf459266c07369825bf2a03b5c9b8c54618e48cd5a8022bee1f2c5c6be4aa6ab714ea74152c0c88ed2fb774452f0de2c50a664979bc9d44b9f7d3951eb 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 @@ -13,3 +15,4 @@ DIST patch-6.1.40-xanmod1.xz 2285732 BLAKE2B dabcb75752aabe52481603d16b1410b186c DIST patch-6.1.42-xanmod1.xz 2341408 BLAKE2B 4d3e2f13bd3677f0987f041da4ababbee1e05a4c9ddde96c898f8bd057a953608eeb2701ea8c614b7bbf569e57facb625db706cb1cab3ed3d0514cb34eb39aa3 SHA512 4f0b9b38462465d5dcb51676a01ce43d8541d76da2dfaa06de341478fcef0201b6073a033e800dde5220d97002c574e3da758fb7877a02ae825aab871a6aa8f7 DIST patch-6.4.4-xanmod1.xz 456008 BLAKE2B bd4b44dd5a3f92051fab1acb947bc9ade0345784100efcb6b9749c1699f116f6425780e0a488bf527a8cb0de8292a4c89aa9a17744286af736015d68be15c98f SHA512 6c331a8876bdaed6e24c759ab883e6079a3806a2bdf3c895e0aa736d22c9e676877090f5621f48f17fa2dd73bb6491941c5a1826801796e36fa85cdce38a18f7 DIST patch-6.4.5-xanmod1.xz 550912 BLAKE2B 37c558ea47e3e75ffc24bde32c5fbc721f8637bb6d0f16f83172f5c790862cbe25662f3371fc8790edd1aa56262a3b14dcfc95ce71a7de89605b2af258af4dfd SHA512 e24b3777b1dad23e8b34a24733c2ad0cfb88bc2f99ad7466db0feeea5605ea64244b5ecfc116cee08f32978cb93d1e2e628bcb661ca1ea516a3ef5582b093508 +DIST patch-6.4.7-xanmod1.xz 619396 BLAKE2B c68b5e3ae41dbb55014d6203250c0b5226b544eb51150dad12c3940cbe199d330e6ff06c47927aa4836867b1cd3f77ffe3cb70bbafb358009f03e2119da3d73e SHA512 12b2d34258b25284687681026c3a7970aa0ff0a447582de01741489b725898bbf477c38e3f9752ae9ca9842f05398aff2835ece8b68ae14d5245268ec33bc082 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.7.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.7.ebuild new file mode 100644 index 0000000..9bb931d --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.7.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##*.} + 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 + 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.4.7.ebuild b/virtual/dist-kernel/dist-kernel-6.4.7.ebuild new file mode 100644 index 0000000..9cb3a33 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.4.7.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} + )"