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:
Daniel Schaefer
2024-07-29 14:29:53 +00:00
committed by Marco Trevisan (Treviño)
parent c84d3774cf
commit 10e1cd76aa
2 changed files with 8 additions and 6 deletions

View File

@@ -135,11 +135,13 @@ default_drivers = [
'fpcmoc',
'realtek',
'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.
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
endian_independent_drivers = virtual_drivers + [