diff mbox series

[meta-oe] cpupower: Move cpufreq-bench into its own package

Message ID 20261112014818.3600049-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe] cpupower: Move cpufreq-bench into its own package | expand

Commit Message

Khem Raj Nov. 12, 2026, 1:48 a.m. UTC
Only cpufreq-bench_plot.sh needs bash; the cpupower tool, library and
the /usr/libexec/cpupower helper used by the systemd service are a
binary and a POSIX sh script. Split cpufreq-bench, its plot script and
config into ${PN}-bench and move the bash runtime dependency there, so
installing cpupower no longer pulls in bash.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Cc: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
---
 meta-oe/recipes-kernel/cpupower/cpupower.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Ricardo Salveti Nov. 12, 2026, 1:50 a.m. UTC | #1
Hi,

On Wed, Nov 11, 2026 at 10:48 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> Only cpufreq-bench_plot.sh needs bash; the cpupower tool, library and
> the /usr/libexec/cpupower helper used by the systemd service are a
> binary and a POSIX sh script. Split cpufreq-bench, its plot script and
> config into ${PN}-bench and move the bash runtime dependency there, so
> installing cpupower no longer pulls in bash.

Just sent a similar one, which also changes the packagegroup, feel
free to pick any :-)

Thanks,

Ricardo
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/cpupower/cpupower.bb b/meta-oe/recipes-kernel/cpupower/cpupower.bb
index a8cdf1bf0a..789df415fe 100644
--- a/meta-oe/recipes-kernel/cpupower/cpupower.bb
+++ b/meta-oe/recipes-kernel/cpupower/cpupower.bb
@@ -27,11 +27,12 @@  do_install() {
 }

 PACKAGE_ARCH = "${MACHINE_ARCH}"
-PACKAGES =+ "${PN}-systemd"
+PACKAGES =+ "${PN}-bench ${PN}-systemd"

+FILES:${PN}-bench = "${sbindir}/cpufreq-bench ${bindir}/cpufreq-bench_plot.sh ${sysconfdir}/cpufreq-bench.conf"
 FILES:${PN}-systemd = "${sysconfdir}/cpupower-service.conf ${systemd_system_unitdir}"

-RDEPENDS:${PN} = "bash"
+RDEPENDS:${PN}-bench = "bash"

 python do_package:prepend() {
     d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])