From 3349a40e9a90e35410eaec3dbd08dc75bc7432b1 Mon Sep 17 00:00:00 2001 From: simbit18 Date: Tue, 24 Jun 2025 18:34:50 +0200 Subject: [PATCH] sensors/Make.defs: Aligned Make with Cmake This sensor was not present in the Make.defs file AMG88xx Infrared Array Sensor https://github.com/apache/nuttx/pull/12829 Moved: These drivers can be used with sensor connected over SPI or I2C bus Bosch Sensortec BMI160 Bosch Sensortec BMI088 Signed-off-by: simbit18 --- drivers/sensors/Make.defs | 42 ++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 18 deletions(-) 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