package/mesa3d: add valgrind support
authorJames Hilliard <james.hilliard1@gmail.com>
Tue, 28 Apr 2020 05:22:25 +0000 (23:22 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 28 Apr 2020 05:39:10 +0000 (07:39 +0200)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mesa3d/mesa3d.mk

index 22eff24c56da8e29491c80dba7c7c2acc81c079c..ab10194a6aa0e18f6dc817ee6a39ee26bc6c34b8 100644 (file)
@@ -25,8 +25,7 @@ MESA3D_DEPENDENCIES = \
 
 MESA3D_CONF_OPTS = \
        -Dgallium-omx=disabled \
-       -Dpower8=false \
-       -Dvalgrind=false
+       -Dpower8=false
 
 ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
 MESA3D_DEPENDENCIES += host-llvm llvm
@@ -242,6 +241,13 @@ else
 MESA3D_CONF_OPTS += -Dgallium-xvmc=false
 endif
 
+ifeq ($(BR2_PACKAGE_VALGRIND),y)
+MESA3D_CONF_OPTS += -Dvalgrind=true
+MESA3D_DEPENDENCIES += valgrind
+else
+MESA3D_CONF_OPTS += -Dvalgrind=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 MESA3D_CONF_OPTS += -Dlibunwind=true
 MESA3D_DEPENDENCIES += libunwind