This is an automated email from the ASF dual-hosted git repository.
lupyuen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3349a40e9a9 sensors/Make.defs: Aligned Make with Cmake
3349a40e9a9 is described below
commit 3349a40e9a90e35410eaec3dbd08dc75bc7432b1
Author: simbit18 <[email protected]>
AuthorDate: Tue Jun 24 18:34:50 2025 +0200
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 <[email protected]>
---
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