You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- common : Common component for zenergy kernel modules
14
16
- current : AMD Zen energy driver for the linux-current kernel
15
17
description: |
16
18
Based on AMD_ENERGY driver, modified so non-root users can read it safely. Exposes the energy counters that are reported via the Running Average Power Limit (RAPL) Model-specific Registers (MSRs) through the hardware monitor (HWMON) sysfs interface.
@@ -19,31 +21,38 @@ builddeps :
19
21
- linux-current-headers
20
22
- linux-lts
21
23
- linux-lts-headers
22
-
patterns:
24
+
rundeps :
23
25
- current :
24
-
- /usr/lib64/modules/*.current
26
+
- zenergy-common
27
+
- zenergy-common
28
+
environment: |
29
+
kernels=(
30
+
%kernel_version_current%
31
+
%kernel_version_lts%
32
+
)
25
33
setup : |
26
-
# Prep build dirs for each kernel version
27
-
pushd ../
28
-
for KVER in %kernel_version_lts% %kernel_version_current%
29
-
do
30
-
cp -ra "zenergy-%version%" ${KVER}-build
31
-
done
32
-
popd
34
+
pushd ..
35
+
36
+
for _kernel in "${kernels[@]}"; do
37
+
cp -a "zenergy-${version}" "${_kernel}"
38
+
done
33
39
build : |
34
-
for KVER in %kernel_version_lts% %kernel_version_current%
35
-
do
36
-
pushd ${KVER}-build
37
-
%make KDIR=/usr/lib64/modules/$KVER/build
38
-
popd
40
+
for _kernel in "${kernels[@]}"; do
41
+
pushd "${_kernel}"
42
+
%make KDIR="%libdir%/modules/${_kernel}/build"
43
+
popd
39
44
done
40
45
install : |
41
-
for KVER in %kernel_version_lts% %kernel_version_current%
<Descriptionxml:lang="en">Based on AMD_ENERGY driver, modified so non-root users can read it safely. Exposes the energy counters that are reported via the Running Average Power Limit (RAPL) Model-specific Registers (MSRs) through the hardware monitor (HWMON) sysfs interface.
<Summaryxml:lang="en">Common component for zenergy kernel modules</Summary>
32
+
<Descriptionxml:lang="en">Based on AMD_ENERGY driver, modified so non-root users can read it safely. Exposes the energy counters that are reported via the Running Average Power Limit (RAPL) Model-specific Registers (MSRs) through the hardware monitor (HWMON) sysfs interface.
<Descriptionxml:lang="en">Based on AMD_ENERGY driver, modified so non-root users can read it safely. Exposes the energy counters that are reported via the Running Average Power Limit (RAPL) Model-specific Registers (MSRs) through the hardware monitor (HWMON) sysfs interface.
0 commit comments