diff options
author | Nick Sarnie <sarnex@gentoo.org> | 2023-06-19 15:09:46 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2023-06-19 15:13:05 -0400 |
commit | 91ec01b6dba1555f2ada95a63ac2b3d7b2d31885 (patch) | |
tree | ab0beeb3765f63e49e1c16beccd052640e988c40 /app-emulation | |
parent | dev-cpp/taskflow: update keyword list in live ebuild (diff) | |
download | gentoo-91ec01b6dba1555f2ada95a63ac2b3d7b2d31885.tar.gz gentoo-91ec01b6dba1555f2ada95a63ac2b3d7b2d31885.tar.bz2 gentoo-91ec01b6dba1555f2ada95a63ac2b3d7b2d31885.zip |
app-emulation/vendor-reset: Port to linux-mod-r1
Closes: https://bugs.gentoo.org/908696
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205-r1.ebuild | 39 | ||||
-rw-r--r-- | app-emulation/vendor-reset/vendor-reset-9999.ebuild | 18 |
2 files changed, 47 insertions, 10 deletions
diff --git a/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205-r1.ebuild b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205-r1.ebuild new file mode 100644 index 000000000000..81c03b66a2bf --- /dev/null +++ b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/gnif/vendor-reset.git" + EGIT_BRANCH="master" + inherit git-r3 +else + KEYWORDS="~amd64" + EGIT_COMMIT="4b466e92a2d9f76ce1082cde982c7be0be91e248" + SRC_URI="https://github.com/gnif/vendor-reset/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="Linux kernel vendor specific hardware reset module" +HOMEPAGE="https://github.com/gnif/vendor-reset" +LICENSE="GPL-2" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +CONFIG_CHECK="FTRACE KPROBES PCI_QUIRKS KALLSYMS FUNCTION_TRACER" + +src_compile() { + local modlist=( vendor-reset=extra ) + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + insinto /etc/modules-load.d/ + newins "${FILESDIR}"/modload.conf vendor-reset.conf +} diff --git a/app-emulation/vendor-reset/vendor-reset-9999.ebuild b/app-emulation/vendor-reset/vendor-reset-9999.ebuild index b82d5b15ad5c..c02b2add3f0b 100644 --- a/app-emulation/vendor-reset/vendor-reset-9999.ebuild +++ b/app-emulation/vendor-reset/vendor-reset-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit linux-mod toolchain-funcs +inherit linux-mod-r1 if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="https://github.com/gnif/vendor-reset.git" @@ -23,17 +23,15 @@ SLOT="0" DEPEND="" RDEPEND="${DEPEND}" -MODULE_NAMES="vendor-reset(extra)" +CONFIG_CHECK="FTRACE KPROBES PCI_QUIRKS KALLSYMS FUNCTION_TRACER" -pkg_setup() { - local CONFIG_CHECK="FTRACE KPROBES PCI_QUIRKS KALLSYMS FUNCTION_TRACER" - linux-mod_pkg_setup - BUILD_TARGETS="build" - BUILD_PARAMS="CC=\"$(tc-getBUILD_CC)\" KDIR=${KERNEL_DIR}" +src_compile() { + local modlist=( vendor-reset=extra ) + linux-mod-r1_src_compile } src_install() { - linux-mod_src_install + linux-mod-r1_src_install insinto /etc/modules-load.d/ newins "${FILESDIR}"/modload.conf vendor-reset.conf |