diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index 2f33f91..2b20953 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -8,12 +8,16 @@ DIST genpatches-6.11-1.base.tar.xz 5964 BLAKE2B 8be1c3247179ca906348591dff7b8801 DIST genpatches-6.11-1.extras.tar.xz 4056 BLAKE2B e983a357142a10c6f73f73c0be8f8fc2612a2a3e0e113cc39c5b129eaba7a793d49e5817a3d9e8c5cf64bc6c1b6884fbac419f89810dbb8ae6244b49094aa9d2 SHA512 6cfb2e6d763bafd379299541a67028d6c73e0687746e373bc85f7677e9bb49d6f0a85091e216fe2ffa0e00b253c32a61dd2c4b8e800b33b9410c908fa37b8518 DIST genpatches-6.11-2.base.tar.xz 31476 BLAKE2B d32c81fb764115748f4f25a0f9af671d84df7a156215df6af4d6f1c7c205efaa60d31f78950ec604d9b615d1641ab0463ba2523191a3a618b81795ad94a6f40b SHA512 3c9d3afc85a16d0caf49d0d81beb0e312973e23fed7fc0e41f15f822d389d6f8cd39d5e497f71009716883c3e4ed5cbdf3e3d597d76a0b81391244f97707bd46 DIST genpatches-6.11-2.extras.tar.xz 4056 BLAKE2B 3f465186cd74ddde1200eef68b11a8c9fbdf6f4e6806ad32f6c89919dfd6fc670af4442408a10c5857d74d0955becc88a46dd09ef93cf462d4a6ab3e7c917090 SHA512 0fe772dba8abf415f5bc7837be2669abb0cc6ebaf162b0779ed320da76ea3a97f044fda2e88f5a2b904a78e37bc2e93f89e4b0a07c64cfc6c577e7b2016d0241 +DIST genpatches-6.11-3.base.tar.xz 252308 BLAKE2B 4a410ef58fdaa2a24da1fef194cdc4db9c62c84fe8c02339c959cb0b4d679accfd9db2b013429b8a04ddc3248fc36d56004b7171d01df51376779906a2940803 SHA512 41e62846295d08672bf8d0a4b704c5578a7e4eb10712afe8757dab079730dba5a4a2e74f18e7c29cd4f971747bff5a595da707254c85b2070a2ec137a0374a56 +DIST genpatches-6.11-3.extras.tar.xz 4056 BLAKE2B 84e6bfed32549a2ee5752164a91cb4d01bb0ed4574af608a3a94fc7e78cc951398eb6404750b55368378c242286401382e8f2586d3a770bb6809bb92db085bf8 SHA512 a06ced9cdae186fed615fd42c70428ff025328800c15a1c52848fc4a52a456eb9d9c1158480269ca745eed03a8b91bb533867b46252d43b0a37673531c5b53bb DIST genpatches-6.6-58.base.tar.xz 3154204 BLAKE2B 5b9456e93cb0984599e065fab0d05e40b7efbc8079763ede75ed7a6e7f0e241de96f0c6438cde52f64a5074f5bfcc5d55b5d3c21a9e9528138ea5c36e164ea58 SHA512 e775ac64564c201c3e1293d34a70f347a5afd5691a006d958f69959d2eea0af690cf66f7bdd450034ef9eb43daeccbedd58819dc688cd3e7e9933da9312cbf75 DIST genpatches-6.6-58.extras.tar.xz 4060 BLAKE2B 7e16c5d713aaf221335b81f3a301e9bb1e7f243d9bc6739c3dd07bb3cfedbe6bd5a763ce418172c838fbd3de82909cabff7c2e5c4b4f1b675098b709ddc5203e SHA512 315bfdf633398b3b1a9650dae88fdd0c1442336cabe45a3f2722e968f510da13050657e8d35acf8a313981bd9403f5056abea182a0115a79952a2740ceb4ff88 DIST genpatches-6.6-59.base.tar.xz 3174716 BLAKE2B 8eded8d4d4c343869f587ecc2a218d124c34618494ded9d17b493f26894e545658021ad9cfa05bafd14389de07406f43a722c37276cc14096a3a7a00040e2ae7 SHA512 88e5ef8de0954f349e5c0745adb8f718dcabcd2e166c597c9de753c892eaad42c936984279fde86974b307858959cdef401f92f6f62a98bf1d4bed14cbff821e DIST genpatches-6.6-59.extras.tar.xz 4056 BLAKE2B 8d68a426082bcb168f74abb849a7a58090268c9cf098aa8982d9e700fab754a6f42dd833c1ee5d44d52f58d1a6b3da018a954d873ba131a2049a286a39ca3099 SHA512 ee133a7efaeba2abe242482825f4490e1c1b17fca64f9183713dca601fc64048288aa79125f7b8c0715f6c4fb158ea3a230e76b39b63d1a59dbecf80697ac000 DIST genpatches-6.6-60.base.tar.xz 3204668 BLAKE2B 4076b1d74984ff1777a6d41d6c71a1a67139571314da88597e88ac0bd0067ce49ba7954b26690f8bb21009708e99be5e29abbb6871d8ab7c39740c243efc74d4 SHA512 91d0d2bef786151f9bb94370e26e8cc488a57e8307de018e068c3d4f07ff20cdb59516de1ab6718943286323812b999bf2b43ab63c9a79d70bdc7dd2ece68ee3 DIST genpatches-6.6-60.extras.tar.xz 4056 BLAKE2B 605705101398b9b0954b1b1050c7a35ca0cf9db76cb8b83a8686e4d895e96cdb5852b82fb47808a811eec73dbdb730550b4bdc09a9ce12c9a6f08f1c5fbcd2fa SHA512 6809450ccae6d26a77195a10997fc1c28408d8b1dd64cbe9985b1364d29ba520f4d1035e55fab34e6f169c92357a30fa95c2a9197da35366b09a5c634b9950a5 +DIST genpatches-6.6-61.base.tar.xz 3347520 BLAKE2B 1ae6cdda7741b2ebe6c835e98d9a8aed84488fa37159dcf4f232ac4da61dca065222cfabad1a82149dd67883e8f03bc5144730666ed488d7ea94d0d8ff8a6f93 SHA512 99ab0feb0cb071ab9febcd327f8249fc756ca3ce04b43b4bf4801dc8c3a758f7e33e49bc242577e25c4ee6db2107393c19f57e7d8918033f09cec34bb819c3f8 +DIST genpatches-6.6-61.extras.tar.xz 4056 BLAKE2B 9dc9a160fe6b5b73ad7f479a8edb246db66adcb7cafb1dfa770e0ed234d56eb16bc782b42b17e80bc8048ddda986a219dd3e018c97d887e5e249cfdf6c1137be SHA512 780145505ba77b93db165495fdb66ac02687ab0f15d9e0718970557e9b3b12e913abb33fd99db74c68157766f144811af6bde0b99baff62eaf4277144867d066 DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6 DIST linux-6.10.tar.xz 145142812 BLAKE2B bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b SHA512 baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2 DIST linux-6.11.tar.xz 146900704 BLAKE2B e7750c0878d71a56a0ce52d4c4c912199dad5bf5e2e8f872585a6494afbb37cbd852e612a6858936d2dc9b7776a3933818f540db408d57e90d18ea5249bba7ab SHA512 329c1f94008742e3f0c2ce7e591a16316d1b2cb9ea4596d4f45604097e07b7aa2f64afa40630a07f321a858455c77aa32ba57b271932ddcf4dc27863f9081cea @@ -23,6 +27,8 @@ DIST patch-6.10.11-xanmod1.xz 832544 BLAKE2B 22901777267830d36e6bf6920b671977b1d DIST patch-6.10.12-xanmod1.xz 846320 BLAKE2B 9c2abbccdef3d5a9b64f191fc31440ac26552173b274b289a97d0b71a461b37f709aeaa70010f640cf3e3be523dc205f1eb312d5baec070b0b60d2418301fb49 SHA512 d6ff09142d46f641903f63007f5bff2e4de4e5c0ad3b0de605071617662d7db38933adbcd28a6a4b5d84f3502bc55c902ea1b12d32a73d1fc8e0b38df19a3d04 DIST patch-6.11.0-xanmod1.xz 143036 BLAKE2B cee881362d9085a53e239cac571b5b50bbee610260635f3ddec71d18d4ceb4cc9240754a467730ea39646c1d787b1101b878b380fd9dc7010e04cd912eae1a87 SHA512 7989a36833a60ef31d092890a33905ad33c2b58b655fe230418f951c6ab59ab3c362937701e8de5cb50dd97a80fc493aa8791abb4a24bdf4d052e6bbe3e49bc1 DIST patch-6.11.1-xanmod1.xz 148676 BLAKE2B acc0fa1ab98d5899525f1d1ff29daa168be7c3d7b7c801b9ed6f5b70b069d3f620dc0d7e385f3106aa0d8758bb1ce653731e0c29c6383e5a8e3a3e56ee470d23 SHA512 9757f307d54bde1a70339b80da71fd68f7ecc564fbbec9b9f57e2bab98a5ba3a36818ff8adaad907dc61ca24d06b5339d2244b1c478165bfaee3ba5e1b0ba4ee +DIST patch-6.11.2-xanmod1.xz 364364 BLAKE2B e7457ef5b784d4cf31896bcb01cf12a9b615fea7e046568e6fda9cebaedbde29020cb3eb0a5b03e001c14e06d51b7b6c568c4e348edb0f64c7ff56eb06f0de44 SHA512 5e15495e8b525dd85b75fe207197b0fec2f42ba7a8e3eb2b56cfbe94ae71908e22eca34925149f2f3c15d1df55078aae0b94956e76ad9e80c32c91b7304cfb94 DIST patch-6.6.51-xanmod1.xz 2968548 BLAKE2B 2f20589cf44d0ae515200505c441f6572900ba5bff8e68e31064f00e40f57f2fe543b3be505fa41b93bb13c335c8ca44d4ccb347559a7c79f757db2118c11514 SHA512 fa645c7a1b9d04da27621b7f5952d500d23b2ff49af15fa19cf6946853f7e087b1a4ed38ac977a5aaae45810fabad9442f1ee82214438b4aadfe606bca0f0c85 DIST patch-6.6.52-xanmod1.xz 2985336 BLAKE2B 6b62429471f2df2f973557412b99c897cd98eb42c850ba1d900095b3ed8c3ebbb9d9a2ce4587e1f7714ae0e277f97b28787da71b14a2d9fe04f8bc5c720930f3 SHA512 c43513c42fce3f39e4616147ee3b5dfc7bc5a2ba21f5c142351860e1dccb75695e9181064b41f213041d72dbfccdcf7ef9241a20826863bdec86700ae7032304 DIST patch-6.6.53-xanmod1.xz 2995720 BLAKE2B 1c5906756776526deddc5e5c25f6b22c9c03abd652d3b9cb99823dc1eeef48fe69c8c98f0735f1be7797ee0f97a0a3a9596eaa29ba03e0d9d30beb851462f365 SHA512 c19cac9ed592a7231eda768237c0cddbe2931bacbd447c4f89112429e900b1c0017ff669787ab1660f8d939939d72b31f1f07a227754114d331b53e1de9e2954 +DIST patch-6.6.54-xanmod1.xz 3117860 BLAKE2B 7ec286f98800b8e65c4ebe1b858026b061c6474c92a58bd0cfdb0184b4c420a87b05738a566155c8c7e9c6e483620cbe78cb41ba90dd249bc2c3cae36389f5f2 SHA512 126902ad202bb63d9a6408783f9d53ae78dc7518610ee9ee9247973943d65a548f10f02144c3d4e3ebdd601ce51a41238bcf3f01a98bbceed2d83a66946fc928 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.11.2.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.11.2.ebuild new file mode 100644 index 0000000..ff9925d --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.11.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +GENTOO_CONFIG_VER=g13 + +XANMOD_VERSION="1" + +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://downloads.sourceforge.net/xanmod/patch-${PV}-xanmod${XANMOD_VERSION}.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}-xanmod${XANMOD_VERSION} + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v2" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + rm "${S}/localversion" || die + local myversion="-xanmod${XANMOD_VERSION}-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 + "${FILESDIR}"/x86-64-v1.config # keep v1 for simplicity, distribution kernels support user modification. + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + "${FILESDIR}"/no-debug-extra.config + ) + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.6.54.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.6.54.ebuild new file mode 100644 index 0000000..06d484f --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.6.54.ebuild @@ -0,0 +1,87 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) +GENTOO_CONFIG_VER=g13 + +XANMOD_VERSION="1" + +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://downloads.sourceforge.net/xanmod/patch-${PV}-xanmod${XANMOD_VERSION}.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}-xanmod${XANMOD_VERSION} + "${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="-xanmod${XANMOD_VERSION}-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 + ) + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +}