sys-kernel/xanmod-kernel: 6.0.11

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2022-12-03 21:42:12 +02:00 committed by Parona
parent ad59b6aef9
commit 4f2b8cac7c
3 changed files with 102 additions and 0 deletions

View File

@ -4,6 +4,8 @@ DIST genpatches-5.15-85.base.tar.xz 3424456 BLAKE2B 3b5dd1fbeec6ecf40e922ad97662
DIST genpatches-5.15-85.extras.tar.xz 3932 BLAKE2B 466a3564c1d693c90d925457720960f79221d99f740b5ef67152dbf957d9c44a07b867e916cbedd32c92e268341bbe05d3fe40663e55c358cf4439d3a343721b SHA512 03b9f051fe6a8415b693a64242d00a457f7640dd8fd6ad9659da8deda9ee77b8c52769bb60ca5194e781696e80f703ca17bc1277b1979e1f79e99144a30ef664
DIST genpatches-6.0-10.base.tar.xz 546380 BLAKE2B faad43e3066e880e9074c57499eef61f85a8279cb37b7c999f41194588c766bfcb529cd6bd43b234e865c837ca970706935d6fea32fbcb46c49e9a67d274f262 SHA512 c4e37e027f8c9c7ce833d4b5c887b261bbe617222d4b1203bf0ccbb35b384bb185bfa5e3bccc187e7658baaa50a015a5ce2a41a6d9c8fa5ad883a46692b00d8c
DIST genpatches-6.0-10.extras.tar.xz 3804 BLAKE2B 392620ebf627c7f480b0031b9e3e712ec0005b7e83596ef192908cde5740df06cec0605b09a15ba9420919b37a61136611a9e3e13f82caa63d0337f3d9b167e0 SHA512 86511fa64c02b703426450ade1811ce5b3614a6a232cba35f016837572e34a7ea0c751eb90ffe971f6a3321e0f9f61f8f032bd1cab5b0d55f8112acff42b4f61
DIST genpatches-6.0-11.base.tar.xz 622960 BLAKE2B a8d35eea162ef85aec18ee2b1b57e0d67cf4fd336eb1827b4c2d81f85768ea0b633b8010d100b693d3359ffdc373d19c866383dd2fbfcae8d49cf406e9c6a56b SHA512 d2f07ee7314431f324684340f84cba64c008a268ed42f481a9bc885796cf4ba1dcd787bf64eb0028f2cab98afd0226f1b56cf00c7f160fc2af25276339743b31
DIST genpatches-6.0-11.extras.tar.xz 3804 BLAKE2B 11aee6c336dde017a69fd47cdcd881db93c2b183fae9924bbcac663fccc3276450536325e63a11407adfa0900e1cb1a017d10c8ebf2bb0f3127fdf56cadb1215 SHA512 c3ede70c3ea7ab481fd2e5862254c589d9fb56e0d91e1e8bbfae0fbfa57d325b59e778c765a28be03655d75763da7f19361f2e14e5f8335fb779a083d9b42b67
DIST genpatches-6.0-8.base.tar.xz 428744 BLAKE2B b8cc7442f3930b8f5a9b11e3722b991f049aba0c635e3e7c1ae3bf4df12470a1ba974a0459ac02c5dc5286a3ac3377704b583f241fb844e6ef34552d4bf5c2ce SHA512 cb0c4a2a100ea25f84fa5ef85a2a52ac3c42bc83b0b38b526e96d034d9433382f5b3edc958f0546dc0692874ecab252d19d58264376d60cf9338bc6ec8a6d7c4
DIST genpatches-6.0-8.extras.tar.xz 3804 BLAKE2B 338f4ef5b88afc9a950ac47261b06010317c59c104819c9aaee6ec845c47b31982dd86a9e4e35ff3c21997931411235d8d6322190d96453c55c443d7de0cd893 SHA512 1d58df2e68935c50b25109a3e92a48d7ab703d97c536634b47ccdd958dedca458eed5c96d1c3a37f788a6576fb655e4c4446b95f3bb8ce38ef1ec008922a3e12
DIST genpatches-6.0-9.base.tar.xz 478548 BLAKE2B 916f2b1b5d198adec6f73a0bb52029f4667132e7b7528ac5578134e3ed775d6aaac7989ec5e3827fe16db691f3321ef16b5a29088d2ad81e963f768f67cc2b61 SHA512 6b748f241e609d6191f83134f65bd9010122d5681b080c7ffeff8690f4cb1ab0f44b2681a135689d945de45f4ef25384411aea1d78a5b1c6248e547dc9e5297e
@ -15,5 +17,6 @@ DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed
DIST patch-5.15.78-xanmod1.xz 3368160 BLAKE2B cd6f6fea1bdfb323bd37097bcd7c6031714f03207287094a51e3f81f3989108d76b637b211f4892b3110de4352b31cf4e0212faec92fd2a4176d7c4fe50f3813 SHA512 856b201475ea70099d4df6c10e689df92fd295f8281e6246f5774122cc5727b65f5ad4bb5d440c46ebac4678924d143f16e660404b7eeefc34f92aeb4b303415
DIST patch-5.15.81-xanmod1.xz 3469480 BLAKE2B 1c02e1482536f86d698159554c83819cff476bf790dfc7d108fc771e96c6762b14e69b9c9527a8a9c7245b458543bd26e8ebcaa5afc57ec145af803bb04ef7eb SHA512 594cb915c9e2466af198f71b3c79090358ba9ec7b4e76c2442cd3375b50a1add8972b29a5b5d21d508f907384764f7acc54a39d1d7effe8991868b47a3aa8c0f
DIST patch-6.0.10-xanmod1.xz 896572 BLAKE2B 5e2f1d3e4ed9b410a641ecb192a212e773fcb31fff906d1b5c61cad519b4f5ce691dafe004362518d1742a3e691d85073fd143f30d41b9c6ded2f34a4edb1d64 SHA512 afa2194c35dc7f35a35c35af27529ac13b12a446cb079d786cd4770592d0e1db6633d64a8afad976aa770a10aab0ccc54a8be4328a56c7a3173a5f6c4754160a
DIST patch-6.0.11-xanmod1.xz 968216 BLAKE2B 7c38b419babd2f59f7ab773c77897d76b033fd79fd1b0b8caf19f58a82b01ee69638b5a12782947668b0f58983c45f62310a05e7308fb25e236b63c4dba02a01 SHA512 5310f5500543f62a0a1abf087efbd70f938a0c531360160c919db36f5ef447371a8e6cf9a6de4326bf13a326f0eeab6a37a978d47e79bc94522f3a3a8f57c8ca
DIST patch-6.0.8-xanmod1.xz 786216 BLAKE2B d4b37e012eab41300330b7c7942dff863ea1cc5e250959618ffc8189ee58e1ede627a2887f95b977c0ecac980ebd730e43398288ee4016034e28106c0c5f579d SHA512 235208e945b21e0d186f591395f61df254e8d07f2e6a8354365d069f19508ff67d335c8ed4cf5db406f1e8c88bcb6fac2eb3f095ec7ebcf3a81ce530417f9ef6
DIST patch-6.0.9-xanmod1.xz 835560 BLAKE2B 3ed92c5fffb5e858cb90d438008ff4f3f3e574df9ad6b4ed99d9de2ccece754ba35fcffe126fc798d2760a9cfb5539cbda896bf1c632a1d54768280220f519ed SHA512 ece5014bea4bdffb39c57feed1d5639b53512664e765c6f14ef68b4ca363e25ec785f2e1dd9eb13cec9b18c2972c3c79fe2910fc7bba7b8520549d5b4f388dd8

View File

@ -0,0 +1,78 @@
# Copyright 2022 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##*.} + 0 ))
GENTOO_CONFIG_VER=g3
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}
)"