From e52b01dfe4230c984a1638bc6522a55960e48cb0 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Thu, 12 Nov 2026 02:14:19 +0000 Subject: [PATCH] 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 Signed-off-by: Khem Raj --- meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 2 +- meta-oe/recipes-kernel/cpupower/cpupower.bb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index f13ae4f834..8ec9d9eb1d 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -53,7 +53,7 @@ RDEPENDS:packagegroup-meta-oe = "\ RDEPENDS:packagegroup-meta-oe-benchmarks = "\ bonnie++ \ coremark-pro \ - cpupower \ + cpupower-bench \ dbench \ dhrystone \ fio \ 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])