1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 K_WANT_GENPATCHES
="base extras"
7 K_SECURITY_UNSUPPORTED
="1"
8 K_NOSETEXTRAVERSION
="1"
10 IUSE
="uksm cjktty +xanmod cacule"
11 REQUIRED_USE
="^^ ( xanmod cacule )"
16 RDEPEND
="!sys-kernel/xanmod-sources"
18 inherit kernel-2-src-prepare-overlay
21 DESCRIPTION
="Xanmod and Xanmod-CaCule sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
22 HOMEPAGE
="https://xanmod.org/"
24 SRC_URI
="${KERNEL_BASE_URI}/linux-5.12.tar.xz
29 UNIPATCH_LIST_DEFAULT
=""
30 kernel-2-src-prepare-overlay_src_unpack
38 eapply
"${FILESDIR}/v1-uksm.patch" || die
42 eapply
"${FILESDIR}/v1-cjktty.patch" || die
46 eapply
"${FILESDIR}/patch-5.12.8-xanmod1" || die
50 eapply
"${FILESDIR}/patch-5.12.8-xanmod1-cacule" || die
53 kernel-2-src-prepare-overlay_src_prepare
59 elog
"Use xanmod-sources with microcodes"
60 elog
"Read https://wiki.gentoo.org/wiki/Intel_microcode"