From: "Ronny Gutbrod" <gentoo@tastytea.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/zenpower3/, sys-kernel/zenpower3/files/
Date: Mon, 7 Mar 2022 15:15:34 +0000 (UTC) [thread overview]
Message-ID: <1646444068.9cd2e39e038305c0ff0935d5263e150b19576fe6.tastytea@gentoo> (raw)
commit: 9cd2e39e038305c0ff0935d5263e150b19576fe6
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Feb 9 16:37:39 2022 +0000
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Sat Mar 5 01:34:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9cd2e39e
sys-kernel/zenpower3: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-kernel/zenpower3/Manifest | 1 +
....2.0-use-symlink-to-detect-kernel-version.patch | 9 ++++++
sys-kernel/zenpower3/metadata.xml | 11 +++++++
sys-kernel/zenpower3/zenpower3-0.2.0.ebuild | 37 ++++++++++++++++++++++
4 files changed, 58 insertions(+)
diff --git a/sys-kernel/zenpower3/Manifest b/sys-kernel/zenpower3/Manifest
new file mode 100644
index 000000000..c3cebb41a
--- /dev/null
+++ b/sys-kernel/zenpower3/Manifest
@@ -0,0 +1 @@
+DIST zenpower3-0.2.0.tar.gz 14019 BLAKE2B ce7d28f2f5f83fc2e44cbc720855816916b6ad6801c7ccdd8845fd385366c8967b0090ed8f94909e4c2488f0f7e11de6dc66f56b2b72dae988325b76014c9004 SHA512 cf4a930dd7a1f8670cee9f364d57acca17c11726c6ff671bdb6209c0f7ea9af1e7c707cd77b20214fdb38a930cfd1e1e0b59c1d9cc738e1bf0fd8e6ee8302a3f
diff --git a/sys-kernel/zenpower3/files/zenpower3-0.2.0-use-symlink-to-detect-kernel-version.patch b/sys-kernel/zenpower3/files/zenpower3-0.2.0-use-symlink-to-detect-kernel-version.patch
new file mode 100644
index 000000000..07414cd71
--- /dev/null
+++ b/sys-kernel/zenpower3/files/zenpower3-0.2.0-use-symlink-to-detect-kernel-version.patch
@@ -0,0 +1,9 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ VERSION := 0.2.0
+-TARGET := $(shell uname -r)
++TARGET := $(KV_FULL)
+ DKMS_ROOT_PATH := /usr/src/zenpower-$(VERSION)
+
+ KERNEL_MODULES := /lib/modules/$(TARGET)
diff --git a/sys-kernel/zenpower3/metadata.xml b/sys-kernel/zenpower3/metadata.xml
new file mode 100644
index 000000000..821a15aeb
--- /dev/null
+++ b/sys-kernel/zenpower3/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Ta180m/zenpower3</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
new file mode 100644
index 000000000..b008c6591
--- /dev/null
+++ b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info linux-mod
+
+DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
+HOMEPAGE="https://github.com/Ta180m/zenpower3"
+SRC_URI="https://github.com/Ta180m/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+PATCHES="${FILESDIR}/${P}-use-symlink-to-detect-kernel-version.patch"
+
+CONFIG_CHECK="HWMON PCI AMD_NB"
+
+BUILD_TARGETS="modules"
+MODULE_NAMES="zenpower(kernel/drivers/hwmon:${S})"
+
+src_compile() {
+ export KV_FULL
+ linux-mod_src_compile
+}
+
+src_install() {
+ linux-mod_src_install
+ dobin zp_read_debug.sh
+ dodoc README.md
+}
next reply other threads:[~2022-03-07 15:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-07 15:15 Ronny Gutbrod [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-26 19:23 [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/zenpower3/, sys-kernel/zenpower3/files/ David Roman
2024-12-28 20:08 Florian Schmaus
2024-12-28 20:08 Florian Schmaus
2024-12-29 17:49 Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1646444068.9cd2e39e038305c0ff0935d5263e150b19576fe6.tastytea@gentoo \
--to=gentoo@tastytea.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox