mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Don't build SPI driver on non-Linux
Doesn't build on other operating systems. With auto-detection we don't have to manually select all other drivers. Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
committed by
Marco Trevisan (Treviño)
parent
c84d3774cf
commit
10e1cd76aa
@@ -1,9 +1,9 @@
|
|||||||
|
spi_sources = []
|
||||||
|
spi_headers = []
|
||||||
|
|
||||||
if 'elanspi' in drivers
|
if 'elanspi' in drivers
|
||||||
spi_headers = ['fpi-spi-transfer.h']
|
spi_headers = ['fpi-spi-transfer.h']
|
||||||
spi_sources = ['fpi-spi-transfer.c']
|
spi_sources = ['fpi-spi-transfer.c']
|
||||||
else
|
|
||||||
spi_sources = []
|
|
||||||
spi_headers = []
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libfprint_sources = [
|
libfprint_sources = [
|
||||||
|
|||||||
@@ -135,11 +135,13 @@ default_drivers = [
|
|||||||
'fpcmoc',
|
'fpcmoc',
|
||||||
'realtek',
|
'realtek',
|
||||||
'focaltech_moc',
|
'focaltech_moc',
|
||||||
|
|
||||||
# SPI
|
|
||||||
'elanspi',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# SPI
|
||||||
|
if host_machine.system() == 'linux'
|
||||||
|
default_drivers += ['elanspi']
|
||||||
|
endif
|
||||||
|
|
||||||
# FIXME: All the drivers should be fixed by adjusting the byte order.
|
# FIXME: All the drivers should be fixed by adjusting the byte order.
|
||||||
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
|
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
|
||||||
endian_independent_drivers = virtual_drivers + [
|
endian_independent_drivers = virtual_drivers + [
|
||||||
|
|||||||
Reference in New Issue
Block a user