<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/power/cpupower/Makefile, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-16T20:41:26Z</updated>
<entry>
<title>cpupower: make systemd unit installation optional</title>
<updated>2026-01-16T20:41:26Z</updated>
<author>
<name>João Marcos Costa</name>
</author>
<published>2026-01-13T13:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7799ba2160e4919913ecabca8a7fc1aa4c576fb4'/>
<id>urn:sha1:7799ba2160e4919913ecabca8a7fc1aa4c576fb4</id>
<content type='text'>
cpupower currently installs a cpupower.service unit file into unitdir
unconditionally, regardless of whether systemd is used by the host.

Improve the installation procedure by making this systemd step optional:
a 'SYSTEMD' build parameter that defaults to 'true' and can be set to
'false' to disable the installation of systemd's unit file.

Since 'SYSTEMD' defaults to true, the current behavior is kept as the
default.

Link: https://lore.kernel.org/r/20260113132753.1730020-2-joaomarcos.costa@bootlin.com
Signed-off-by: João Marcos Costa &lt;joaomarcos.costa@bootlin.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools/power/cpupower: Support building libcpupower statically</title>
<updated>2025-11-05T16:56:01Z</updated>
<author>
<name>Zuo An</name>
</author>
<published>2025-10-24T05:46:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=059835bbfa282918a1e8e5e2d9628aa600093052'/>
<id>urn:sha1:059835bbfa282918a1e8e5e2d9628aa600093052</id>
<content type='text'>
The cpupower Makefile built and installed libcpupower as a shared
library (libcpupower.so) without passing `STATIC=true`, but did not
build a static version of the library even with `STATIC=true`. (Only the
programs were static). Thus, out-of-tree programs using libcpupower
were unable to link statically against the library without having access
to intermediate object files produced during the build.

This fixes that situation by ensuring that libcpupower.a is built and
installed when `STATIC=true` is specified.

Link: https://lore.kernel.org/r/x7geegquiks3zndiavw2arihdc2rk7e2dx3lk7yxkewqii6zpg@tzjijqxyzwmu
Signed-off-by: Zuo An &lt;zuoan.penguin@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: split unitdir from libdir in Makefile</title>
<updated>2025-06-09T16:17:46Z</updated>
<author>
<name>Francesco Poli (wintermute)</name>
</author>
<published>2025-05-21T21:14:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e044b8a9545cd8265c7110c179aeec2624c16455'/>
<id>urn:sha1:e044b8a9545cd8265c7110c179aeec2624c16455</id>
<content type='text'>
Improve the installation procedure for the systemd service unit
'cpupower.service', to be more flexible. Some distros install libraries
to /usr/lib64/, but systemd service units have to be installed to
/usr/lib/systemd/system: as a consequence, the installation procedure
should not assume that systemd service units can be installed to
${libdir}/systemd/system ...
Define a dedicated variable ("unitdir") in the Makefile.

Link: https://lore.kernel.org/linux-pm/260b6d79-ab61-43b7-a0eb-813e257bc028@leemhuis.info/T/#m0601940ab439d5cbd288819d2af190ce59e810e6

Fixes: 9c70b779ad91 ("cpupower: add a systemd service to run cpupower")

Link: https://lore.kernel.org/r/20250521211656.65646-1-invernomuto@paranoici.org
Signed-off-by: Francesco Poli (wintermute) &lt;invernomuto@paranoici.org&gt;
Tested-by: Thorsten Leemhuis &lt;linux@leemhuis.info&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: do not install files to /etc/default/</title>
<updated>2025-05-13T22:06:28Z</updated>
<author>
<name>Francesco Poli (wintermute)</name>
</author>
<published>2025-05-13T16:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e5174365c13246ed8fd2d40900edec37be6f7a34'/>
<id>urn:sha1:e5174365c13246ed8fd2d40900edec37be6f7a34</id>
<content type='text'>
Improve the installation procedure for the systemd service unit
'cpupower.service', to be more distro-agnostic. Do not install the
service unit configuration file to /etc/default/ (a directory that
is used by Debian and Debian-derivatives and only rarely by other
distros).

