diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-02-09 17:37:39 +0100 |
---|---|---|
committer | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-03-05 02:34:28 +0100 |
commit | 9cd2e39e038305c0ff0935d5263e150b19576fe6 (patch) | |
tree | 4badd9ae6832dc9d8cd7bcc52bb492e37eb32c88 | |
parent | app-misc/spark: initial import (diff) | |
download | guru-9cd2e39e038305c0ff0935d5263e150b19576fe6.tar.gz guru-9cd2e39e038305c0ff0935d5263e150b19576fe6.tar.bz2 guru-9cd2e39e038305c0ff0935d5263e150b19576fe6.zip |
sys-kernel/zenpower3: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
-rw-r--r-- | sys-kernel/zenpower3/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/zenpower3/files/zenpower3-0.2.0-use-symlink-to-detect-kernel-version.patch | 9 | ||||
-rw-r--r-- | sys-kernel/zenpower3/metadata.xml | 11 | ||||
-rw-r--r-- | sys-kernel/zenpower3/zenpower3-0.2.0.ebuild | 37 |
4 files changed, 58 insertions, 0 deletions
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 +} |