-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zenpower3: add 0.2.0-r1 9999, drop 0.2.0
* update ebuild to use zenstats (mantain fork of zenpower3) * update Makefile patch to work with clang Closes: https://bugs.gentoo.org/947057 Closes: https://bugs.gentoo.org/947153 Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
- Loading branch information
1 parent
1567074
commit 751e858
Showing
7 changed files
with
129 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DIST zenpower3-0.2.0.tar.gz 14019 BLAKE2B ce7d28f2f5f83fc2e44cbc720855816916b6ad6801c7ccdd8845fd385366c8967b0090ed8f94909e4c2488f0f7e11de6dc66f56b2b72dae988325b76014c9004 SHA512 cf4a930dd7a1f8670cee9f364d57acca17c11726c6ff671bdb6209c0f7ea9af1e7c707cd77b20214fdb38a930cfd1e1e0b59c1d9cc738e1bf0fd8e6ee8302a3f | ||
DIST zenpower3-0.2.0.tar.gz 14201 BLAKE2B 6adce14eaf4fba98ba942c55dcf6b277f643eae749eecc10b8709fec1289dbf24d5ab6949b1195f0eda60341a284f3932b44d1ead813ba1f5fb0ec91926a3257 SHA512 27ea8d1937b179257efa6138461dce0b3f038db2fa71fe257f17e216a495e34acf6c5b65a4eb68e9386de747055394cde2fd68ee28d511dcbeecad806f9e25ec |
9 changes: 0 additions & 9 deletions
9
sys-kernel/zenpower3/files/zenpower3-0.2.0-use-symlink-to-detect-kernel-version.patch
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
sys-kernel/zenpower3/files/zenpower3-use-symlink-to-detect-kernel-version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From 580c957c1159e38b3b909504652782acc0317deb Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= | ||
<[email protected]> | ||
Date: Sun, 29 Dec 2024 10:56:13 +0000 | ||
Subject: [PATCH] zenpower3: use KV_FULL to detect kernel version. * fix CFLAGS | ||
for clang | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Signed-off-by: Gonçalo Negrier Duarte <[email protected]> | ||
--- | ||
Makefile | 12 ++++++++---- | ||
1 file changed, 8 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 72c831c..03cbdc3 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1,8 +1,12 @@ | ||
VERSION := 0.2.0 | ||
-TARGET := $(shell uname -r) | ||
+TARGET := ${KV_FULL} | ||
DKMS_ROOT_PATH := /usr/src/zenstats-$(VERSION) | ||
|
||
-KBUILD_CFLAGS += -Wimplicit-fallthrough=3 | ||
+ifeq ($(CC),clang) | ||
+ CXXFLAGS += -Wimplicit-fallthrough | ||
+else ifeq ($(CC),gcc) | ||
+ CXXFLAGS += -Wimplicit-fallthrough=3 | ||
+endif | ||
|
||
KERNEL_MODULES := /lib/modules/$(TARGET) | ||
|
||
-- | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
<email>[email protected]</email> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">Ta180m/zenpower3</remote-id> | ||
<remote-id type="github">Sid127/zenstats</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit linux-mod-r1 | ||
_PN="zenstats" | ||
_P="${_PN}-${PV}" | ||
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs" | ||
HOMEPAGE=" | ||
https://github.com/Sid127/zenstats | ||
https://github.com/ocerman/zenpower | ||
" | ||
|
||
if [[ ${PV} == "9999" ]]; then | ||
inherit git-r3 | ||
# Mantain fork of zenpower3 | ||
EGIT_REPO_URI="https://github.com/Sid127/zenstats" | ||
else | ||
SRC_URI="https://github.com/Sid127/zenstats/archive/v0.1.0.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/zenstats-0.1.0" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
CONFIG_CHECK="HWMON PCI AMD_NB" | ||
|
||
PATCHES="${FILESDIR}/${PN}-use-symlink-to-detect-kernel-version.patch" | ||
|
||
src_compile() { | ||
MODULES_MAKEARGS+=( | ||
TARGET="${KV_FULL}" | ||
) | ||
local modlist=( | ||
${_PN}=kernel/drivers/hwmon:::all | ||
) | ||
linux-mod-r1_src_compile | ||
} | ||
|
||
src_install() { | ||
linux-mod-r1_src_install | ||
dodoc README.md | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit linux-mod-r1 | ||
_PN="zenstats" | ||
_P="${_PN}-${PV}" | ||
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs" | ||
HOMEPAGE=" | ||
https://github.com/Sid127/zenstats | ||
https://github.com/ocerman/zenpower | ||
" | ||
|
||
if [[ ${PV} == "9999" ]]; then | ||
inherit git-r3 | ||
# Mantain fork of zenpower3 | ||
EGIT_REPO_URI="https://github.com/Sid127/zenstats" | ||
else | ||
SRC_URI="https://github.com/Sid127/zenstats/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/${_P}" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
CONFIG_CHECK="HWMON PCI AMD_NB" | ||
|
||
PATCHES="${FILESDIR}/${PN}-use-symlink-to-detect-kernel-version.patch" | ||
|
||
src_compile() { | ||
MODULES_MAKEARGS+=( | ||
TARGET="${KV_FULL}" | ||
) | ||
local modlist=( | ||
${_PN}=kernel/drivers/hwmon:::all | ||
) | ||
linux-mod-r1_src_compile | ||
} | ||
|
||
src_install() { | ||
linux-mod-r1_src_install | ||
dodoc README.md | ||
} |