Also, clarify the role of the configuration file in its own comments.

Link: https://lore.kernel.org/linux-pm/20250509002206.bd2519ba52035d47c3c32aa6@paranoici.org/T/#ma8a3fa80acc4036af6c754e8ecabacc55b288ad1

Link: https://lore.kernel.org/r/20250513163937.61062-5-invernomuto@paranoici.org
Fixes: 9c70b779ad91 ("cpupower: add a systemd service to run cpupower")
Signed-off-by: Francesco Poli (wintermute) &lt;invernomuto@paranoici.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: do not call systemctl at install time</title>
<updated>2025-05-13T22:06:22Z</updated>
<author>
<name>Francesco Poli (wintermute)</name>
</author>
<published>2025-05-13T16:29:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4edef850a15c761039a50c119dbc8769b08ca45b'/>
<id>urn:sha1:4edef850a15c761039a50c119dbc8769b08ca45b</id>
<content type='text'>
Fix the installation procedure for the systemd service unit
'cpupower.service'. Do not call "systemctl daemon-reload" in the
Makefile, but explain when this command should be manually issued
in the README file.

Link: https://lore.kernel.org/linux-pm/20250509002206.bd2519ba52035d47c3c32aa6@paranoici.org/T/#mfbb938f9c0d5a21173acb92a061eb9205fd0abfe

Link: https://lore.kernel.org/r/20250513163937.61062-4-invernomuto@paranoici.org
Fixes: 9c70b779ad91 ("cpupower: add a systemd service to run cpupower")
Signed-off-by: Francesco Poli (wintermute) &lt;invernomuto@paranoici.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: do not write DESTDIR to cpupower.service</title>
<updated>2025-05-13T22:06:12Z</updated>
<author>
<name>Francesco Poli (wintermute)</name>
</author>
<published>2025-05-13T16:29:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a0eaa78ff4aa09d3a70f4bdcff13f5efe0f5861'/>
<id>urn:sha1:2a0eaa78ff4aa09d3a70f4bdcff13f5efe0f5861</id>
<content type='text'>
Fix the use of DESTDIR variable in the Makefile, as far as the
installation of the systemd service unit 'cpupower.service' is
concerned.

This was caused by a misunderstanding about the purpose of the DESTDIR
variable in the Makefile, which is instead meant to support staged
installations: its value should not end up into installed file contents.

Link: https://lore.kernel.org/linux-pm/20250509002206.bd2519ba52035d47c3c32aa6@paranoici.org/T/#mfbb938f9c0d5a21173acb92a061eb9205fd0abfe
Link: https://www.gnu.org/prep/standards/html_node/DESTDIR.html

Link: https://lore.kernel.org/r/20250513163937.61062-3-invernomuto@paranoici.org
Fixes: 9c70b779ad91 ("cpupower: add a systemd service to run cpupower")
Signed-off-by: Francesco Poli (wintermute) &lt;invernomuto@paranoici.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: add a systemd service to run cpupower</title>
<updated>2025-05-02T19:52:45Z</updated>
<author>
<name>Francesco Poli (wintermute)</name>
</author>
<published>2025-04-25T15:07:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c70b779ad91604dbfcfcde90c292797cb1ff352'/>
<id>urn:sha1:9c70b779ad91604dbfcfcde90c292797cb1ff352</id>
<content type='text'>
One of the most typical use cases of the 'cpupower' utility works as
follows: run 'cpupower' at boot with the desired command-line options
and then forget about it.

Add a systemd service (disabled by default) that automates this use
case (for environments where the initialization system is 'systemd'),
by running 'cpupower' at boot with the settings read from a default
configuration file.

