mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 08:08:29 +00:00
tcmu-runner: Make tcmalloc support a PACKAGECONFIG
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>
This commit is contained in:
1 file changed
+6
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user