comment "PAM support needs a glibc toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+config BR2_PACKAGE_OPENVMTOOLS_RESOLUTIONKMS
+ bool "resolutionkms support"
+ depends on BR2_PACKAGE_HAS_UDEV
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
+ depends on BR2_i386 || BR2_x86_64 # libdrm vmwgfx
+ select BR2_PACKAGE_LIBDRM
+ select BR2_PACKAGE_LIBDRM_VMWGFX
+ help
+ Enable support for resolutionkms
+
+comment "resolutionkms needs udev, a toolchain w/ threads"
+ depends on BR2_i386 || BR2_x86_64
+ depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
+
endif
comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, RPC, locale"
OPENVMTOOLS_CONF_OPTS += --without-pam
endif
+ifeq ($(BR2_PACKAGE_OPENVMTOOLS_RESOLUTIONKMS),y)
+OPENVMTOOLS_CONF_OPTS += --enable-resolutionkms
+OPENVMTOOLS_DEPENDENCIES += libdrm udev
+else
+OPENVMTOOLS_CONF_OPTS += --disable-resolutionkms
+endif
+
# symlink needed by lib/system/systemLinux.c (or will cry in /var/log/messages)
# defined in lib/misc/hostinfoPosix.c
# /sbin/shutdown needed for Guest OS restart/shutdown from hypervisor