From: Matt Weber Date: Thu, 1 Nov 2018 18:58:16 +0000 (-0500) Subject: package/libdrm: add optional cunit dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1705f775e90895d6fba522444355eadbe2b0be93;p=buildroot.git package/libdrm: add optional cunit dependency Previously the option to install tests would result in the test cases that don't have a cunit dependency, to build and be installed. This patch adds an optional dependency on cunit so that all test cases can be built and installed to target. Signed-off-by: Matthew Weber [Thomas: keep as an optional dependency, as cunit is only useful for additional tests specific to the amdgpu backend] Signed-off-by: Thomas Petazzoni --- diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk index 18ef9cdd2e..06efa20195 100644 --- a/package/libdrm/libdrm.mk +++ b/package/libdrm/libdrm.mk @@ -115,6 +115,9 @@ endif ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y) LIBDRM_CONF_OPTS += --enable-install-test-programs +ifeq ($(BR2_PACKAGE_CUNIT),y) +LIBDRM_DEPENDENCIES += cunit +endif endif $(eval $(autotools-package))