diff mbox series

[meta-filesystems,02/11] tcmu-runner: Make tcmalloc support a PACKAGECONFIG

Message ID 20261018055605.179605-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,01/11] libbpf: Enable build on riscv32 | expand

Commit Message

Khem Raj Oct. 18, 2026, 5:55 a.m. UTC
gperftools is incompatible with mips, riscv32 and riscv64, which made
tcmu-runner unbuildable there. Make tcmalloc an optional PACKAGECONFIG,
enabled by default, and disable it on those architectures.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb        | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb b/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb
index 3643f87cd3..3a61b92630 100644
--- a/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb
+++ b/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb
@@ -15,16 +15,20 @@  SRC_URI = "git://github.com/open-iscsi/tcmu-runner.git;protocol=https;branch=mai
 
 inherit cmake pkgconfig systemd
 
-DEPENDS = "gtk4 libnl gperftools glib-2.0-native"
+DEPENDS = "gtk4 libnl glib-2.0-native"
 
 EXTRA_OECMAKE = "-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
 		 -Dwith-rbd=false \
 		 -Dwith-glfs=false \
                 "
 
-PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} tcmalloc"
+PACKAGECONFIG:remove:mipsarch = "tcmalloc"
+PACKAGECONFIG:remove:riscv32 = "tcmalloc"
+PACKAGECONFIG:remove:riscv64 = "tcmalloc"
 
 PACKAGECONFIG[systemd] = "-DSUPPORT_SYSTEMD=ON,,"
+PACKAGECONFIG[tcmalloc] = "-Dwith-tcmalloc=ON,-Dwith-tcmalloc=OFF,gperftools"
 
 SYSTEMD_SERVICE:${PN} = "tcmu-runner.service"
 SYSTEMD_AUTO_ENABLE = "enable"