kumquat-buildroot/package/libnfc/Config.in
Louis Aussedat 1a49188a69 package/libnfc: add sub-options to enable individual drivers
Until now, the arygon and pn53x_usb were unconditionally enabled, and
there were no options to choose other drivers. Therefore, we had
sub-options for each individual driver, keeping arygon and pn53x_usb
enabled by default to preserve backward compatibility.

Also, due to this, the BR2_TOOLCHAIN_HAS_THREADS dependency on the
libnfc package is no longer needed, and is only needed for some of the
sub-options.

Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com>
[Thomas:
 - drop the default ""
 - remove the top-level HAS_THREADS dependency, and move it down to
   the sub-options that need it
 - improve commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-12-14 23:48:18 +01:00

81 lines
1.8 KiB
Plaintext

config BR2_PACKAGE_LIBNFC
bool "libnfc"
help
Public platform independent Near Field Communication (NFC)
library.
http://www.libnfc.org/
if BR2_PACKAGE_LIBNFC
config BR2_PACKAGE_LIBNFC_ACR122_PCSC
bool "acr122_pcsc driver"
depends on BR2_TOOLCHAIN_HAS_THREADS # pcsc-lite
depends on BR2_USE_MMU # pcsc-lite
depends on !BR2_STATIC_LIBS # pcsc-lite
select BR2_PACKAGE_PCSC_LITE
help
support for acr112_pcsc driver
comment "acr122_pcsc driver needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
config BR2_PACKAGE_LIBNFC_ACR122_USB
bool "acr122_usb driver"
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
help
support for acr122_usb driver
comment "acr122_usb driver needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_LIBNFC_ACR122S
bool "acr122s driver"
help
support for acr122s driver
config BR2_PACKAGE_LIBNFC_ARYGON
bool "arygon driver"
default y
help
support for arygon driver
config BR2_PACKAGE_LIBNFC_PN532_I2C
bool "pn532_i2c driver"
help
support for pn532_i2c driver
config BR2_PACKAGE_LIBNFC_PN532_SPI
bool "pn532_spi driver"
help
support for pn532_spi driver
config BR2_PACKAGE_LIBNFC_PN532_UART
bool "pn532_uart driver"
help
support for pn532_uart driver
config BR2_PACKAGE_LIBNFC_PN53X_USB
bool "pn53x_usb driver"
default y
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
help
support for pn53x_usb driver
comment "pn53x_usb driver needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_LIBNFC_EXAMPLES
bool "build libnfc examples"
select BR2_PACKAGE_READLINE
endif
comment "libnfc needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS