From b97c5b6c2708cb1096a5de555355d66031091573 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 19 Jul 2024 04:16:20 +0300 Subject: [PATCH] sys-kernel/xanmod-rt-kernel: add 6.6.40 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-rt-kernel/Manifest | 3 + .../xanmod-rt-kernel-6.6.40.ebuild | 89 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.40.ebuild diff --git a/sys-kernel/xanmod-rt-kernel/Manifest b/sys-kernel/xanmod-rt-kernel/Manifest index cd02ac3..d3b078f 100644 --- a/sys-kernel/xanmod-rt-kernel/Manifest +++ b/sys-kernel/xanmod-rt-kernel/Manifest @@ -2,7 +2,10 @@ DIST genpatches-6.6-42.base.tar.xz 2474752 BLAKE2B 074b24c3848ba0b2521d364d67222 DIST genpatches-6.6-42.extras.tar.xz 4048 BLAKE2B 0d86f11ef43c33b1014423a4417be73e4ace2eb5d9c38c7a63e8bc424eff7399137239138de1b89a70247f1b174766c9672cb05743aeaa14ea66d8bab67593bc SHA512 5d264209a734c4cbc48dab228b7d8570b735748b1c01f80beb2803dca3027ed78303ff937aecb1d8e3e6f2e2d4722aa0c1b5c77a4d45f2a9c53cfe1c0ac0affd DIST genpatches-6.6-43.base.tar.xz 2527856 BLAKE2B 961c8ebaaea9c45748d990b3df6f3a343b02a186797a7fa97fd332e25b6f9cf0a294420b223b8d502dd2e266e20942e304db65e562d9086b948cca0e51920521 SHA512 f8104db60c2ff32ce04e86f995b1c4a87eb7aa5510299c7d347eeaf23f4d64c55da0590743d45e952cb894ce4f91bd2da595badbdaa71fc546685d3a7ea9026e DIST genpatches-6.6-43.extras.tar.xz 4052 BLAKE2B c12fe48720ff166e507be3a4cc19ee00c541ea92fd3939b6cc80bb476d63a896efb3667ca4a7aab837d60c6c3bcf2c0137dae44a60612a8d342f8b90807f671c SHA512 9de420e251c76787bf9edb1023c80453e1df103ffc8075b870bdd1456f1e0c07f8bdfaac5d0d19cf698c7d1d048a48a0ea2326791260585bf24082c713727edf +DIST genpatches-6.6-47.base.tar.xz 2606912 BLAKE2B 9ab2547e43d9d17ce67824dbb5eacfd25d1c0ea314c440d925b53a89362f47d9d1ffe853b12bb3fcd3761745306914678b33261e56c4df2ebfe3ce65035ccc61 SHA512 109d430209ab4f02428ccd6357047742da383791a3ada574ddfb6a25f28dd0df1b0a376a895e0c624a7da4d34519ba895992c7cf7e3c83c03f6f7f8cb9ed787f +DIST genpatches-6.6-47.extras.tar.xz 4052 BLAKE2B 8cb744f165c0ebb88d4a8eb097c6f45c550d6eb984fa06902980c7276863fb6b5b7c1e760a9f6904f58178977f7e10a12626a20f83df4a2121379a26d1182ca7 SHA512 9f7c53624e9ca9bad3f36a114b3da3aa5d3c1a7c92bfb85d862814900303a58d2a6280a9ab9a0c3f342930a1354b579e94cf5eecbb379d31c7666925c1ae9cfd DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6 DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST patch-6.6.35-rt34-xanmod1.xz 2478716 BLAKE2B 470205370b238c96600893d727309a36ed5f027f2214ab1543a0241032172a27b6de69aa0a156dcdbad1d78ebb629f15f597e6bcd445721715f4bf7a41940267 SHA512 c9616ea18c448d7812c233bca8d395974156553988f6dc56ef43ed5016c97bdced5c8d91f03ec0afbab2afe76a724f790a48ea77da99bbba54c7e49821c1a3ae DIST patch-6.6.36-rt35-xanmod1.xz 2524124 BLAKE2B 18d781c91adcef16ff6cd9338e207e1bf500c8d98aa52b38b57b4c8d32476886c643308e97e43ee67d3a5a89b45082f27e36133158f4639c6242d0506f79c396 SHA512 be5ad36a8f2dda1a32bc440813685c39b9ffe3f8262bfee87b2ba596daccee92b69bff520d13c017052ac8f395b75574fee2d63de8a3eceb53892d1d38913b45 +DIST patch-6.6.40-rt36-xanmod1.xz 2587876 BLAKE2B 5e3877fa9def03b2958e87dddde7689c3216960d35eb09b877c6aa25bb8e5a1c845491eda4b82d31f232d5919ec1e009c4b2567b2d6dff469d3e6f6c0c17f2b2 SHA512 87687a657ead5a7d188ae502043541283ad259d95927273a15727cb38ffec8cb94ea8a94b90a71cab8983d7444ad7259e5df36a22ddda95712b21cb317cfa66e diff --git a/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.40.ebuild b/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.40.ebuild new file mode 100644 index 0000000..8902913 --- /dev/null +++ b/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.40.ebuild @@ -0,0 +1,89 @@ +# 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" +RT_PATCHSET="36" + +KV_FULL="${PV}-rt${RT_PATCHSET}-xanmod${XANMOD_VERSION}-dist" + +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}-rt${RT_PATCHSET}-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}-rt${RT_PATCHSET}-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="-rt${RT_PATCHSET}-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 + ) + + kernel-build_merge_configs "${merge_configs[@]}" +}