@@ -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"
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(-)