From 820318cc81b8c68f4a3f0f91f577a1b6bf1a48f2 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 8 Sep 2020 12:49:43 -0700 Subject: imx-gpu-viv: Use PACKAGECONFIG for valgrind support of libgal This replaces the previous RSUGGESTS use which does not work for all package managers and is not widely used. The use model of PACKAGECONFIG seems a better fit here. Signed-off-by: Tom Hochstein (cherry picked from commit fa9f93999e85fe0851b39a93a5c2c575371f2929) --- recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc index 7b05311e..c3df40d8 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc @@ -61,6 +61,11 @@ REQUIRED_DISTRO_FEATURES_mx8 = "wayland" SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" +PACKAGECONFIG ?= "" + +# Enables valgrind annotations for libgal-imx +PACKAGECONFIG[valgrind] = "" + # Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below IMX_PACKAGES_GBM = "" IMX_PACKAGES_GBM_mx8 = "libgbm-imx libgbm-imx-dev" @@ -304,7 +309,7 @@ FILES_libegl-imx-dev = "${libdir}/libEGL${SOLIBSDEV} ${includedir}/EGL ${include FILES_libgal-imx = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" FILES_libgal-imx-dev = "${libdir}/libGAL${SOLIBSDEV} ${includedir}/HAL" RDEPENDS_libgal-imx += "kernel-module-imx-gpu-viv" -RSUGGESTS_libgal-imx += "valgrind" +RDEPENDS_libgal-imx += "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'valgrind', '', d)}" RPROVIDES_libgal-imx += "libgal-imx" INSANE_SKIP_libgal-imx += "build-deps" -- cgit v1.2.3-54-g00ecf