fix: drivers: remove redundant config checks in cmake files

This commit does not introduce any functional change to the
codebase. Just removes certain redundant checks from
various CMakeLists.txt files in order to bring more coherence
in the codebase.

Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
This commit is contained in:
Jilay Pandya 2023-09-25 21:15:39 +02:00 committed by Carles Cufí
commit 4e262bf83a
5 changed files with 7 additions and 7 deletions

View file

@ -2,5 +2,5 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_ADT7310 adt7310.c)
zephyr_library_sources(adt7310.c)
zephyr_library_sources_ifdef(CONFIG_ADT7310_TRIGGER adt7310_trigger.c)

View file

@ -2,8 +2,8 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x_accel.c)
zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x_gyro.c)
zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x.c)
zephyr_library_sources(bmi08x_accel.c)
zephyr_library_sources(bmi08x_gyro.c)
zephyr_library_sources(bmi08x.c)
zephyr_library_sources_ifdef(CONFIG_BMI08X_ACCEL_TRIGGER bmi08x_accel_trigger.c)
zephyr_library_sources_ifdef(CONFIG_BMI08X_GYRO_TRIGGER bmi08x_gyro_trigger.c)

View file

@ -2,4 +2,4 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_DS18B20 ds18b20.c)
zephyr_library_sources(ds18b20.c)

View file

@ -2,4 +2,4 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_MAX31855 max31855.c)
zephyr_library_sources(max31855.c)

View file

@ -2,4 +2,4 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_PCNT_ESP32 pcnt_esp32.c)
zephyr_library_sources(pcnt_esp32.c)