xref: /OK3568_Linux_fs/buildroot/package/usbguard/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_USBGUARD
2	bool "usbguard"
3	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # protobuf
4	depends on BR2_INSTALL_LIBSTDCPP # protobuf
5	depends on BR2_TOOLCHAIN_HAS_THREADS # libqb, protobuf
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # protobuf
7	depends on !BR2_STATIC_LIBS # libqb, protobuf
8	depends on !BR2_TOOLCHAIN_USES_MUSL
9	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
10	select BR2_PACKAGE_PROTOBUF
11	select BR2_PACKAGE_LIBQB
12	select BR2_PACKAGE_LIBSODIUM if !BR2_PACKAGE_LIBGCRYPT && !BR2_PACKAGE_LIBOPENSSL
13	help
14	  The USBGuard software framework
15
16	  Install a custom accept/deny list in /etc/usbguard/rules.conf
17	  (e.g. using an overlay). This file can be generated on the
18	  target using "usbguard generate-policy".
19
20	  https://usbguard.github.io/
21
22comment "usbguard needs a glibc or uClibc toolchain w/ C++, threads, dynamic library, gcc >= 4.8"
23	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
24		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
25		|| BR2_TOOLCHAIN_USES_MUSL
26	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
27
28comment "usbguard needs a toolchain not affected by GCC bug 64735"
29	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
30	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
31