From b6d1876d7a357e3bef5cc3e5ad4982a5230a1ba5 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 27 Apr 2020 23:22:25 -0600 Subject: [PATCH] package/mesa3d: add valgrind support Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- package/mesa3d/mesa3d.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 22eff24c56..ab10194a6a 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -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