gentoo-linux-surface-overlay/sys-kernel/gentoo-surface-sources/gentoo-surface-sources-5.13.7.ebuild

75 lines
3.1 KiB
Bash
Raw Normal View History

2021-08-02 10:16:22 -07:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2021-08-04 11:03:06 -07:00
EAPI="7"
2021-08-02 10:16:22 -07:00
ETYPE="sources"
K_WANT_GENPATCHES="base extras experimental"
2021-08-02 10:22:13 -07:00
K_GENPATCHES_VER="9"
2021-08-02 10:16:22 -07:00
inherit kernel-2
detect_version
detect_arch
2021-08-04 11:03:06 -07:00
KEYWORDS="~amd64 ~x86"
HOMEPAGE="https://github.com/sifive/meta-sifive"
2021-08-02 10:16:22 -07:00
IUSE="experimental"
2021-08-04 12:08:22 -07:00
EXTRAVERSION="-${PN}"
2021-08-04 11:03:06 -07:00
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and surface patches"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
2021-08-04 12:42:02 -07:00
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0001-surface3-oemb.patch -> ${KV_FULL}-0001-surface3-oemb.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0002-mwifiex.patch -> ${KV_FULL}-0002-mwifiex.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0003-ath10k.patch -> ${KV_FULL}-0003-ath10k.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0004-ipts.patch -> ${KV_FULL}-0004-ipts.patch
2021-08-04 12:37:16 -07:00
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0005-surface-sam-over-hid.patch -> ${KV_FULL}-0005-surface-sam-over-hid.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0006-surface-sam.patch -> ${KV_FULL}-0006-surface-sam.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0007-surface-hotplug.patch -> ${KV_FULL}-0007-surface-hotplug.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0008-surface-typecover.patch -> ${KV_FULL}-0008-surface-typecover.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0009-cameras.patch -> ${KV_FULL}-0009-cameras.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0010-amd-gpio.patch -> ${KV_FULL}-0010-amd-gpio.patch
https://raw.githubusercontent.com/linux-surface/linux-surface/master/patches/5.13/0011-amd-s0ix.patch -> ${KV_FULL}-0011-amd-s0ix.patch
2021-08-04 11:03:06 -07:00
"
2021-08-04 09:57:27 -07:00
2021-08-04 12:18:33 -07:00
src_unpack() {
2021-08-04 12:04:08 -07:00
kernel-2_src_unpack
unpack_set_extraversion
2021-08-04 12:18:33 -07:00
}
src_prepare() {
2021-08-04 11:03:06 -07:00
local SURFACE_PATCH
local SURFACE_PATCHES="
2021-08-04 12:40:13 -07:00
${KV_FULL}-0001-surface3-oemb.patch
${KV_FULL}-0002-mwifiex.patch
${KV_FULL}-0003-ath10k.patch
${KV_FULL}-0004-ipts.patch
${KV_FULL}-0005-surface-sam-over-hid.patch
${KV_FULL}-0006-surface-sam.patch
${KV_FULL}-0007-surface-hotplug.patch
${KV_FULL}-0008-surface-typecover.patch
${KV_FULL}-0009-cameras.patch
${KV_FULL}-0010-amd-gpio.patch
${KV_FULL}-0011-amd-s0ix.patch"
2021-08-02 10:16:22 -07:00
2021-08-04 08:57:59 -07:00
2021-08-04 11:03:06 -07:00
local SURFACE_PATH="${DISTDIR}"
for SURFACE_PATCH in $SURFACE_PATCHES
do
eapply "${SURFACE_PATH}/${SURFACE_PATCH}"
done
eapply_user
2021-08-04 12:37:16 -07:00
2021-08-04 12:52:21 -07:00
cp "${FILES}/config-${KV_FULL}" "${WORKDIR}/linux-${KV_FULL}/EXAMPLE.config"
2021-08-04 12:37:16 -07:00
mv "${WORKDIR}/linux-${KV_FULL}" "${WORKDIR}/linux-${KV_FULL}-surface"
S="${WORKDIR}/linux-${KV_FULL}-surface"
2021-08-02 10:16:22 -07:00
}
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}