diff --git a/sys-kernel/xanmod-rt-kernel/Manifest b/sys-kernel/xanmod-rt-kernel/Manifest index 098ce7e..24ac25b 100644 --- a/sys-kernel/xanmod-rt-kernel/Manifest +++ b/sys-kernel/xanmod-rt-kernel/Manifest @@ -2,7 +2,10 @@ DIST genpatches-6.6-24.base.tar.xz 1263296 BLAKE2B 16caebdd68cdf1d07c5f0e0429ee0 DIST genpatches-6.6-24.extras.tar.xz 3704 BLAKE2B 2908fc01a54469d0b99c12b76e11a67af3251391e5f6cb7125a63d54abb681acd11f54ea26702e964a5785fa1a2557111ab9bea13c4e9a32cf4549c246b34edb SHA512 f72cf8aadaad8cff309a6030e98e29534e86c75665895d53772d3fa783df2939d74e449e1e0adb136349f7e281cc158153380d862cbbf6a3ac4916ef4b8da6e0 DIST genpatches-6.6-25.base.tar.xz 1351392 BLAKE2B e1f5df7796f7d50a244c37d2b5e4eecdeb1d46cf25f6dc51567c6abd729aad142266fa430350e7efdd3995c02d6f8cc6ff85429fa7a019f8f9ed1a9ca2fc9b7f SHA512 a548b1552c6e89b0d9736a2d2e282eda7686a0cf781c8d3445d7394ffdabb2c16c69dcaea0341f51780181bf30a58696ea8fa2723f25b12fa6d7cfdc1effa810 DIST genpatches-6.6-25.extras.tar.xz 3704 BLAKE2B e7709d6dc9f02a24a5efff213e4357a25777364cce38387b5a12149915017cf229546993de40b4e2aaa6c107b1930f091e5399c14b660d07f3e73a1a6c4f287f SHA512 babba6d4e397a1594d74dac9e588fe87ebc07523ddb5a8e4b23028043534a965d29a728cf7958da90e6544a3e1d0fc29de65542610f5ad513ca7d7edb5a89c5b +DIST genpatches-6.6-27.base.tar.xz 1392292 BLAKE2B 46e3c354f7c27182c2f97bd20c165fa8bb79317bb136afbbe1e0906cd405e7cbcab1293e724cda38491f0d1cd9e9009146f18ad9b5ecf54526e69aae43fbc9e8 SHA512 363d26f9410e2d526f07c0831d36733999ec284ee01d684ad15aa5856b007a2d2a189ca414358da87a479dcbbea7ae24add9d8019b4c41c8bf1aae7b67a3b490 +DIST genpatches-6.6-27.extras.tar.xz 3700 BLAKE2B 36a21c970dd2c8f72a4496b9f72faea3e94fba49342e00b7cdfc0ca6d4f3ab14fef161a7d02ad13b1c7db73af3c96b1c145453d0645791b46b34f599b3947582 SHA512 996a1b0a5c625043ececbeacc648f4dd71da2e239482ca515b680b146ba6041feeb0924929b1b2b6ee4f3ecc24c85926e54e28058d9401d4399282151332dfce DIST gentoo-kernel-config-g11.tar.gz 5077 BLAKE2B dc17ded74f79baddd703a78084113b85e7130877b300b5fe60453cde515fe37c52ece7877049bb0ef384f74ecfc73d59d7d4a513f8fef7bf4f651599946383e8 SHA512 e91156765ef2a48396370f884fdecd7bb1d600e5167f6bad51130520f886e9198adae375adf3e40fa803abc5d5482057775fb0275ab2589bd8f94d8af4a03c4e DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST patch-6.6.18-rt23-xanmod1.xz 1413496 BLAKE2B 10c94dce67847a756ad5cfaea76bacaf3bbf1a4f328e93a0b806724b3e37be58a07b501883c0ec6cfcbe455b279bf61bee3810b451ebe3d6e22fd9de24a10e3a SHA512 28730f0e711d71b218648c6621551899a32e6132198968d1d6a29e2b83f9d57a53cfb4667b4090698b2c0f8e0dde318271365bccb4fdf48d2248f4be79cb9833 DIST patch-6.6.19-rt24-xanmod1.xz 1498320 BLAKE2B 11da29031468319c62d9a52bbd90255fbb88594f45b01f06d1b2808a8141749c4741d9c88aa07d81e1d527677d3d32b4d6c5f28cb527bc11b630f4451e8bb89c SHA512 3b3bf9264d992c2b52df9c57aaf264c5c1ef39e2c4dc2876188a61d606c7085e003e1edb6cfe5e00bb5f711ed55951886f933ebb81225e634e61b012ed0a99ea +DIST patch-6.6.21-rt26-xanmod1.xz 1535032 BLAKE2B 9cd901c1ac444c1b3dc474069b0dd62794d869a3593320ae754b53a06e469d6deb9d9abcf6f2d2f44a5d7b1ada4e8f4f98520b61de256d001083ca00ea78d0ce SHA512 ef4793ade67617ed3dba8846e1ba1cdbcac74896de529e4c5eadd81e5e54f934375e49b654ba7fc1f6ee2fcff5033b9c960d85071843969973dc97c590fe4db0 diff --git a/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.21_p26.ebuild b/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.21_p26.ebuild new file mode 100644 index 0000000..cbb83f3 --- /dev/null +++ b/sys-kernel/xanmod-rt-kernel/xanmod-rt-kernel-6.6.21_p26.ebuild @@ -0,0 +1,109 @@ +# 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%.*} +MY_PV="${PV%_p*}" + +GENPATCHES_P=genpatches-${MY_PV%.*}-$(( ${MY_PV##*.} + 6 )) +GENTOO_CONFIG_VER=g11 + +RT_PATCHSET="${PV/*_p}" + +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-${MY_PV}-rt${RT_PATCHSET}-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" +SLOT="${MY_PV}" +KEYWORDS="-* ~amd64" +IUSE="debug" + +RDEPEND=" + !sys-kernel/xanmod-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${MY_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-${MY_PV}-rt${RT_PATCHSET}-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="-rt${RT_PATCHSET}-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[@]}" +} + +# lazy workaround +kernel-install_pkg_preinst() { + debug-print-function ${FUNCNAME} "${@}" + + local dir_ver=${PV}${KV_LOCALVERSION} + local kernel_dir=${ED}/usr/src/linux-${dir_ver} + local relfile=${kernel_dir}/include/config/kernel.release + [[ ! -d ${kernel_dir} ]] && + die "Kernel directory ${kernel_dir} not installed!" + [[ ! -f ${relfile} ]] && + die "Release file ${relfile} not installed!" + local release + release="$(<"${relfile}")" || die + + if [[ -L ${EROOT}/lib && ${EROOT}/lib -ef ${EROOT}/usr/lib ]]; then + # Adjust symlinks for merged-usr. + rm "${ED}/lib/modules/${release}"/{build,source} || die + dosym "../../../src/linux-${dir_ver}" "/usr/lib/modules/${release}/build" + dosym "../../../src/linux-${dir_ver}" "/usr/lib/modules/${release}/source" + fi +}