--- /dev/null
+config BR2_PACKAGE_LIBDRM
+ bool "libdrm"
+ select BR2_PACKAGE_LIBPTHREAD_STUBS
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libpthread-stubs
+ help
+ Direct Rendering Manager
+
+ http://dri.freedesktop.org/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
+ bool "intel"
+ select BR2_PACKAGE_LIBATOMIC_OPS
+ select BR2_PACKAGE_LIBPCIACCESS
+ depends on BR2_i386 || BR2_x86_64
+ help
+ installs intel graphics driver
+
+config BR2_PACKAGE_LIBDRM_RADEON
+ bool "radeon"
+ help
+ install AMD/ATI graphics driver
+
+config BR2_PACKAGE_LIBDRM_NOUVEAU
+ bool "nouveau"
+ depends on BR2_i386 || BR2_x86_64
+ help
+ install Nvidia graphics driver
+
+config BR2_PACKAGE_LIBDRM_VMWGFX
+ bool "vmwgfx"
+ depends on BR2_i386 || BR2_x86_64
+ help
+ installs Vmware graphics driver
+
+config BR2_PACKAGE_LIBDRM_OMAP
+ bool "omap (experimental)"
+ depends on BR2_arm
+ help
+ install the TI OMAP driver using an experimental API.
+
+config BR2_PACKAGE_LIBDRM_EXYNOS
+ bool "exynos (experimental)"
+ depends on BR2_arm
+ help
+ installs Samsung Exynos driver using an experimental API.
+
+config BR2_PACKAGE_LIBDRM_FREEDRENO
+ bool "freedreno (experimental)"
+ depends on BR2_arm
+ help
+ install Qualcomm Snapdragon driver using an experimental API.
+
+endmenu
+
+endif
+
+comment "libdrm needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS