From d8d4b2b49aff6fd8a95a622355000fdb3182b1f2 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 5 May 2024 09:11:18 -0400 Subject: [PATCH] Add system76-io-module package from khoverlay --- .../files/system76-io+thelio.conf | 2 + .../system76-io-module/files/system76-io.conf | 1 + .../system76-io-module-9999.ebuild | 42 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 app-laptop/system76-io-module/files/system76-io+thelio.conf create mode 100644 app-laptop/system76-io-module/files/system76-io.conf create mode 100644 app-laptop/system76-io-module/system76-io-module-9999.ebuild diff --git a/app-laptop/system76-io-module/files/system76-io+thelio.conf b/app-laptop/system76-io-module/files/system76-io+thelio.conf new file mode 100644 index 0000000..b6ebdc4 --- /dev/null +++ b/app-laptop/system76-io-module/files/system76-io+thelio.conf @@ -0,0 +1,2 @@ +system76-io +system76-thelio-io diff --git a/app-laptop/system76-io-module/files/system76-io.conf b/app-laptop/system76-io-module/files/system76-io.conf new file mode 100644 index 0000000..8242f49 --- /dev/null +++ b/app-laptop/system76-io-module/files/system76-io.conf @@ -0,0 +1 @@ +system76-io diff --git a/app-laptop/system76-io-module/system76-io-module-9999.ebuild b/app-laptop/system76-io-module/system76-io-module-9999.ebuild new file mode 100644 index 0000000..2f081d2 --- /dev/null +++ b/app-laptop/system76-io-module/system76-io-module-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 2020-2022 Bryan Gardiner +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 git-r3 + +DESCRIPTION="System76 I/O Board Driver" +HOMEPAGE="https://github.com/pop-os/system76-io-dkms" + +EGIT_REPO_URI="https://github.com/pop-os/system76-io-dkms.git" +EGIT_BRANCH="master" +EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}" +EGIT_SUBMODULES=( '*' ) + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_compile() { + local modlist=( "system76-io=misc" "system76-thelio-io=misc" ) + local modargs=( "KERNEL_DIR=${KERNEL_DIR}" ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + # The system76-io module is present and loaded on Pop!_OS for darp6 + # in 2020, but it doesn't seem to load on its own on Gentoo. So we + # install a file to ask it to load. + # + # Not sure about system76-thelio-io, but let's have it autoload too. + insinto /usr/lib/modules-load.d + newins "${FILESDIR}/system76-io+thelio.conf" system76-io.conf +}