Only include UART related files when (at least) one UART driver is enabled
This commit is contained in:
parent
f3f2ec1c0f
commit
699e9123ea
3 changed files with 13 additions and 5 deletions
|
|
@ -55,6 +55,7 @@ AC_DEFUN([LIBNFC_ARG_WITH_DRIVERS],
|
|||
DRIVERS_CFLAGS="$DRIVERS_CFLAGS -DDRIVER_ACR122_USB_ENABLED"
|
||||
;;
|
||||
acr122s)
|
||||
uart_required="yes"
|
||||
driver_acr122s_enabled="yes"
|
||||
DRIVERS_CFLAGS="$DRIVERS_CFLAGS -DDRIVER_ACR122S_ENABLED"
|
||||
;;
|
||||
|
|
@ -64,10 +65,12 @@ AC_DEFUN([LIBNFC_ARG_WITH_DRIVERS],
|
|||
DRIVERS_CFLAGS="$DRIVERS_CFLAGS -DDRIVER_PN53X_USB_ENABLED"
|
||||
;;
|
||||
arygon)
|
||||
uart_required="yes"
|
||||
driver_arygon_enabled="yes"
|
||||
DRIVERS_CFLAGS="$DRIVERS_CFLAGS -DDRIVER_ARYGON_ENABLED"
|
||||
;;
|
||||
pn532_uart)
|
||||
uart_required="yes"
|
||||
driver_pn532_uart_enabled="yes"
|
||||
DRIVERS_CFLAGS="$DRIVERS_CFLAGS -DDRIVER_PN532_UART_ENABLED"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue