From 24658fb351a0797b250331a03acf3b776630b3dc Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 25 Jun 2021 14:46:57 +0200 Subject: [PATCH] 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. --- meson.build | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 6ffb79c..6354c71 100644 --- a/meson.build +++ b/meson.build @@ -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