sys-kernel/xanmod-kernel - 6.19.12 (parona-overlay)

Search

Notice: This package is in a virtual group: virtual/dist-kernel, virtual/linux-sources
Equivalents: sys-kernel/gentoo-kernel, sys-kernel/gentoo-kernel-bin-, sys-kernel/vanilla-kernel-, sys-kernel/asahi-sources, sys-kernel/gentoo-kernel-bin, sys-kernel/gentoo-sources, sys-kernel/git-sources, sys-kernel/linux-firmware, sys-kernel/linux-next, 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-sources, sys-kernel/zen-sources

Install

Install this version:

emerge -a =sys-kernel/xanmod-kernel-6.19.12

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

autounmask =sys-kernel/xanmod-kernel-6.19.12

Or alternatively:

emerge --autounmask-write -a =sys-kernel/xanmod-kernel-6.19.12

Package Information

Description:
Linux kernel built with XanMod and Gentoo patches
Homepage:
https://www.kernel.org/ https://xanmod.org/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
6.19.12 8 -* ~amd64
View Raw Ebuild
# Copyright 2022-2026 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

BASE_P=linux-${PV%.*}
PATCH_PV=${PV%_p*}
PATCHSET=linux-gentoo-patches-6.19.6
GENTOO_CONFIG_VER=g18

XANMOD_VERSION="1"

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/${BASE_P}.tar.xz
	https://downloads.sourceforge.net/xanmod/patch-${PATCH_PV}-xanmod${XANMOD_VERSION}.xz
	https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.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}/${BASE_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() {
	local patch
	eapply "${WORKDIR}"/patch-${PATCH_PV}-xanmod${XANMOD_VERSION}
	eapply "${WORKDIR}/${PATCHSET}"

	default

	# add Gentoo patchset version
	local extraversion=${PV#${PATCH_PV}}
	sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die

	# prepare the default config
	case ${ARCH} in
		amd64)
			cp "${S}/CONFIGS/x86_64/config" .config || die
			;;
		*)
			die "Unsupported arch ${ARCH}"
			;;
	esac

	rm "${S}/localversion" || die
	local myversion="-xanmod${XANMOD_VERSION}-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
		"${dist_conf_path}"/6.12+.config
		"${FILESDIR}"/x86-64-v1.config-r1 # keep v1 for simplicity, distribution kernels support user modification.
	)
	use debug || merge_configs+=(
		"${dist_conf_path}"/no-debug.config
	)

	use secureboot && merge_configs+=(
		"${dist_conf_path}/secureboot.config"
		"${dist_conf_path}/zboot.config"
	)

	kernel-build_merge_configs "${merge_configs[@]}"
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-kernel/xanmod-kernel | euse -E <flag> -p sys-kernel/xanmod-kernel | euse -D <flag> -p sys-kernel/xanmod-kernel

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	!sys-kernel/xanmod-kernel-bin:

BDEPEND

	debug? ( dev-util/pahole )

Manifest for 6.19.12

Type File Size Source URLs
DIST gentoo-kernel-config-g18.tar.gz 6087 bytes https://github.com/mgorny/gentoo-kernel-config/archive/g18.tar.gz
DIST patch-6.19.12-xanmod1.xz 1063716 bytes https://downloads.sourceforge.net/xanmod/patch-6.19.12-xanmod1.xz