From: James Hilliard Date: Tue, 28 Apr 2020 05:22:25 +0000 (-0600) Subject: package/mesa3d: add valgrind support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6d1876d7a357e3bef5cc3e5ad4982a5230a1ba5;p=buildroot.git package/mesa3d: add valgrind support Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- 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