From 76e5872d087bf11c53ef8b99a6c22fc6a474b7b0 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 13 Dec 2022 17:48:22 +0200 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.0 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 4 + .../xanmod-kernel/xanmod-kernel-6.1.0.ebuild | 78 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.0.ebuild | 21 +++++ 3 files changed, 103 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.0.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.0.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index bd133b3..baa07e6 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -6,11 +6,15 @@ DIST genpatches-6.0-11.base.tar.xz 622960 BLAKE2B a8d35eea162ef85aec18ee2b1b57e0 DIST genpatches-6.0-11.extras.tar.xz 3804 BLAKE2B 11aee6c336dde017a69fd47cdcd881db93c2b183fae9924bbcac663fccc3276450536325e63a11407adfa0900e1cb1a017d10c8ebf2bb0f3127fdf56cadb1215 SHA512 c3ede70c3ea7ab481fd2e5862254c589d9fb56e0d91e1e8bbfae0fbfa57d325b59e778c765a28be03655d75763da7f19361f2e14e5f8335fb779a083d9b42b67 DIST genpatches-6.0-12.base.tar.xz 658212 BLAKE2B 0daa718dd00d76224db3776d6792d51e072a2e4c8094ec22814d84cffcff8d18a670b73f94b5fe231e1eb586e05b42aa44942b8706ced76ac5c172777f8f8519 SHA512 e960c0a687b06ab108429ee99e5ef27dcc826dd3e6d90471addcb215284d37c1ed0cf40eb9d442a7ac90a5c4696a0ad95e0c5997ee954e4677b949a2c7ffcecf DIST genpatches-6.0-12.extras.tar.xz 3804 BLAKE2B fbf21f852110ac732124e5a227b38462d7a94ec17d788fbd48ab35e08c2a941f9c3549e58e7cdb4279f8a273daa2cfbde0a560a769d808ca9d26d2419b303b96 SHA512 efdc24c196c10ee2b47d6f81482b4408a5a7e829c21d9c2eff6426a92a1c17f0315c64875d45795cda7b735d183b7560ec44e308fee34b09e89c171526c9ee4f +DIST genpatches-6.1-1.base.tar.xz 4304 BLAKE2B f58a4e46ba85da5bee55c6fa14a57e7546813d167ac3d78fa8bfe4b386ce2240279b7c936094271cffbabd9f6eafd76a7bd609fb2136400cef2eaf443b452cd3 SHA512 310c97fb844db4ffd7272144d1d2d3d5fee1ecc31527ef3a6f0b67f0fbf1f3b7f9f9db9ae52f6e309cb7a8e0790019707db24db5db670d58179b7648c677c1d2 +DIST genpatches-6.1-1.extras.tar.xz 3804 BLAKE2B 62ee97ed9142b41f415129dfb12d10387561258c6798f055ef5c8767ca0f31b36d785045df4207f704ea37f6764a0fb6e6fb78859c0679ca5a75a5aa5fc458cd SHA512 21b8f5a44809a9866063fbac676df25db709105c702a5b90e5acb21f6a01f60d3a559d8398dba1ec2b0ade89b3a45b587933cb7ded0621d8e4aa13b4d4eb5daa DIST gentoo-kernel-config-g1.tar.gz 4283 BLAKE2B 44dd51ec45ebc71bffcd6d85a2fefba053f7bce8035057f0bbe928e24816ad4ba03c9bf67dcfcd6d6d1833c0a2ea93e0fd486c2093664dc41ccce316e1e60588 SHA512 3a45f28df9d457df0fe0d185da8b10f4e35f49dad75075e041e8cf3cf6972fecc8145cd557b0bf3a8dea20ddffae0194f88e61c1e5098fa0a5ca301d40aeea2e DIST gentoo-kernel-config-g3.tar.gz 4411 BLAKE2B 00edc4b5dc943834bc7ee977382b2960160888db00a25c5a7f73968784aa39a2b3b69f0bbda89b3ce8eb55e746006cff2839481493ac8bfca6a21de2299564f7 SHA512 44beae869bebf5445655dafe1facc47c3dbe602b34c5bf2fa984a581bfe3250fa0df908b8807c333c2e66ab9d1a2bb8026e22140f2a1f522d0dd647c96ca4d5e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa SHA512 bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714 +DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST patch-5.15.78-xanmod1.xz 3368160 BLAKE2B cd6f6fea1bdfb323bd37097bcd7c6031714f03207287094a51e3f81f3989108d76b637b211f4892b3110de4352b31cf4e0212faec92fd2a4176d7c4fe50f3813 SHA512 856b201475ea70099d4df6c10e689df92fd295f8281e6246f5774122cc5727b65f5ad4bb5d440c46ebac4678924d143f16e660404b7eeefc34f92aeb4b303415 DIST patch-5.15.81-xanmod1.xz 3469480 BLAKE2B 1c02e1482536f86d698159554c83819cff476bf790dfc7d108fc771e96c6762b14e69b9c9527a8a9c7245b458543bd26e8ebcaa5afc57ec145af803bb04ef7eb SHA512 594cb915c9e2466af198f71b3c79090358ba9ec7b4e76c2442cd3375b50a1add8972b29a5b5d21d508f907384764f7acc54a39d1d7effe8991868b47a3aa8c0f DIST patch-6.0.11-xanmod1.xz 968216 BLAKE2B 7c38b419babd2f59f7ab773c77897d76b033fd79fd1b0b8caf19f58a82b01ee69638b5a12782947668b0f58983c45f62310a05e7308fb25e236b63c4dba02a01 SHA512 5310f5500543f62a0a1abf087efbd70f938a0c531360160c919db36f5ef447371a8e6cf9a6de4326bf13a326f0eeab6a37a978d47e79bc94522f3a3a8f57c8ca DIST patch-6.0.12-xanmod1.xz 1001256 BLAKE2B 720002dccdb0a8b4b5966e6055d546f8d0b6175f16dc79fb3007b5c85cfdcbab62110f0fb83f7654f64de02714a89f9db0b0d0a781f974c23cc33ab33f375d41 SHA512 f97cd9ecb99ea9ac74decb82458f9f9dc12ddfb5b3da6cf7657bb3e999b7dffc18a14afff47c69f4c48dbc64ff00c5d92624c3771e9ea12966b0d16838bcfa1f +DIST patch-6.1.0-xanmod1.xz 137976 BLAKE2B dbce20ccd85633b9d5d2461afab6f60ce3736d81d1d1472d425b9c996302b5d06bf4c52678b7bab1aadfec2458d9d2844bdca871aa031d90f4ea8afb6f1dc066 SHA512 8d63970527f53fa727ccc9e1e1042cd18746cd3c98822999b155c44ed4431b4e4473d69533c9e71faa188980bad3657ba9cbc92eb9839e81ed3c28afdeeb1218 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.0.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.0.ebuild new file mode 100644 index 0000000..ee1752b --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 2022 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##*.} + 1 )) +GENTOO_CONFIG_VER=g3 + +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.0.ebuild b/virtual/dist-kernel/dist-kernel-6.1.0.ebuild new file mode 100644 index 0000000..ad0ed82 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.0.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} + )"