diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index e654eba..240422d 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -2,6 +2,10 @@ DIST genpatches-6.1-62.base.tar.xz 3593184 BLAKE2B b9ede84287025cfb00e4772aecef4 DIST genpatches-6.1-62.extras.tar.xz 3812 BLAKE2B 2f642be1d81a2e94221c9c713b8df8994953dcbac4d612bdad2f8e7d64111e8dfa4d988c105eea7d926e7fe08ec7232499e9bd8b8e2a9fccebf78d62bde91c43 SHA512 e06d58f69e3055ff38af09061daf6d0571590136fd154dd2ef2dfaca93d151391315abb5d45e252db4acadffbc7a87124c4ee50b6fffd278ce63fac819c38d12 DIST genpatches-6.1-64.base.tar.xz 3729008 BLAKE2B 10f4366a8fe83ca0609c0e2654e6c64ad47f3a3f1744ca637d8801ec9c8a8c541d74e21e020de0a6de18c98de640810d6934092b2b983b332e92514c2b6443a7 SHA512 1dda1ba93fea4c18ecaae6ec5a3cfea1fbe7f89fa9412e793b7cd0beff43894650167c77d1b85eb280f7754c85179dc3c72e32ca18f4d8a95667501c61958656 DIST genpatches-6.1-64.extras.tar.xz 3816 BLAKE2B 315826af9d3e7abbef0314f962e2df50f9d183555ec5fb956fa7c9820435042e3c3a72a5ad766a3441543c54986ffbfdae8ff0a4deecb2a72851237108eaee71 SHA512 5a384aa4f6aff1a3410090873f9321ca1c6bcdb48dfefeaf7c2746b950ad22c7a745c60389ec49b99a249cb62c91d517389d5d91c844509dce5cd45a67b47edb +DIST genpatches-6.1-66.base.tar.xz 3766288 BLAKE2B 3cf0a62fbfcd492e5c16b4158bcf7dfaecf7cc8df376e308ad606d8203022e04a0375a2c9a4fe58bf37bafbfd4a1ccacbb8939fc166590089884ba9989929430 SHA512 69418fe7fe88958d95bdcfb142e6350363180ede26cc44e035a0fdba12d2a8cc542a0ed7789572677eba29f9905af8720c8ddfa13e8257b129bfa95641e72f50 +DIST genpatches-6.1-66.extras.tar.xz 3816 BLAKE2B 8b2f2aa2f65d427c4ec39cdb988200d31d360f2ffde6f633838b0c3437c4efe8438e01ccd8e2de57d7f164c32d509e35a8be1ac4818841a7719a3cdce9e47717 SHA512 7f40e6153812cfe74de8ce376d4ae02868b6f246027cbce67e0714a139e60b4aa32743876c180f3b7b07e9b6fd07d2138e21ff5e6ced9571d29bf3e647b615c4 +DIST genpatches-6.5-10.base.tar.xz 631564 BLAKE2B 7a9fe483c7a6a040af5a1fc0fd99dd7d575a380240268bb61d68caf95613d53fac46edf6cb18633b6dd2e803c9360d3cc13f0160e6ccaf811ac8420f7dd30771 SHA512 506abb2a66c51e45ad3ebab0c3b921faaa890640c7236eed377aeb27dff9da552088ea8d8192b4f2e142c510c7d565a5c8431444fb39bd82948ec0e696c4b083 +DIST genpatches-6.5-10.extras.tar.xz 3704 BLAKE2B 4bfee3cf5f3af32c02f4df2b91437258a4bed38c4cd1fc8f8467020ffe1835ec86dee58a10d2e1775fdd6392c6a28552ea3a90ff5fd36504ed43cb7787ea7e5e SHA512 48589be11fcc969fd3f46475f8aa53047f191c5fec66918e84d178e14f531c209300808f7c2ddb479fb8409a344f205f59b72dd18b6d79d1ca924eab10f81f85 DIST genpatches-6.5-7.base.tar.xz 428224 BLAKE2B 9038c1beda5e3778508a29ccb0f906520f93a505f9a45f7050c47814eaf2e474d46e3cb8760dcf5a3bfbc504c5c133f8dcd8b55261a3d0c824cb374a42d98801 SHA512 89942e28ec1c594401a4ecfd6ba240e334356be0f1f35e48dd9abb1f4ffd122a044a76079f214c534a6acada0db4b735a8fa8face05feeeba82e2b51231c0472 DIST genpatches-6.5-7.extras.tar.xz 3696 BLAKE2B 0cba288c1d1c753e5a317e87432dbdc2e711635cd074b1daac3b40af683da939981eaa40b8d4291ad59d4abb92aba5fc97be134524e02b1c2c29653382d7f402 SHA512 ea3bcaffbf58f981388c2021baeea809a35a1b270cff6a0613dce2da8ff8431886612d22073c7a8d6462d20eb1f27d0c0518164c14e4af96b9393bb6a1a038e4 DIST genpatches-6.5-9.base.tar.xz 574412 BLAKE2B 339dc1d19a323c2143fdd394b324e8d73b6e21b833e48096b6ae312b188bd9f39811fcd7b93f900c6ceb6982eb6ca108b2ec617b8dc98fe2ec255ec3b002e31a SHA512 42873d29784c0d85434d7eee81ef2000a42164e20ef74c875b81ed8df96ec3632261485c38e17ffa41d94df200b69d8d0e663eb8c90ea741234e860aad9026e3 @@ -11,5 +15,7 @@ DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b DIST linux-6.5.tar.xz 138898084 BLAKE2B 2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39 SHA512 1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257 DIST patch-6.1.55-xanmod1.xz 2787488 BLAKE2B d5178bffdcc3389efeba880316466ca967f96ab0de00404b5255c9d632645b9d7fae4bcaa58f4ef38fe392295c5ac009a7574c1c29f083ce0a6bbf58cfa34155 SHA512 626304941f7fa9d91cd7a7a07a2e05c83c96676917a4db48c84be87a72983541d9864f9266878babcbe84e43701826ee39b90352ee13450a312749b0f11275bc DIST patch-6.1.57-xanmod1.xz 2900160 BLAKE2B 85c6a7f67cba7d985d08b41093229f4982deb88fe9701f6065bd46c2372b2a39cf0686aab772986c76adbaaa511df257f16c25ce930f9ea2b3a3e65e89223e4c SHA512 753810974167a1304d761b09d1e3b05cc7109c867a19ffbbac79058e4910a06cd95c9d1179d36d09e8a3f156ecedf667e880808e75d68e0f0bf2e964739a9f0a +DIST patch-6.1.59-xanmod1.xz 2923508 BLAKE2B 9626b11ba7e3d60eadb1e55e75eaabfd1f04c998fbe698ccfc699c3623f2ce8cb2ecc5156b9bf8c0e7749f4df0c8a37c0e0b2229c6e9f0a5b00dfe975ed2679e SHA512 c3a14ba0f903da4b5156705820079c944532cdaba96f36d46f1a20a76a9e164780967ba26b70311f7161c774bdcd34f8bd92b82b9d675b9277aae9bf7a126220 DIST patch-6.5.5-xanmod1.xz 550712 BLAKE2B 89d376dc111bc7ebf9be563c1ef9d26fb93ef4cc5109f847f8eac9730a40d76f7f31cb55369303c32f416e11ccec501b5fe7ce264a113a1a344e89f9b710f1d6 SHA512 0a370268c797ef9a0bba3b9c38421a74085d75e685b04f3a7b3f59eb3c2e06c695573fb1c8e5253f9bce5df4a4fc0f3475f3ba7f11b9affb54e2367ca67ad19d DIST patch-6.5.7-xanmod1.xz 690892 BLAKE2B 82d20fd5ac10a439c2624175efa48f8513146ca8b21fc11c3c77d1263b4ece101577e248cfe8a28bc4f81336460c5b51a17e04703282e5cca9399ddae64d332f SHA512 bd75d776cad10a911220ab2f5ebc0c24a5233e80e4a840286ac902a1aa4dc76029155400f4c1070fcedbbd67124fdaa7568c59fe4d4699e097e23c6fdcfed5e3 +DIST patch-6.5.8-xanmod1.xz 743580 BLAKE2B 08ffd621c883647fc7870564f3f53f19d481fa881191fb701bbecc067b10126a1c82ed052591911ceb15dd088811cc49a75ca49fd636fe91f516eb92a714fd24 SHA512 a5b5d180b838f5a820d89f142cda3bfff143afade1276483502520333c26ed29511435a3ce62b7f545daf371531bccbfd0d55a59b84bc9101832a13af61bc665 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.59.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.59.ebuild new file mode 100644 index 0000000..fee8e32 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.1.59.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##*.} + 7 )) +GENTOO_CONFIG_VER=g9 + +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/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.8.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.8.ebuild new file mode 100644 index 0000000..70ee2a7 --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.5.8.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=g9 + +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.59.ebuild b/virtual/dist-kernel/dist-kernel-6.1.59.ebuild new file mode 100644 index 0000000..b9a20a4 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.1.59.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} + )" diff --git a/virtual/dist-kernel/dist-kernel-6.5.8.ebuild b/virtual/dist-kernel/dist-kernel-6.5.8.ebuild new file mode 100644 index 0000000..9cb3a33 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.5.8.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} + )"