The systemd service, the associated support script and the
corresponding default configuration file are derived from what is
provided by the Arch Linux package (under "GPL-2.0-or-later" terms),
modernized and enhanced in various ways (the script has also been
checked with 'shellcheck').

Link: https://gitlab.archlinux.org/archlinux/packaging/packages/linux-tools/-/tree/dd2e2a311e05413d0d87a0346ffce8c7e98d6d2b

Signed-off-by: Francesco Poli (wintermute) &lt;invernomuto@paranoici.org&gt;
Reviewed-by: John B. Wyatt IV &lt;jwyatt@redhat.com&gt;
Reviewed-by: John B. Wyatt IV &lt;sageofredondo@gmail.com&gt;
Tested-by: John B. Wyatt IV &lt;jwyatt@redhat.com&gt;
Tested-by: John B. Wyatt IV &lt;sageofredondo@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Make lib versioning scheme more obvious and fix version link</title>
<updated>2025-03-07T20:58:10Z</updated>
<author>
<name>Thomas Renninger</name>
</author>
<published>2025-03-07T09:43:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fffadbdd6b5acdb6390d6d0bc3ad6d3da5d2bd53'/>
<id>urn:sha1:fffadbdd6b5acdb6390d6d0bc3ad6d3da5d2bd53</id>
<content type='text'>
library versioning was broken:
libcpupower.so.0.0.1
libcpupower.so -&gt; libcpupower.so.0.0.1
libcpupower.so.1 -&gt; libcpupower.so.0.0.1

and is fixed by this patch to:
libcpupower.so.1.0.1
libcpupower.so -&gt; libcpupower.so.1.0.1
libcpupower.so.1 -&gt; libcpupower.so.1.0.1

Link: https://lore.kernel.org/r/20250307094334.39587-1-trenn@suse.de
Signed-off-by: Thomas Renninger &lt;trenn@suse.de&gt;
Signed-off-by: Shuah Khan &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>pm: cpupower: Makefile: Fix cross compilation</title>
<updated>2024-12-10T00:51:53Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2024-11-29T01:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3075476a7af666de3ec10b4f35d8e62db8fd5b6d'/>
<id>urn:sha1:3075476a7af666de3ec10b4f35d8e62db8fd5b6d</id>
<content type='text'>
After commit f79473ed9220 ("pm: cpupower: Makefile: Allow overriding
cross-compiling env params") we would fail to cross compile cpupower in
buildroot which uses the recipe at [1] where only the CROSS variable is
being set.

The issue here is the use of the lazy evaluation for all variables: CC,
LD, AR, STRIP, RANLIB, rather than just CROSS.

[1]:
https://git.buildroot.net/buildroot/tree/package/linux-tools/linux-tool-cpupower.mk.in

Fixes: f79473ed9220 ("pm: cpupower: Makefile: Allow overriding cross-compiling env params")
Reported-by: Florian Fainelli &lt;florian.fainelli@broadcom.com&gt;
Closes: https://lore.kernel.org/all/2bbabd2c-24ef-493c-a199-594e5dada3da@broadcom.com/
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Tested-by: Florian Fainelli &lt;florian.fainelli@broadcom.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: add checks for xgettext and msgfmt</title>
<updated>2024-10-21T22:10:43Z</updated>
<author>
<name>Siddharth Menon</name>
</author>
<published>2024-10-18T04:52:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47d7650b9cb10381e5472840cf180a803f61fb0e'/>
<id>urn:sha1:47d7650b9cb10381e5472840cf180a803f61fb0e</id>
<content type='text'>
Check whether xgettext and msgfmt are available on the system before
attempting to generate GNU gettext Language Translations.
In case of missing dependency, generate error message directing user
to install the necessary package.

Tested-by: John B. Wyatt IV &lt;jwyatt@redhat.com&gt;
Tested-by: John B. Wyatt IV &lt;sageofredondo@gmail.com&gt;
Suggested-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
Signed-off-by: Siddharth Menon &lt;simeddon@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
</feed>
