[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 4/4] app-admin/ryzen_smu: migrate to linux-mod-r1
From:       Ionen Wolkens <ionen () gentoo ! org>
Date:       2023-05-26 4:02:19
Message-ID: 20230526040219.10852-5-ionen () gentoo ! org
[Download RAW message or body]

Randomly migrating myself as a very simple migration example (don't
actually use this, no hardware). Notably makes the CC_IS_CLANG checks
from the old ebuild unnecessary.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
---
 .../ryzen_smu-0.1.2_p20211205-r1.ebuild       | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild

diff --git a/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild \
b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild new file mode 100644
index 000000000000..f1b8625e5b94
--- /dev/null
+++ b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="Kernel driver for AMD Ryzen's System Management Unit"
+HOMEPAGE="https://github.com/leogx9r/ryzen_smu"
+SRC_URI="https://dev.gentoo.org/~slashbeast/distfiles/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_compile() {
+	local modlist=( ryzen_smu )
+	local modargs=( KERNEL_BUILD="${KV_OUT_DIR}" )
+
+	linux-mod-r1_src_compile
+}
+
+src_install() {
+	linux-mod-r1_src_install
+
+	insinto /usr/lib/modules-load.d
+	doins "${FILESDIR}"/ryzen_smu.conf
+}
-- 
2.40.1


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic