1config BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
2	bool
3	default y if BR2_i386
4	default y if BR2_x86_64
5	default y if BR2_aarch64
6
7config BR2_PACKAGE_OPENVMTOOLS
8	bool "openvmtools"
9	depends on BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
10	depends on BR2_USE_MMU # libglib2
11	depends on BR2_USE_WCHAR # libglib2
12	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
13	depends on BR2_ENABLE_LOCALE
14	depends on !BR2_STATIC_LIBS
15	depends on !BR2_TOOLCHAIN_USES_UCLIBC
16	select BR2_PACKAGE_LIBGLIB2
17	select BR2_PACKAGE_LIBDNET
18	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
19	help
20	  Open Virtual Machine Tools for VMware guest OS
21
22	  https://github.com/vmware/open-vm-tools
23
24	  ICU locales, Xerces, and X11 tools are currently not
25	  supported.
26
27	  NOTE: Support for vmblock-fuse will be enabled in
28	  openvmtools if the libfuse package is selected.
29
30if BR2_PACKAGE_OPENVMTOOLS
31
32config BR2_PACKAGE_OPENVMTOOLS_PAM
33	bool "PAM support"
34	# linux-pam needs locale, dynamic library and wchar, but we
35	# already have these dependencies on the main symbol, above.
36	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # linux-pam
37	select BR2_PACKAGE_LINUX_PAM
38	help
39	  Support for PAM in openvmtools
40
41comment "PAM support needs a toolchain w/ gcc >= 4.9"
42	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
43
44config BR2_PACKAGE_OPENVMTOOLS_RESOLUTIONKMS
45	bool "resolutionkms support"
46	depends on BR2_PACKAGE_HAS_UDEV
47	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
48	depends on BR2_i386 || BR2_x86_64 # libdrm vmwgfx
49	select BR2_PACKAGE_LIBDRM
50	select BR2_PACKAGE_LIBDRM_VMWGFX
51	help
52	  Enable support for resolutionkms
53
54comment "resolutionkms needs udev, a toolchain w/ threads"
55	depends on BR2_i386 || BR2_x86_64
56	depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
57
58endif
59
60comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, locale, dynamic library"
61	depends on BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
62	depends on BR2_USE_MMU
63	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
64		!BR2_ENABLE_LOCALE || BR2_STATIC_LIBS || \
65		BR2_TOOLCHAIN_USES_UCLIBC
66