dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / sys-kernel / zenpower3 / zenpower3-0.2.0.ebuild
blob1294b3edd9e52f098421457d648cd98f1f0cc570
1 # Copyright 2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit linux-mod-r1
8 DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
9 HOMEPAGE="https://git.exozy.me/a/zenpower3"
11 if [[ ${PV} == 9999 ]] ; then
12 EGIT_REPO_URI="https://git.exozy.me/a/zenpower3.git"
13 inherit git-r3
14 unset MODULES_KERNEL_MAX
15 else
16 SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 S="${WORKDIR}/${PN}"
18 KEYWORDS="~amd64"
21 LICENSE="GPL-2"
22 SLOT="0"
24 CONFIG_CHECK="HWMON PCI AMD_NB"
25 MODULES_KERNEL_MIN=5.3.4
27 src_compile() {
28 local modlist=(
29 zenpower
31 local modargs=( TARGET="${KV_FULL}" KERNEL_BUILD="${KV_OUT_DIR}" )
32 linux-mod-r1_src_compile
35 pkg_postinst() {
36 linux-mod-r1_pkg_postinst
38 elog ""
39 elog "To use zenpower, please disable k10temp first"
40 elog "see https://git.exozy.me/a/zenpower3#module-activation"