sys-kernel/surface-sources - 7.2.13 (linux-surface)

Search

Install

Install this version:

emerge -a =sys-kernel/surface-sources-7.2.13

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

autounmask =sys-kernel/surface-sources-7.2.13

Or alternatively:

emerge --autounmask-write -a =sys-kernel/surface-sources-7.2.13

Package Information

Description:
Full sources including the Gentoo patchset and Surface patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree
Homepage:
https://github.com/linux-surface/linux-surface

Ebuild Details

Version EAPI Keywords Slot
7.2.13 8 ~amd64 ~x86 ~arm64
View Raw Ebuild
EAPI="8"
ETYPE="sources"
K_SECURITY_UNSUPPORTED="1"
K_WANT_GENPATCHES="base extras experimental"
K_GENPATCHES_VER="14"

inherit check-reqs kernel-2
detect_version
detect_arch

DESCRIPTION="Full sources including the Gentoo patchset and Surface patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
HOMEPAGE="https://github.com/linux-surface/linux-surface"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
KEYWORDS="~amd64 ~x86 ~arm64"
IUSE="experimental"

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

src_prepare() {
	eapply "${FILESDIR}/7.2/0001-secureboot.patch"
	eapply "${FILESDIR}/7.2/0002-surface3.patch"
	eapply "${FILESDIR}/7.2/0003-mwifiex.patch"
	eapply "${FILESDIR}/7.2/0004-ath10k.patch"
	eapply "${FILESDIR}/7.2/0005-ipts.patch"
	eapply "${FILESDIR}/7.2/0006-ithc.patch"
	eapply "${FILESDIR}/7.2/0007-surface-sam.patch"
	eapply "${FILESDIR}/7.2/0008-surface-sam-over-hid.patch"
	eapply "${FILESDIR}/7.2/0009-surface-button.patch"
	eapply "${FILESDIR}/7.2/0010-surface-typecover.patch"
	eapply "${FILESDIR}/7.2/0011-surface-shutdown.patch"
	eapply "${FILESDIR}/7.2/0012-surface-gpe.patch"
	eapply "${FILESDIR}/7.2/0013-cameras.patch"
	eapply "${FILESDIR}/7.2/0014-amd-gpio.patch"
	eapply "${FILESDIR}/7.2/0015-hid-surface.patch"
	eapply_user
	kernel-2_src_prepare
	rm "${S}/tools/testing/selftests/tc-testing/action-ebpf"
}

pkg_setup() {
	ewarn ""
	ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
	ewarn "If you need support, please contact the overlay developers directly."
	ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
	ewarn "the ebuilds. Thank you."
	ewarn ""
}

pkg_postinst() {
	kernel-2_pkg_postinst
	einfo "For more info on this patchset, see:"
	einfo "${HOMEPAGE}"
}

pkg_postrm() {
	kernel-2_pkg_postrm
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses