cpupower: split cpufreq-bench into cpupower-bench

The kernel's cpupower Makefile builds cpufreq-bench by default and
installs its cpufreq-bench_plot.sh helper, a bash script, into
${bindir}. That makes the whole cpupower package RDEPEND on bash,
which pulls bash into images that only want the cpupower tool, such
as busybox based initramfs images.

Move cpufreq-bench, its plot script and its configuration file to
cpupower-bench and carry the bash dependency there. Images that use
cpufreq-bench now need to install cpupower-bench, so switch the
benchmarks packagegroup to it.

AI-Generated: Uses Claude Code
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Ricardo Salveti authored and Khem Raj committed 2026-11-11 18:20:13 -08:00
1 parent 1fe53601f7
commit e52b01dfe4
2 files changed
+4 -3

No files matched your search

@@ -53,7 +53,7 @@ RDEPENDS:packagegroup-meta-oe = "\
RDEPENDS:packagegroup-meta-oe-benchmarks = "\
bonnie++ \
coremark-pro \
cpupower \
cpupower-bench \
dbench \
dhrystone \
fio \
+3 -2
View File
@@ -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])