config BR2_PACKAGE_PCSC_LITE
	bool "pcsc-lite"
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	depends on !BR2_STATIC_LIBS
	help
	  Middleware to access smart card using SCard API (PC/SC).

	  https://muscle.apdu.fr/

if BR2_PACKAGE_PCSC_LITE

config BR2_PACKAGE_PCSC_LITE_FORCE_LIBUSB
	bool "use libusb"
	depends on !BR2_PACKAGE_HAS_UDEV
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
	select BR2_PACKAGE_LIBUSB
	help
	  Select Y if you want to support usb smart card readers.

comment "libusb support needs a toolchain w/ gcc >= 4.9"
	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

config BR2_PACKAGE_PCSC_LITE_DEBUGATR
	bool "enable ATR debug messages"
	help
	  Enable ATR debug messages from pcscd.

config BR2_PACKAGE_PCSC_LITE_EMBEDDED
	bool "enable embedded mode"
	help
	  Limit RAM and CPU resources by disabling logs.

endif

comment "pcsc-lite needs a toolchain w/ threads, dynamic library"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
