sys-kernel/xanmod-kernel: add 6.4.5

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-07-24 04:35:35 +03:00
parent c45282e7e9
commit bedf3b1cbf
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
3 changed files with 102 additions and 0 deletions

View File

@ -10,6 +10,8 @@ DIST genpatches-6.4-5.base.tar.xz 29696 BLAKE2B 0e882d51de63cce7a7edc96c29fe46c2
DIST genpatches-6.4-5.extras.tar.xz 3700 BLAKE2B 701f2bbb493087bcd8de7c7293c802bada8965901838b2eae998ec14749da6c46814611092b4120c25dc9ebef2313e36bcdc3593110d06c510e9db1dcf575f53 SHA512 0be95fcd6ce4ca750ea97c17bd897bd8083de63b8573080a2f3cd41d07c951293083afb739153a3cb29ea55e93b7d2063089119080b26f932c6a74e9425a1920
DIST genpatches-6.4-6.base.tar.xz 314708 BLAKE2B 815c36a6185cd1006596a4829462900041bb2ab5c89f28c9c26c5a10e8bf4d4907ce4f244044e7cd95c0f790112bdadeba8cd363b276aeb37ec20270e2a9162d SHA512 d0d97bae5fd34e41d2236fbc9952c90b2535b62ac9a5a5dc259cffb7f927bda16a04175be0a940670d0a0021f6fd3cf45ecfddf0e22d7a9253c13236a9b29124
DIST genpatches-6.4-6.extras.tar.xz 3696 BLAKE2B 6a5cc63fc0e09b0eb697e34ec554153f179b0abc0ff5bf5ae06dc4b319b3343d0ba986f4a5ebb859c773c9dbb60248b4caefb192ff5c0a8f0aec115a4a67fbfc SHA512 7ca005f7a822cc90a7a8399a7e7c277cc24757f689dfff9428251419e627510a3e4560448dc5a2c6901e2478288c9b5dac3c0b9973545864bd60feb0aa688e42
DIST genpatches-6.4-7.base.tar.xz 412236 BLAKE2B 923eacdb511942c4588aed97786aa931a2c3cfe89465c9a50aabe3c8b8c55408684ae33fe25af21bc240311339035e6129aa6d7e2c45f3e9e923f63e5bef34cc SHA512 e5568b435f6e9261406742e95183574e3be5cc271ff8d55756921e0753e3239f3d2ee8be7111151488a899526f90a1d7ad27a9129a3c85520fd91a09e8043b6e
DIST genpatches-6.4-7.extras.tar.xz 3700 BLAKE2B a264be6af2117363bc1bb94b5638eead9c01e15b9464ecaf1a5ceee6c7deb893832d11fe14a2d242089f81b1687b677fc784fa2ed7e9b4bc7fe4867dd078b6d2 SHA512 f7229f5293e50ab6fb93b47286c06ba96b2d7c03aa5c48fda6dd3639b53ae4da6c4d974d6a08828fda9a3963ab805eb02892e86c842b58dbde2e6b9563cb54c9
DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
DIST linux-6.3.tar.xz 136891752 BLAKE2B f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69 SHA512 768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
@ -20,3 +22,4 @@ DIST patch-6.1.40-xanmod1.xz 2285732 BLAKE2B dabcb75752aabe52481603d16b1410b186c
DIST patch-6.3.12-xanmod1.xz 888304 BLAKE2B 24f8d2f9b3100d518bb1b39ca03356a8948c948b3b56bbde9a649be2e66ca66bd4032e636d15b66028000c3294398e4da04c0089cd622c3a1f7b0df2aef43885 SHA512 21673000aef04e42325aa46a7100d96e0abed6f85e7e1a83340f89a7d38ae02a979653446feb8369916542e6cea4f66f3978967aec8ea6d6793d1def93377b25
DIST patch-6.4.3-xanmod1.xz 174692 BLAKE2B 40fa039c5c5360321f3e4cbf856603c3ad3ca205c0b39e193032678f4cbd54098bef0d2a3ba78e96f5e34e42e5495a910e85a45c135e2c65412d566ad451560b SHA512 f64c18457e39e5a9904e4f62eba5dc67110743b485a7bcddb6abb0e5b122bca67a72b1aaf53e7ed6a1a24eacd76783b9c11191235ec1022d033b9b8b30a878f6
DIST patch-6.4.4-xanmod1.xz 456008 BLAKE2B bd4b44dd5a3f92051fab1acb947bc9ade0345784100efcb6b9749c1699f116f6425780e0a488bf527a8cb0de8292a4c89aa9a17744286af736015d68be15c98f SHA512 6c331a8876bdaed6e24c759ab883e6079a3806a2bdf3c895e0aa736d22c9e676877090f5621f48f17fa2dd73bb6491941c5a1826801796e36fa85cdce38a18f7
DIST patch-6.4.5-xanmod1.xz 550912 BLAKE2B 37c558ea47e3e75ffc24bde32c5fbc721f8637bb6d0f16f83172f5c790862cbe25662f3371fc8790edd1aa56262a3b14dcfc95ce71a7de89605b2af258af4dfd SHA512 e24b3777b1dad23e8b34a24733c2ad0cfb88bc2f99ad7466db0feeea5605ea64244b5ecfc116cee08f32978cb93d1e2e628bcb661ca1ea516a3ef5582b093508

View File

@ -0,0 +1,78 @@
# 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=g7
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/~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
)
kernel-build_merge_configs "${merge_configs[@]}"
}

View File

@ -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}
)"