mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
sys-kernel/zenpower3: update EAPI 7 -> 8; migrate linux-mod -> linux-mod-r1
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
--- 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)
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
# Copyright 2020-2022 Gentoo Authors
|
# Copyright 2020-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
|
|
||||||
inherit linux-info linux-mod
|
inherit linux-info linux-mod-r1
|
||||||
|
|
||||||
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
|
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
|
||||||
HOMEPAGE="https://github.com/Ta180m/zenpower3"
|
HOMEPAGE="https://github.com/Ta180m/zenpower3"
|
||||||
@@ -18,20 +18,18 @@ DEPEND=""
|
|||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND=""
|
BDEPEND=""
|
||||||
|
|
||||||
PATCHES="${FILESDIR}/${P}-use-symlink-to-detect-kernel-version.patch"
|
|
||||||
|
|
||||||
CONFIG_CHECK="HWMON PCI AMD_NB"
|
CONFIG_CHECK="HWMON PCI AMD_NB"
|
||||||
|
|
||||||
BUILD_TARGETS="modules"
|
|
||||||
MODULE_NAMES="zenpower(misc:${S})"
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
export KV_FULL
|
export KERNELVERSION=${KV_FULL}
|
||||||
linux-mod_src_compile
|
local modlist=(
|
||||||
|
zenpower=misc:::all
|
||||||
|
)
|
||||||
|
linux-mod-r1_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
linux-mod_src_install
|
linux-mod-r1_src_install
|
||||||
dobin zp_read_debug.sh
|
dobin zp_read_debug.sh
|
||||||
dodoc README.md
|
dodoc README.md
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user