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>lssndrbarbi...@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 +}