build: Generalize spi drivers detection

Don't be limited to elan only
This commit is contained in:
Marco Trevisan (Treviño)
2024-08-30 04:16:48 +02:00
parent 10e1cd76aa
commit 78c78432b9
2 changed files with 21 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
spi_sources = []
spi_headers = []
if 'elanspi' in drivers
if enabled_spi_drivers.length() > 0
spi_headers = ['fpi-spi-transfer.h']
spi_sources = ['fpi-spi-transfer.c']
endif