meson: Add elanspi to list of default drivers

Pretty much all downstream distributions just enable all drivers anyway.
Also, it should work well enough, so it seems right to simply add
elanspi into the list of drivers that are enabled by default.
This commit is contained in:
Benjamin Berg 2021-06-25 14:46:57 +02:00 committed by Benjamin Berg
parent d5fda36bc0
commit 24658fb351

View file

@ -98,10 +98,6 @@ virtual_drivers = [
'virtual_device_storage',
]
udev_drivers = [
'elanspi'
]
default_drivers = [
'upektc_img',
'vfs5011',
@ -125,7 +121,10 @@ default_drivers = [
'upeksonly',
'upekts',
'goodixmoc',
'nb1010'
'nb1010',
# SPI
'elanspi',
]
# FIXME: All the drivers should be fixed by adjusting the byte order.
@ -135,7 +134,7 @@ endian_independent_drivers = virtual_drivers + [
'synaptics',
]
all_drivers = default_drivers + virtual_drivers + udev_drivers
all_drivers = default_drivers + virtual_drivers
if drivers == [ 'all' ]
drivers = all_drivers
@ -145,6 +144,11 @@ if drivers == [ 'default' ]
drivers = default_drivers
endif
# For detection whether udev is needed
udev_drivers = [
'elanspi'
]
if drivers.length() == 0 or drivers[0] == ''
error('Cannot build libfprint without drivers, please specify a valid value for the drivers option')
endif