pentoo-overlay/sys-kernel/pentoo-sources/pentoo-sources-5.6.6.ebuild
Rick Farina (Zero_Chaos) 8c1181e817
pentoo-sources: update
2020-04-21 15:20:15 -04:00

61 lines
1.9 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
ETYPE="sources"
K_WANT_GENPATCHES="base extras experimental"
K_GENPATCHES_VER="9"
inherit kernel-2
detect_version
detect_arch
#virtualbox-modules and rtl8812au drivers are still broken
#KEYWORDS="amd64 x86"
HOMEPAGE="https://github.com/pentoo/pentoo-livecd/tree/master/kernel/"
IUSE="experimental pax_kernel pentoo-experimental"
DESCRIPTION="Pentoo kernel sources (kernel series ${KV_MAJOR}.${KV_MINOR})"
#normal penpatches
PENPATCHES_VER="1"
PENPATCHES="penpatches-5.3.8-${PENPATCHES_VER}.tar.xz"
PENPATCHES_URI="https://dev.pentoo.ch/~zero/distfiles/${PENPATCHES}"
#experimental penpatches
PENPATCHES_EXP_VER="2"
PENPATCHES_EXP="penpatches-experimental-5.3.8-${PENPATCHES_EXP_VER}.tar.xz"
PENPATCHES_EXP_URI="https://dev.pentoo.ch/~zero/distfiles/${PENPATCHES_EXP}"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${PENPATCHES_URI} ${PENPATCHES_EXP_URI}"
#these three got merged
UNIPATCH_EXCLUDE="4001-mt76-mt76u-rely-on-usb_interface-instead-of-usb_dev.patch 4006_mt76-mt76x0u-add-support-to-TP-Link-T2UHP.diff 4007_v2-cfg80211-use-parallel_ops-for-genl.patch"
UNIPATCH_LIST="${DISTDIR}/${PENPATCHES}"
pkg_setup() {
if use pax_kernel; then
die "pax_kernel is no longer available, you MUST ensure the use flag is no longer set"
fi
}
src_unpack() {
use pentoo-experimental && UNIPATCH_LIST+=" ${DISTDIR}/${PENPATCHES_EXP}"
kernel-2_src_unpack
}
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
ewarn "It may be desired to download the official pentoo kernel config from here:"
if use amd64; then
ewarn "https://raw.githubusercontent.com/pentoo/pentoo-livecd/master/livecd/amd64/kernel/config-${PV}"
fi
if use x86; then
ewarn "https://raw.githubusercontent.com/pentoo/pentoo-livecd/master/livecd/x86/kernel/config-${PV}"
fi
}
pkg_postrm() {
kernel-2_pkg_postrm
}