diff --git a/drivers/sensors/Make.defs b/drivers/sensors/Make.defs index 627ffd0bdbe..cc8cf426056 100644 --- a/drivers/sensors/Make.defs +++ b/drivers/sensors/Make.defs @@ -78,6 +78,17 @@ ifeq ($(CONFIG_SENSORS_DHTXX),y) CSRCS += dhtxx.c endif +# These drivers can be used with sensor connected over SPI or I2C bus + +ifeq ($(CONFIG_SENSORS_BMI160),y) + CSRCS += bmi160_base.c +ifeq ($(CONFIG_SENSORS_BMI160_UORB),y) + CSRCS += bmi160_uorb.c +else + CSRCS += bmi160.c +endif +endif + ifeq ($(CONFIG_SENSORS_BMI270),y) CSRCS += bmi270_base.c ifeq ($(CONFIG_SENSORS_BMI270_UORB),y) @@ -87,6 +98,15 @@ else endif endif +ifeq ($(CONFIG_SENSORS_BMI088),y) + CSRCS += bmi088_base.c +ifeq ($(CONFIG_SENSORS_BMI088_UORB),y) + CSRCS += bmi088_uorb.c +else + CSRCS += bmi088.c +endif +endif + # These drivers depend on I2C support ifeq ($(CONFIG_I2C),y) @@ -181,24 +201,6 @@ ifeq ($(CONFIG_SENSORS_BMG160),y) CSRCS += bmg160.c endif -ifeq ($(CONFIG_SENSORS_BMI160),y) - CSRCS += bmi160_base.c -ifeq ($(CONFIG_SENSORS_BMI160_UORB),y) - CSRCS += bmi160_uorb.c -else - CSRCS += bmi160.c -endif -endif - -ifeq ($(CONFIG_SENSORS_BMI088),y) - CSRCS += bmi088_base.c -ifeq ($(CONFIG_SENSORS_BMI088_UORB),y) - CSRCS += bmi088_uorb.c -else - CSRCS += bmi088.c -endif -endif - ifeq ($(CONFIG_SENSORS_BMP180),y) CSRCS += bmp180_base.c ifeq ($(CONFIG_SENSORS_BMP180_UORB),y) @@ -336,6 +338,10 @@ ifeq ($(CONFIG_SENSORS_BMM150),y) CSRCS += bmm150_uorb.c endif +ifeq ($(CONFIG_SENSORS_AMG88XX),y) + CSRCS += amg88xx.c +endif + ifeq ($(CONFIG_SENSORS_TMP112),y) CSRCS += tmp112.c endif