Parcourir la source

libdrm: Add menu option to install the test programs

The libdrm has a bunch of useful test programs. Add an option to pass
the configure option to install them.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Ezequiel García il y a 11 ans
Parent
commit
e6e14a71b7
2 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 5 0
      package/libdrm/Config.in
  2. 4 0
      package/libdrm/libdrm.mk

+ 5 - 0
package/libdrm/Config.in

@@ -10,6 +10,11 @@ config BR2_PACKAGE_LIBDRM
 
 if BR2_PACKAGE_LIBDRM
 
+config BR2_PACKAGE_LIBDRM_INSTALL_TESTS
+	bool "Install test programs"
+	help
+	  This option allows to install the libdrm test programs.
+
 menu "DRM Drivers"
 
 config BR2_PACKAGE_LIBDRM_INTEL

+ 4 - 0
package/libdrm/libdrm.mk

@@ -69,4 +69,8 @@ else
 LIBDRM_CONF_OPT += --disable-udev
 endif
 
+ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
+LIBDRM_CONF_OPT += --enable-install-test-programs
+endif
+
 $(eval $(autotools-package))