sys-kernel/xanmod-sources - 6.19.10 (gentoo-zh)

Search

Notice: This package is in a virtual group: virtual/linux-sources
Equivalents: sys-kernel/asahi-sources, sys-kernel/cachyos-sources, sys-kernel/gentoo-kernel, sys-kernel/gentoo-kernel-bin, sys-kernel/gentoo-sources, sys-kernel/git-sources, sys-kernel/linux-firmware, sys-kernel/linux-next, sys-kernel/liquorix-sources, sys-kernel/mips-sources, sys-kernel/pf-sources, sys-kernel/raspberrypi-sources, sys-kernel/rt-sources, sys-kernel/vanilla-kernel, sys-kernel/vanilla-sources, sys-kernel/xanmod-kernel, sys-kernel/xanmod-rt, sys-kernel/zen-sources

Install

Install this version:

emerge -a =sys-kernel/xanmod-sources-6.19.10

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-kernel/xanmod-sources-6.19.10

Or alternatively:

emerge --autounmask-write -a =sys-kernel/xanmod-sources-6.19.10

Package Information

Description:
Full XanMod source, including the Gentoo patchset and other patch options.
Homepage:
https://xanmod.org
License:
CDDL

Ebuild Details

Version EAPI Keywords Slot
6.19.10 8 ~amd64
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="8"
ETYPE="sources"
K_WANT_GENPATCHES="base extras"
#Note: to bump xanmod, check K_GENPATCHES_VER in sys-kernel/gentoo-sources
K_GENPATCHES_VER="9"

inherit check-reqs kernel-2
detect_version
detect_arch

MY_P=linux-${PV%.*}
DESCRIPTION="Full XanMod source, including the Gentoo patchset and other patch options."
HOMEPAGE="https://xanmod.org"

XANMOD_VERSION="1"
XANMOD_URI="https://master.dl.sourceforge.net/project/xanmod/releases/main"
OKV="${OKV}-xanmod"
SRC_URI="
	${KERNEL_BASE_URI}/linux-${KV_MAJOR}.${KV_MINOR}.tar.xz
	${GENPATCHES_URI}
	https://master.dl.sourceforge.net/project/xanmod/releases/main/${PV}-xanmod1/patch-${PV}-xanmod1.xz
"
S="${WORKDIR}/linux-${OKV}${XANMOD_VERSION}"

LICENSE+=" CDDL"
KEYWORDS="~amd64"

pkg_pretend() {
	CHECKREQS_DISK_BUILD="4G"
	check-reqs_pkg_pretend
}

src_unpack() {
	default
	mv "${WORKDIR}/${MY_P}" "${WORKDIR}/linux-${OKV}${XANMOD_VERSION}"
}

src_prepare() {
	kernel-2_src_prepare
	rm "${S}/tools/testing/selftests/tc-testing/action-ebpf"
	# delete linux version patches
	rm "${WORKDIR}"/*${MY_P}*.patch
	# delete failed patches
	rm "${WORKDIR}/1710_disable_sse4a.patch"
	rm "${WORKDIR}/2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch"

	local PATCHES=(
		# xanmod patches
		"${WORKDIR}"/patch-${PV}-xanmod${XANMOD_VERSION}
		# genpatches
		"${WORKDIR}"/*.patch
	)
	default
}

pkg_postinst() {
	elog "MICROCODES"
	elog "Use xanmod-sources with microcodes"
	elog "Read https://wiki.gentoo.org/wiki/Intel_microcode"
	kernel-2_pkg_postinst
}

pkg_postrm() {
	kernel-2_pkg_postrm
}

Inherited Eclasses

Manifest for 6.19.10

Type File Size Source URLs
DIST patch-6.19.10-xanmod1.xz 897212 bytes https://master.dl.sourceforge.net/project/xanmod/releases/main/6.19.10-xanmod1/patch--xanmod1.xz