]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: for valgrind, define VALGRIND=1
authorChristopher Larson <chris_larson@mentor.com>
Wed, 11 Nov 2015 06:06:50 +0000 (23:06 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Nov 2015 08:01:33 +0000 (08:01 +0000)
Per the systemd README, this should be defined to run systemd under valgrind,
otherwise false positives will be triggered.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/systemd/systemd_225.bb

index 20391d773a9e5d346bdb52312e46e29596a02130..ea964131fb3e0c4dd14b348fe4a254e9c67d2e70 100644 (file)
@@ -129,6 +129,9 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
 # uclibc does not have NSS
 EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 
+# per the systemd README, define VALGRIND=1 to run under valgrind
+CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '', d)}"
+
 # disable problematic GCC 5.2 optimizations [YOCTO #8291]
 FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"