From cd430744d9072304282af7e2cf81f6b90eeb7dbc Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 22 Dec 2022 13:06:11 +0200 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.1.1 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.1.1.ebuild | 78 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.1.1.ebuild | 21 +++++ 3 files changed, 102 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.1.1.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.1.1.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index af85f18..4931fea 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-6.0-12.base.tar.xz 658212 BLAKE2B 0daa718dd00d76224db3776d6792d5 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 genpatches-6.1-2.base.tar.xz 15048 BLAKE2B 84d1f7b4cb2c13e70b0d542853856f05de48739400f66253fd277167144ae0c259579e539d43ce65d2ee206a2820ec2ef288d9296c68a4dbd674c43d378102b9 SHA512 e349b8b535e8ab9f70cd01c513480cf75bd10dd2f2d5ef15f97734ecc9e481f137dc1cfa4c50f8a1a2f3549bf0142f83f7224603f881e66af130cbe1f8023496 +DIST genpatches-6.1-2.extras.tar.xz 3808 BLAKE2B 70f549904446897e8f955146dba039b43681e03e0d72049e35473ac6ff5d05a1a72c124d410fdfe065d5652c0f0312c6eb4907afbb475e3cd9828c3f0edb6fa2 SHA512 9f92c3b899a8b106649003acccd33cb3cfaf9838ec421998d3b587893b2e6705068fdc0ff7b52ae78203dc793b6064742b721e68bb1e8d7160c48b419062448a 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 @@ -15,3 +17,4 @@ DIST patch-5.15.81-xanmod1.xz 3469480 BLAKE2B 1c02e1482536f86d698159554c83819cff DIST patch-5.15.84-xanmod1.xz 3515988 BLAKE2B f070bf55a1ef829edc8482679715e415da8b46d0edd06cb538256e755c2b3818195bb669fa4a984719efdf1d1497e22e45f0b50742b3f840cc42197a56f9fd9a SHA512 6c33422f6da0babaac815e413d6e2b8a196d952afe49206b00517cac57777ca5e159ca4ac00290576e321c3e469764c5a730552d0a094e1706abf0976008715c DIST patch-6.0.12-xanmod1.xz 1001256 BLAKE2B 720002dccdb0a8b4b5966e6055d546f8d0b6175f16dc79fb3007b5c85cfdcbab62110f0fb83f7654f64de02714a89f9db0b0d0a781f974c23cc33ab33f375d41 SHA512 f97cd9ecb99ea9ac74decb82458f9f9dc12ddfb5b3da6cf7657bb3e999b7dffc18a14afff47c69f4c48dbc64ff00c5d92624c3771e9ea12966b0d16838bcfa1f DIST patch-6.1.0-xanmod1.xz 137976 BLAKE2B dbce20ccd85633b9d5d2461afab6f60ce3736d81d1d1472d425b9c996302b5d06bf4c52678b7bab1aadfec2458d9d2844bdca871aa031d90f4ea8afb6f1dc066 SHA512 8d63970527f53fa727ccc9e1e1042cd18746cd3c98822999b155c44ed4431b4e4473d69533c9e71faa188980bad3657ba9cbc92eb9839e81ed3c28afdeeb1218 +DIST patch-6.1.1-xanmod1.xz 148752 BLAKE2B b7aa8be77e166d2c473c97ba0fe8582af0c62a0c28b28792861ba315742ed1359408b4008da6f7875d741df48be1836b189629dfa85edec0705b97fe518be33d SHA512 ee1ca7baa77bf20b4572200b42b40031441880f71aff3574391fe4210a810eb2863878b2c12127a7ed6fa95ba48db4ccec5136b58812021904cda62c3e2e4ef5 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.1.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.1.ebuild new file mode 100644 index 0000000..32a6830 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.1.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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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.1.ebuild b/virtual/dist-kernel/dist-kernel-6.1.1.ebuild new file mode 100644 index 0000000..ad0ed82 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.1.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} + )"