diff --git a/drivers/sensor/adt7420/CMakeLists.txt b/drivers/sensor/adt7420/CMakeLists.txt index 7a5c8064391..161bac1c469 100644 --- a/drivers/sensor/adt7420/CMakeLists.txt +++ b/drivers/sensor/adt7420/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ADT7420 adt7420.c) +zephyr_library_sources(adt7420.c) zephyr_library_sources_ifdef(CONFIG_ADT7420_TRIGGER adt7420_trigger.c) diff --git a/drivers/sensor/adxl345/CMakeLists.txt b/drivers/sensor/adxl345/CMakeLists.txt index 44286560d96..70047bd5b3d 100644 --- a/drivers/sensor/adxl345/CMakeLists.txt +++ b/drivers/sensor/adxl345/CMakeLists.txt @@ -5,4 +5,4 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ADXL345 adxl345.c) +zephyr_library_sources(adxl345.c) diff --git a/drivers/sensor/adxl362/CMakeLists.txt b/drivers/sensor/adxl362/CMakeLists.txt index ee4fa6b1135..5964bb78eda 100644 --- a/drivers/sensor/adxl362/CMakeLists.txt +++ b/drivers/sensor/adxl362/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ADXL362 adxl362.c) +zephyr_library_sources(adxl362.c) zephyr_library_sources_ifdef(CONFIG_ADXL362_TRIGGER adxl362_trigger.c) diff --git a/drivers/sensor/adxl372/CMakeLists.txt b/drivers/sensor/adxl372/CMakeLists.txt index 2bd454d23f8..3070aaa16eb 100644 --- a/drivers/sensor/adxl372/CMakeLists.txt +++ b/drivers/sensor/adxl372/CMakeLists.txt @@ -5,5 +5,5 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ADXL372 adxl372.c) +zephyr_library_sources(adxl372.c) zephyr_library_sources_ifdef(CONFIG_ADXL372_TRIGGER adxl372_trigger.c) diff --git a/drivers/sensor/ak8975/CMakeLists.txt b/drivers/sensor/ak8975/CMakeLists.txt index 524f51c7fe3..db70e8bde36 100644 --- a/drivers/sensor/ak8975/CMakeLists.txt +++ b/drivers/sensor/ak8975/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_AK8975 ak8975.c) +zephyr_library_sources(ak8975.c) diff --git a/drivers/sensor/amg88xx/CMakeLists.txt b/drivers/sensor/amg88xx/CMakeLists.txt index 7bed6a5b3cf..4e598e7cda3 100644 --- a/drivers/sensor/amg88xx/CMakeLists.txt +++ b/drivers/sensor/amg88xx/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_AMG88XX amg88xx.c) +zephyr_library_sources(amg88xx.c) zephyr_library_sources_ifdef(CONFIG_AMG88XX_TRIGGER amg88xx_trigger.c) diff --git a/drivers/sensor/ams_iAQcore/CMakeLists.txt b/drivers/sensor/ams_iAQcore/CMakeLists.txt index df0ee12e6db..f86e450bb5c 100644 --- a/drivers/sensor/ams_iAQcore/CMakeLists.txt +++ b/drivers/sensor/ams_iAQcore/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_AMS_IAQ_CORE iAQcore.c) +zephyr_library_sources(iAQcore.c) diff --git a/drivers/sensor/apds9960/CMakeLists.txt b/drivers/sensor/apds9960/CMakeLists.txt index f9f628b0eb2..22a50c52ecc 100644 --- a/drivers/sensor/apds9960/CMakeLists.txt +++ b/drivers/sensor/apds9960/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_APDS9960 apds9960.c) +zephyr_library_sources(apds9960.c) zephyr_library_sources_ifdef(CONFIG_APDS9960_TRIGGER apds9960_trigger.c) diff --git a/drivers/sensor/bma280/CMakeLists.txt b/drivers/sensor/bma280/CMakeLists.txt index 694f11beec4..025e6735e6c 100644 --- a/drivers/sensor/bma280/CMakeLists.txt +++ b/drivers/sensor/bma280/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMA280 bma280.c) +zephyr_library_sources(bma280.c) zephyr_library_sources_ifdef(CONFIG_BMA280_TRIGGER bma280_trigger.c) diff --git a/drivers/sensor/bmc150_magn/CMakeLists.txt b/drivers/sensor/bmc150_magn/CMakeLists.txt index 26b0a347b21..53c8bc42ea9 100644 --- a/drivers/sensor/bmc150_magn/CMakeLists.txt +++ b/drivers/sensor/bmc150_magn/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMC150_MAGN bmc150_magn.c) +zephyr_library_sources(bmc150_magn.c) zephyr_library_sources_ifdef(CONFIG_BMC150_MAGN_TRIGGER bmc150_magn_trigger.c) diff --git a/drivers/sensor/bme280/CMakeLists.txt b/drivers/sensor/bme280/CMakeLists.txt index b6efb35d2a6..115c1135978 100644 --- a/drivers/sensor/bme280/CMakeLists.txt +++ b/drivers/sensor/bme280/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BME280 bme280.c bme280_spi.c bme280_i2c.c) +zephyr_library_sources(bme280.c bme280_spi.c bme280_i2c.c) diff --git a/drivers/sensor/bme680/CMakeLists.txt b/drivers/sensor/bme680/CMakeLists.txt index bea107b3806..5fffb82e4a9 100644 --- a/drivers/sensor/bme680/CMakeLists.txt +++ b/drivers/sensor/bme680/CMakeLists.txt @@ -6,4 +6,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BME680 bme680.c) +zephyr_library_sources(bme680.c) diff --git a/drivers/sensor/bmg160/CMakeLists.txt b/drivers/sensor/bmg160/CMakeLists.txt index 116eb6ac5cb..b4a728a01f8 100644 --- a/drivers/sensor/bmg160/CMakeLists.txt +++ b/drivers/sensor/bmg160/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMG160 bmg160.c) +zephyr_library_sources(bmg160.c) zephyr_library_sources_ifdef(CONFIG_BMG160_TRIGGER bmg160_trigger.c) diff --git a/drivers/sensor/bmi160/CMakeLists.txt b/drivers/sensor/bmi160/CMakeLists.txt index 690c3a4fac6..0ea7c2fd2ea 100644 --- a/drivers/sensor/bmi160/CMakeLists.txt +++ b/drivers/sensor/bmi160/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMI160 bmi160.c) +zephyr_library_sources(bmi160.c) zephyr_library_sources_ifdef(CONFIG_BMI160_TRIGGER bmi160_trigger.c) diff --git a/drivers/sensor/bmi270/CMakeLists.txt b/drivers/sensor/bmi270/CMakeLists.txt index 84b1dc4d426..29d278355c2 100644 --- a/drivers/sensor/bmi270/CMakeLists.txt +++ b/drivers/sensor/bmi270/CMakeLists.txt @@ -6,4 +6,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMI270 bmi270.c) +zephyr_library_sources(bmi270.c) diff --git a/drivers/sensor/bmm150/CMakeLists.txt b/drivers/sensor/bmm150/CMakeLists.txt index 4a8405fb229..de7950e221a 100644 --- a/drivers/sensor/bmm150/CMakeLists.txt +++ b/drivers/sensor/bmm150/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMM150 bmm150.c) +zephyr_library_sources(bmm150.c) diff --git a/drivers/sensor/bq274xx/CMakeLists.txt b/drivers/sensor/bq274xx/CMakeLists.txt index eb3656a386b..39ee7965597 100644 --- a/drivers/sensor/bq274xx/CMakeLists.txt +++ b/drivers/sensor/bq274xx/CMakeLists.txt @@ -4,4 +4,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BQ274XX bq274xx.c) +zephyr_library_sources(bq274xx.c) diff --git a/drivers/sensor/ccs811/CMakeLists.txt b/drivers/sensor/ccs811/CMakeLists.txt index 8e5a695f0ca..7c9437c0bbe 100644 --- a/drivers/sensor/ccs811/CMakeLists.txt +++ b/drivers/sensor/ccs811/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_CCS811 ccs811.c) +zephyr_library_sources(ccs811.c) zephyr_library_sources_ifdef(CONFIG_CCS811_TRIGGER ccs811_trigger.c) diff --git a/drivers/sensor/dht/CMakeLists.txt b/drivers/sensor/dht/CMakeLists.txt index c0a3a8ed479..cd825efd83a 100644 --- a/drivers/sensor/dht/CMakeLists.txt +++ b/drivers/sensor/dht/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_DHT dht.c) +zephyr_library_sources(dht.c) diff --git a/drivers/sensor/dps310/CMakeLists.txt b/drivers/sensor/dps310/CMakeLists.txt index 62e354118a1..c7e049f2fcf 100644 --- a/drivers/sensor/dps310/CMakeLists.txt +++ b/drivers/sensor/dps310/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_DPS310 dps310.c) +zephyr_library_sources(dps310.c) diff --git a/drivers/sensor/ens210/CMakeLists.txt b/drivers/sensor/ens210/CMakeLists.txt index 4620c2eb10a..66b195e6a37 100644 --- a/drivers/sensor/ens210/CMakeLists.txt +++ b/drivers/sensor/ens210/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ENS210 ens210.c) +zephyr_library_sources(ens210.c) diff --git a/drivers/sensor/fdc2x1x/CMakeLists.txt b/drivers/sensor/fdc2x1x/CMakeLists.txt index 710f533262d..8949ff2561e 100644 --- a/drivers/sensor/fdc2x1x/CMakeLists.txt +++ b/drivers/sensor/fdc2x1x/CMakeLists.txt @@ -5,5 +5,5 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_FDC2X1X fdc2x1x.c) +zephyr_library_sources(fdc2x1x.c) zephyr_library_sources_ifdef(CONFIG_FDC2X1X_TRIGGER fdc2x1x_trigger.c) diff --git a/drivers/sensor/fxas21002/CMakeLists.txt b/drivers/sensor/fxas21002/CMakeLists.txt index 82cfbf89a13..2ac65847fc2 100644 --- a/drivers/sensor/fxas21002/CMakeLists.txt +++ b/drivers/sensor/fxas21002/CMakeLists.txt @@ -6,5 +6,5 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_FXAS21002 fxas21002.c) +zephyr_library_sources(fxas21002.c) zephyr_library_sources_ifdef(CONFIG_FXAS21002_TRIGGER fxas21002_trigger.c) diff --git a/drivers/sensor/fxos8700/CMakeLists.txt b/drivers/sensor/fxos8700/CMakeLists.txt index b07f2afdb7d..d7a8efff499 100644 --- a/drivers/sensor/fxos8700/CMakeLists.txt +++ b/drivers/sensor/fxos8700/CMakeLists.txt @@ -6,5 +6,5 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_FXOS8700 fxos8700.c) +zephyr_library_sources(fxos8700.c) zephyr_library_sources_ifdef(CONFIG_FXOS8700_TRIGGER fxos8700_trigger.c) diff --git a/drivers/sensor/hmc5883l/CMakeLists.txt b/drivers/sensor/hmc5883l/CMakeLists.txt index 78b2796d7ea..1f32a8d45db 100644 --- a/drivers/sensor/hmc5883l/CMakeLists.txt +++ b/drivers/sensor/hmc5883l/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_HMC5883L hmc5883l.c) +zephyr_library_sources(hmc5883l.c) zephyr_library_sources_ifdef(CONFIG_HMC5883L_TRIGGER hmc5883l_trigger.c) diff --git a/drivers/sensor/hp206c/CMakeLists.txt b/drivers/sensor/hp206c/CMakeLists.txt index 6d19f784ba6..a99bf6d7e7c 100644 --- a/drivers/sensor/hp206c/CMakeLists.txt +++ b/drivers/sensor/hp206c/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_HP206C hp206c.c) +zephyr_library_sources(hp206c.c) diff --git a/drivers/sensor/hts221/CMakeLists.txt b/drivers/sensor/hts221/CMakeLists.txt index 99be62ff1b4..1e650006ce9 100644 --- a/drivers/sensor/hts221/CMakeLists.txt +++ b/drivers/sensor/hts221/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_HTS221 hts221.c) +zephyr_library_sources(hts221.c) zephyr_library_sources_ifdef(CONFIG_HTS221_TRIGGER hts221_trigger.c) diff --git a/drivers/sensor/icm42605/CMakeLists.txt b/drivers/sensor/icm42605/CMakeLists.txt index b637ee77b6e..b1bc3ed0a01 100644 --- a/drivers/sensor/icm42605/CMakeLists.txt +++ b/drivers/sensor/icm42605/CMakeLists.txt @@ -2,9 +2,7 @@ zephyr_library() -if (CONFIG_ICM42605) - zephyr_library_sources(icm42605.c) - zephyr_library_sources(icm42605_setup.c) - zephyr_library_sources_ifdef(CONFIG_SPI icm42605_spi.c) - zephyr_library_sources_ifdef(CONFIG_ICM42605_TRIGGER icm42605_trigger.c) -endif() +zephyr_library_sources(icm42605.c) +zephyr_library_sources(icm42605_setup.c) +zephyr_library_sources_ifdef(CONFIG_SPI icm42605_spi.c) +zephyr_library_sources_ifdef(CONFIG_ICM42605_TRIGGER icm42605_trigger.c) diff --git a/drivers/sensor/iis2dh/CMakeLists.txt b/drivers/sensor/iis2dh/CMakeLists.txt index 0cdb8986ed8..7bc13ac5abf 100644 --- a/drivers/sensor/iis2dh/CMakeLists.txt +++ b/drivers/sensor/iis2dh/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_IIS2DH iis2dh) -zephyr_library_sources_ifdef(CONFIG_IIS2DH iis2dh_i2c.c) -zephyr_library_sources_ifdef(CONFIG_IIS2DH iis2dh_spi.c) +zephyr_library_sources(iis2dh.c) +zephyr_library_sources(iis2dh_i2c.c) +zephyr_library_sources(iis2dh_spi.c) zephyr_library_sources_ifdef(CONFIG_IIS2DH_TRIGGER iis2dh_trigger.c) diff --git a/drivers/sensor/iis2dlpc/CMakeLists.txt b/drivers/sensor/iis2dlpc/CMakeLists.txt index b23d353428d..3981760803d 100644 --- a/drivers/sensor/iis2dlpc/CMakeLists.txt +++ b/drivers/sensor/iis2dlpc/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_IIS2DLPC iis2dlpc) +zephyr_library_sources(iis2dlpc.c) zephyr_library_sources_ifdef(CONFIG_IIS2DLPC_TRIGGER iis2dlpc_trigger.c) zephyr_library_include_directories(../stmemsc) diff --git a/drivers/sensor/iis2iclx/CMakeLists.txt b/drivers/sensor/iis2iclx/CMakeLists.txt index 749de1dbcf0..9a7a92c3028 100644 --- a/drivers/sensor/iis2iclx/CMakeLists.txt +++ b/drivers/sensor/iis2iclx/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_IIS2ICLX iis2iclx.c) +zephyr_library_sources(iis2iclx.c) zephyr_library_sources_ifdef(CONFIG_IIS2ICLX_SENSORHUB iis2iclx_shub.c) zephyr_library_sources_ifdef(CONFIG_IIS2ICLX_TRIGGER iis2iclx_trigger.c) diff --git a/drivers/sensor/iis2mdc/CMakeLists.txt b/drivers/sensor/iis2mdc/CMakeLists.txt index 0aa64728a7c..317a5cb5674 100644 --- a/drivers/sensor/iis2mdc/CMakeLists.txt +++ b/drivers/sensor/iis2mdc/CMakeLists.txt @@ -5,7 +5,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_IIS2MDC iis2mdc.c) -zephyr_library_sources_ifdef(CONFIG_IIS2MDC iis2mdc_i2c.c) -zephyr_library_sources_ifdef(CONFIG_IIS2MDC iis2mdc_spi.c) +zephyr_library_sources(iis2mdc.c) +zephyr_library_sources(iis2mdc_i2c.c) +zephyr_library_sources(iis2mdc_spi.c) zephyr_library_sources_ifdef(CONFIG_IIS2MDC_TRIGGER iis2mdc_trigger.c) diff --git a/drivers/sensor/iis3dhhc/CMakeLists.txt b/drivers/sensor/iis3dhhc/CMakeLists.txt index 1ef89503b0d..9b8415e8125 100644 --- a/drivers/sensor/iis3dhhc/CMakeLists.txt +++ b/drivers/sensor/iis3dhhc/CMakeLists.txt @@ -6,6 +6,6 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_IIS3DHHC iis3dhhc.c) -zephyr_library_sources_ifdef(CONFIG_IIS3DHHC iis3dhhc_spi.c) +zephyr_library_sources(iis3dhhc.c) +zephyr_library_sources(iis3dhhc_spi.c) zephyr_library_sources_ifdef(CONFIG_IIS3DHHC_TRIGGER iis3dhhc_trigger.c) diff --git a/drivers/sensor/isl29035/CMakeLists.txt b/drivers/sensor/isl29035/CMakeLists.txt index 490bfd260d5..59874e7724c 100644 --- a/drivers/sensor/isl29035/CMakeLists.txt +++ b/drivers/sensor/isl29035/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ISL29035 isl29035.c) +zephyr_library_sources(isl29035.c) zephyr_library_sources_ifdef(CONFIG_ISL29035_TRIGGER isl29035_trigger.c) diff --git a/drivers/sensor/ism330dhcx/CMakeLists.txt b/drivers/sensor/ism330dhcx/CMakeLists.txt index 511b91e450b..3488996de94 100644 --- a/drivers/sensor/ism330dhcx/CMakeLists.txt +++ b/drivers/sensor/ism330dhcx/CMakeLists.txt @@ -6,8 +6,8 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ISM330DHCX ism330dhcx.c) -zephyr_library_sources_ifdef(CONFIG_ISM330DHCX ism330dhcx_i2c.c) -zephyr_library_sources_ifdef(CONFIG_ISM330DHCX ism330dhcx_spi.c) +zephyr_library_sources(ism330dhcx.c) +zephyr_library_sources(ism330dhcx_i2c.c) +zephyr_library_sources(ism330dhcx_spi.c) zephyr_library_sources_ifdef(CONFIG_ISM330DHCX_SENSORHUB ism330dhcx_shub.c) zephyr_library_sources_ifdef(CONFIG_ISM330DHCX_TRIGGER ism330dhcx_trigger.c) diff --git a/drivers/sensor/lis2dh/CMakeLists.txt b/drivers/sensor/lis2dh/CMakeLists.txt index 25a4a22262b..d3956b19c84 100644 --- a/drivers/sensor/lis2dh/CMakeLists.txt +++ b/drivers/sensor/lis2dh/CMakeLists.txt @@ -2,7 +2,7 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh.c) -zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh_i2c.c) -zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh_spi.c) +zephyr_library_sources(lis2dh.c) +zephyr_library_sources(lis2dh_i2c.c) +zephyr_library_sources(lis2dh_spi.c) zephyr_library_sources_ifdef(CONFIG_LIS2DH_TRIGGER lis2dh_trigger.c) diff --git a/drivers/sensor/lis2ds12/CMakeLists.txt b/drivers/sensor/lis2ds12/CMakeLists.txt index b84485710e4..11eeecd05fd 100644 --- a/drivers/sensor/lis2ds12/CMakeLists.txt +++ b/drivers/sensor/lis2ds12/CMakeLists.txt @@ -2,7 +2,7 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LIS2DS12 lis2ds12) -zephyr_library_sources_ifdef(CONFIG_LIS2DS12 lis2ds12_i2c.c) -zephyr_library_sources_ifdef(CONFIG_LIS2DS12 lis2ds12_spi.c) +zephyr_library_sources(lis2ds12.c) +zephyr_library_sources(lis2ds12_i2c.c) +zephyr_library_sources(lis2ds12_spi.c) zephyr_library_sources_ifdef(CONFIG_LIS2DS12_TRIGGER lis2ds12_trigger.c) diff --git a/drivers/sensor/lis2dw12/CMakeLists.txt b/drivers/sensor/lis2dw12/CMakeLists.txt index 336a096200f..6f44ffd4a56 100644 --- a/drivers/sensor/lis2dw12/CMakeLists.txt +++ b/drivers/sensor/lis2dw12/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LIS2DW12 lis2dw12) +zephyr_library_sources(lis2dw12.c) zephyr_library_sources_ifdef(CONFIG_LIS2DW12_TRIGGER lis2dw12_trigger.c) zephyr_library_include_directories(../stmemsc) diff --git a/drivers/sensor/lis2mdl/CMakeLists.txt b/drivers/sensor/lis2mdl/CMakeLists.txt index 3ef610b32ca..7e8f026f0f7 100644 --- a/drivers/sensor/lis2mdl/CMakeLists.txt +++ b/drivers/sensor/lis2mdl/CMakeLists.txt @@ -5,7 +5,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LIS2MDL lis2mdl.c) +zephyr_library_sources(lis2mdl.c) zephyr_library_sources_ifdef(CONFIG_LIS2MDL_TRIGGER lis2mdl_trigger.c) zephyr_library_include_directories(../stmemsc) diff --git a/drivers/sensor/lis3mdl/CMakeLists.txt b/drivers/sensor/lis3mdl/CMakeLists.txt index da663c7238d..75579f8e222 100644 --- a/drivers/sensor/lis3mdl/CMakeLists.txt +++ b/drivers/sensor/lis3mdl/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LIS3MDL lis3mdl.c) +zephyr_library_sources(lis3mdl.c) zephyr_library_sources_ifdef(CONFIG_LIS3MDL_TRIGGER lis3mdl_trigger.c) diff --git a/drivers/sensor/lps22hb/CMakeLists.txt b/drivers/sensor/lps22hb/CMakeLists.txt index 37b18a0c64d..55a00eaf858 100644 --- a/drivers/sensor/lps22hb/CMakeLists.txt +++ b/drivers/sensor/lps22hb/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LPS22HB lps22hb.c) +zephyr_library_sources(lps22hb.c) diff --git a/drivers/sensor/lps22hh/CMakeLists.txt b/drivers/sensor/lps22hh/CMakeLists.txt index 93e4ce5784e..b7b04e8b4fa 100644 --- a/drivers/sensor/lps22hh/CMakeLists.txt +++ b/drivers/sensor/lps22hh/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LPS22HH lps22hh.c) -zephyr_library_sources_ifdef(CONFIG_LPS22HH lps22hh_i2c.c) -zephyr_library_sources_ifdef(CONFIG_LPS22HH lps22hh_spi.c) +zephyr_library_sources(lps22hh.c) +zephyr_library_sources(lps22hh_i2c.c) +zephyr_library_sources(lps22hh_spi.c) zephyr_library_sources_ifdef(CONFIG_LPS22HH_TRIGGER lps22hh_trigger.c) diff --git a/drivers/sensor/lps25hb/CMakeLists.txt b/drivers/sensor/lps25hb/CMakeLists.txt index 78c1383ee47..f7535fdb4f5 100644 --- a/drivers/sensor/lps25hb/CMakeLists.txt +++ b/drivers/sensor/lps25hb/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LPS25HB lps25hb.c) +zephyr_library_sources(lps25hb.c) diff --git a/drivers/sensor/lsm6ds0/CMakeLists.txt b/drivers/sensor/lsm6ds0/CMakeLists.txt index 54e67791bac..ab4299bc1d9 100644 --- a/drivers/sensor/lsm6ds0/CMakeLists.txt +++ b/drivers/sensor/lsm6ds0/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LSM6DS0 lsm6ds0.c) +zephyr_library_sources(lsm6ds0.c) diff --git a/drivers/sensor/lsm6dsl/CMakeLists.txt b/drivers/sensor/lsm6dsl/CMakeLists.txt index f599f3d33b3..1db4e7abedc 100644 --- a/drivers/sensor/lsm6dsl/CMakeLists.txt +++ b/drivers/sensor/lsm6dsl/CMakeLists.txt @@ -2,8 +2,8 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LSM6DSL lsm6dsl.c) -zephyr_library_sources_ifdef(CONFIG_LSM6DSL lsm6dsl_spi.c) -zephyr_library_sources_ifdef(CONFIG_LSM6DSL lsm6dsl_i2c.c) +zephyr_library_sources(lsm6dsl.c) +zephyr_library_sources(lsm6dsl_spi.c) +zephyr_library_sources(lsm6dsl_i2c.c) zephyr_library_sources_ifdef(CONFIG_LSM6DSL_TRIGGER lsm6dsl_trigger.c) zephyr_library_sources_ifdef(CONFIG_LSM6DSL_SENSORHUB lsm6dsl_shub.c) diff --git a/drivers/sensor/lsm6dso/CMakeLists.txt b/drivers/sensor/lsm6dso/CMakeLists.txt index b723ce229e7..505afb5392c 100644 --- a/drivers/sensor/lsm6dso/CMakeLists.txt +++ b/drivers/sensor/lsm6dso/CMakeLists.txt @@ -6,7 +6,7 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LSM6DSO lsm6dso.c) +zephyr_library_sources(lsm6dso.c) zephyr_library_sources_ifdef(CONFIG_LSM6DSO_SENSORHUB lsm6dso_shub.c) zephyr_library_sources_ifdef(CONFIG_LSM6DSO_TRIGGER lsm6dso_trigger.c) diff --git a/drivers/sensor/lsm9ds0_gyro/CMakeLists.txt b/drivers/sensor/lsm9ds0_gyro/CMakeLists.txt index c309b400197..842522cb172 100644 --- a/drivers/sensor/lsm9ds0_gyro/CMakeLists.txt +++ b/drivers/sensor/lsm9ds0_gyro/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LSM9DS0_GYRO lsm9ds0_gyro.c) +zephyr_library_sources(lsm9ds0_gyro.c) zephyr_library_sources_ifdef(CONFIG_LSM9DS0_GYRO_TRIGGER_DRDY lsm9ds0_gyro_trigger.c) diff --git a/drivers/sensor/lsm9ds0_mfd/CMakeLists.txt b/drivers/sensor/lsm9ds0_mfd/CMakeLists.txt index 7d12de8babc..792d2f455c1 100644 --- a/drivers/sensor/lsm9ds0_mfd/CMakeLists.txt +++ b/drivers/sensor/lsm9ds0_mfd/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_LSM9DS0_MFD lsm9ds0_mfd.c) +zephyr_library_sources(lsm9ds0_mfd.c) diff --git a/drivers/sensor/max17055/CMakeLists.txt b/drivers/sensor/max17055/CMakeLists.txt index 5cdcdb3247f..d9212c1839d 100644 --- a/drivers/sensor/max17055/CMakeLists.txt +++ b/drivers/sensor/max17055/CMakeLists.txt @@ -4,4 +4,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX17055 max17055.c) +zephyr_library_sources(max17055.c) diff --git a/drivers/sensor/max17262/CMakeLists.txt b/drivers/sensor/max17262/CMakeLists.txt index 386aea80b10..f7f7af962a9 100644 --- a/drivers/sensor/max17262/CMakeLists.txt +++ b/drivers/sensor/max17262/CMakeLists.txt @@ -4,4 +4,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX17262 max17262.c) +zephyr_library_sources(max17262.c) diff --git a/drivers/sensor/max30101/CMakeLists.txt b/drivers/sensor/max30101/CMakeLists.txt index f3799d521b9..063cffa8123 100644 --- a/drivers/sensor/max30101/CMakeLists.txt +++ b/drivers/sensor/max30101/CMakeLists.txt @@ -6,4 +6,4 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX30101 max30101.c) +zephyr_library_sources(max30101.c) diff --git a/drivers/sensor/max44009/CMakeLists.txt b/drivers/sensor/max44009/CMakeLists.txt index 745209467d3..a8a210872ee 100644 --- a/drivers/sensor/max44009/CMakeLists.txt +++ b/drivers/sensor/max44009/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX44009 max44009.c) +zephyr_library_sources(max44009.c) diff --git a/drivers/sensor/max6675/CMakeLists.txt b/drivers/sensor/max6675/CMakeLists.txt index 885a3327895..2ffd979d2ef 100644 --- a/drivers/sensor/max6675/CMakeLists.txt +++ b/drivers/sensor/max6675/CMakeLists.txt @@ -2,4 +2,4 @@ # SPDX-License-Identifier: Apache-2.0 zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX6675 max6675.c) +zephyr_library_sources(max6675.c) diff --git a/drivers/sensor/mchp_tach_xec/CMakeLists.txt b/drivers/sensor/mchp_tach_xec/CMakeLists.txt index 9658421e10f..000da137ee6 100644 --- a/drivers/sensor/mchp_tach_xec/CMakeLists.txt +++ b/drivers/sensor/mchp_tach_xec/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TACH_XEC tach_mchp_xec.c) +zephyr_library_sources(tach_mchp_xec.c) diff --git a/drivers/sensor/mcp9808/CMakeLists.txt b/drivers/sensor/mcp9808/CMakeLists.txt index 0fa2082f6c6..8baa84cb09f 100644 --- a/drivers/sensor/mcp9808/CMakeLists.txt +++ b/drivers/sensor/mcp9808/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MCP9808 mcp9808.c) +zephyr_library_sources(mcp9808.c) zephyr_library_sources_ifdef(CONFIG_MCP9808_TRIGGER mcp9808_trigger.c) diff --git a/drivers/sensor/mcux_acmp/CMakeLists.txt b/drivers/sensor/mcux_acmp/CMakeLists.txt index 8dc083d4366..4dc73c3c971 100644 --- a/drivers/sensor/mcux_acmp/CMakeLists.txt +++ b/drivers/sensor/mcux_acmp/CMakeLists.txt @@ -1,4 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MCUX_ACMP mcux_acmp.c) +zephyr_library_sources(mcux_acmp.c) diff --git a/drivers/sensor/mpr/CMakeLists.txt b/drivers/sensor/mpr/CMakeLists.txt index 88374b0ff61..39d0c0d01a3 100644 --- a/drivers/sensor/mpr/CMakeLists.txt +++ b/drivers/sensor/mpr/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MPR mpr.c) +zephyr_library_sources(mpr.c) diff --git a/drivers/sensor/mpu6050/CMakeLists.txt b/drivers/sensor/mpu6050/CMakeLists.txt index 92e5ee0c1d9..6a8357f8fef 100644 --- a/drivers/sensor/mpu6050/CMakeLists.txt +++ b/drivers/sensor/mpu6050/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MPU6050 mpu6050.c) +zephyr_library_sources(mpu6050.c) zephyr_library_sources_ifdef(CONFIG_MPU6050_TRIGGER mpu6050_trigger.c) diff --git a/drivers/sensor/ms5607/CMakeLists.txt b/drivers/sensor/ms5607/CMakeLists.txt index 11a1c32ae9e..2fcc0bfee2b 100644 --- a/drivers/sensor/ms5607/CMakeLists.txt +++ b/drivers/sensor/ms5607/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2019 Thomas Schmid # SPDX-License-Identifier: Apache-2.0 -zephyr_library_sources_ifdef(CONFIG_MS5607 ms5607.c) -zephyr_library_sources_ifdef(CONFIG_MS5607 ms5607_i2c.c) +zephyr_library_sources(ms5607.c) +zephyr_library_sources(ms5607_i2c.c) zephyr_library_sources_ifdef(CONFIG_MS5607 ms5607_spi.c) diff --git a/drivers/sensor/nuvoton_tach_npcx/CMakeLists.txt b/drivers/sensor/nuvoton_tach_npcx/CMakeLists.txt index 8676ddf9e32..d1b09726f41 100644 --- a/drivers/sensor/nuvoton_tach_npcx/CMakeLists.txt +++ b/drivers/sensor/nuvoton_tach_npcx/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TACH_NPCX tach_nuvoton_npcx.c) +zephyr_library_sources(tach_nuvoton_npcx.c) diff --git a/drivers/sensor/nxp_kinetis_temp/CMakeLists.txt b/drivers/sensor/nxp_kinetis_temp/CMakeLists.txt index 4c6addd5110..5462009c2e2 100644 --- a/drivers/sensor/nxp_kinetis_temp/CMakeLists.txt +++ b/drivers/sensor/nxp_kinetis_temp/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TEMP_KINETIS temp_kinetis.c) +zephyr_library_sources(temp_kinetis.c) diff --git a/drivers/sensor/opt3001/CMakeLists.txt b/drivers/sensor/opt3001/CMakeLists.txt index ce4ca86c192..dac045ee40c 100644 --- a/drivers/sensor/opt3001/CMakeLists.txt +++ b/drivers/sensor/opt3001/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_OPT3001 opt3001.c) +zephyr_library_sources(opt3001.c) diff --git a/drivers/sensor/pms7003/CMakeLists.txt b/drivers/sensor/pms7003/CMakeLists.txt index ea749d5e2cc..950c77fa416 100644 --- a/drivers/sensor/pms7003/CMakeLists.txt +++ b/drivers/sensor/pms7003/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_PMS7003 pms7003.c) +zephyr_library_sources(pms7003.c) diff --git a/drivers/sensor/sbs_gauge/CMakeLists.txt b/drivers/sensor/sbs_gauge/CMakeLists.txt index 398d1c48197..5fdf28d3bef 100644 --- a/drivers/sensor/sbs_gauge/CMakeLists.txt +++ b/drivers/sensor/sbs_gauge/CMakeLists.txt @@ -1,3 +1,3 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SBS_GAUGE sbs_gauge.c) +zephyr_library_sources(sbs_gauge.c) diff --git a/drivers/sensor/sht3xd/CMakeLists.txt b/drivers/sensor/sht3xd/CMakeLists.txt index a4ee90bc30e..33b381d6130 100644 --- a/drivers/sensor/sht3xd/CMakeLists.txt +++ b/drivers/sensor/sht3xd/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SHT3XD sht3xd.c) +zephyr_library_sources(sht3xd.c) zephyr_library_sources_ifdef(CONFIG_SHT3XD_TRIGGER sht3xd_trigger.c) diff --git a/drivers/sensor/si7006/CMakeLists.txt b/drivers/sensor/si7006/CMakeLists.txt index 837914b054a..8f7a3f92494 100644 --- a/drivers/sensor/si7006/CMakeLists.txt +++ b/drivers/sensor/si7006/CMakeLists.txt @@ -1,5 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 - zephyr_library() +zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SI7006 si7006.c) +zephyr_library_sources(si7006.c) diff --git a/drivers/sensor/si7055/CMakeLists.txt b/drivers/sensor/si7055/CMakeLists.txt index 8445f4783b9..d91abaa86a1 100644 --- a/drivers/sensor/si7055/CMakeLists.txt +++ b/drivers/sensor/si7055/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SI7055 si7055.c) +zephyr_library_sources(si7055.c) diff --git a/drivers/sensor/si7060/CMakeLists.txt b/drivers/sensor/si7060/CMakeLists.txt index 595dd3b31e0..06470627061 100644 --- a/drivers/sensor/si7060/CMakeLists.txt +++ b/drivers/sensor/si7060/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SI7060 si7060.c) +zephyr_library_sources(si7060.c) diff --git a/drivers/sensor/sm351lt/CMakeLists.txt b/drivers/sensor/sm351lt/CMakeLists.txt index b417442aa4f..0027b0dea5b 100644 --- a/drivers/sensor/sm351lt/CMakeLists.txt +++ b/drivers/sensor/sm351lt/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SM351LT sm351lt.c) +zephyr_library_sources(sm351lt.c) diff --git a/drivers/sensor/stm32_temp/CMakeLists.txt b/drivers/sensor/stm32_temp/CMakeLists.txt index 48c0b70b626..9486ce47aff 100644 --- a/drivers/sensor/stm32_temp/CMakeLists.txt +++ b/drivers/sensor/stm32_temp/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_STM32_TEMP stm32_temp.c) +zephyr_library_sources(stm32_temp.c) diff --git a/drivers/sensor/stts751/CMakeLists.txt b/drivers/sensor/stts751/CMakeLists.txt index b70172f3984..b48371b91f2 100644 --- a/drivers/sensor/stts751/CMakeLists.txt +++ b/drivers/sensor/stts751/CMakeLists.txt @@ -6,6 +6,6 @@ # zephyr_library() -zephyr_library_sources_ifdef(CONFIG_STTS751 stts751.c) -zephyr_library_sources_ifdef(CONFIG_STTS751 stts751_i2c.c) +zephyr_library_sources(stts751.c) +zephyr_library_sources(stts751_i2c.c) zephyr_library_sources_ifdef(CONFIG_STTS751_TRIGGER stts751_trigger.c) diff --git a/drivers/sensor/sx9500/CMakeLists.txt b/drivers/sensor/sx9500/CMakeLists.txt index 16bf718c50f..687205ac5fb 100644 --- a/drivers/sensor/sx9500/CMakeLists.txt +++ b/drivers/sensor/sx9500/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_SX9500 sx9500.c) +zephyr_library_sources(sx9500.c) zephyr_library_sources_ifdef(CONFIG_SX9500_TRIGGER sx9500_trigger.c) diff --git a/drivers/sensor/ti_hdc/CMakeLists.txt b/drivers/sensor/ti_hdc/CMakeLists.txt index d31cc3dd0d8..1481e62b561 100644 --- a/drivers/sensor/ti_hdc/CMakeLists.txt +++ b/drivers/sensor/ti_hdc/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TI_HDC ti_hdc.c) +zephyr_library_sources(ti_hdc.c) diff --git a/drivers/sensor/tmp007/CMakeLists.txt b/drivers/sensor/tmp007/CMakeLists.txt index cd936d1261e..e02cb01fc20 100644 --- a/drivers/sensor/tmp007/CMakeLists.txt +++ b/drivers/sensor/tmp007/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TMP007 tmp007.c) +zephyr_library_sources(tmp007.c) zephyr_library_sources_ifdef(CONFIG_TMP007_TRIGGER tmp007_trigger.c) diff --git a/drivers/sensor/tmp112/CMakeLists.txt b/drivers/sensor/tmp112/CMakeLists.txt index 660cb168cd2..c3d984840fd 100644 --- a/drivers/sensor/tmp112/CMakeLists.txt +++ b/drivers/sensor/tmp112/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TMP112 tmp112.c) +zephyr_library_sources(tmp112.c) diff --git a/drivers/sensor/tmp116/CMakeLists.txt b/drivers/sensor/tmp116/CMakeLists.txt index b587da0376a..ee8d2a64621 100644 --- a/drivers/sensor/tmp116/CMakeLists.txt +++ b/drivers/sensor/tmp116/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_TMP116 tmp116.c) +zephyr_library_sources(tmp116.c) diff --git a/drivers/sensor/vcnl4040/CMakeLists.txt b/drivers/sensor/vcnl4040/CMakeLists.txt index d2fb9f353cc..852b076d9ba 100644 --- a/drivers/sensor/vcnl4040/CMakeLists.txt +++ b/drivers/sensor/vcnl4040/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_VCNL4040 vcnl4040.c) +zephyr_library_sources(vcnl4040.c) zephyr_library_sources_ifdef(CONFIG_VCNL4040_TRIGGER vcnl4040_trigger.c) diff --git a/drivers/sensor/wsen_itds/CMakeLists.txt b/drivers/sensor/wsen_itds/CMakeLists.txt index b89050603e2..c1466fc879b 100644 --- a/drivers/sensor/wsen_itds/CMakeLists.txt +++ b/drivers/sensor/wsen_itds/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ITDS itds.c) +zephyr_library_sources(itds.c) zephyr_library_sources_ifdef(CONFIG_ITDS_TRIGGER itds_trigger.c)