瀏覽代碼

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 <matthew.weber@rockwellcollins.com>
[Thomas: keep as an optional dependency, as cunit is only useful for
additional tests specific to the amdgpu backend]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Matt Weber 6 年之前
父節點
當前提交
1705f775e9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package/libdrm/libdrm.mk

+ 3 - 0
package/libdrm/libdrm.mk

@@ -115,6 +115,9 @@ endif
 
 
 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
 LIBDRM_CONF_OPTS += --enable-install-test-programs
 LIBDRM_CONF_OPTS += --enable-install-test-programs
+ifeq ($(BR2_PACKAGE_CUNIT),y)
+LIBDRM_DEPENDENCIES += cunit
+endif
 endif
 endif
 
 
 $(eval $(autotools-package))
 $(eval $(autotools-package))