package/systemd: add optional valgrind dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 4 Feb 2019 19:13:26 +0000 (20:13 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 10 Feb 2019 13:07:22 +0000 (14:07 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/systemd/systemd.mk

index f9df66b03919eab0d71ba4c49dbd7fbf247549d8..5b2abdc3feadce0b7b9eefe048f723fef775a13c 100644 (file)
@@ -117,6 +117,13 @@ else
 SYSTEMD_CONF_OPTS += -Dpam=false
 endif
 
+ifeq ($(BR2_PACKAGE_VALGRIND),y)
+SYSTEMD_DEPENDENCIES += valgrind
+SYSTEMD_CONF_OPTS += -Dvalgrind=true
+else
+SYSTEMD_CONF_OPTS += -Dvalgrind=false
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 SYSTEMD_DEPENDENCIES += xz
 SYSTEMD_CONF_OPTS += -Dxz=true