diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-12-12 14:46:37 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-12-12 14:46:37 -0500 |
commit | 383b83d788223d4535d40d053c63f52043fb0bc6 (patch) | |
tree | a00ef07b471850fc20dcab56117db5f3c54c29ab /src/Makefile | |
parent | 2b9e041a869514783ad387c937b7f57cac554edf (diff) | |
download | kutter-383b83d788223d4535d40d053c63f52043fb0bc6.tar.gz kutter-383b83d788223d4535d40d053c63f52043fb0bc6.tar.xz kutter-383b83d788223d4535d40d053c63f52043fb0bc6.zip |
Kconfig: Simplify WANT_XXX definitions
Use WANT_ADXL345 and WANT_MPU9250 instead of WANT_SENSOR_ADXL345 and
WANT_SENSOR_MPU9250. This makes these definitions similar to the
other accelerometer defintions.
Order menu so accelerometers are close to each other in the menu.
Simplify Makefile as Kconfig already assures a symbol will only be
defined if its dependencies are met.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile index 278f265e..a0ca02b9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,15 +14,12 @@ src-$(CONFIG_WANT_GPIO_BITBANGING) += buttons.c tmcuart.c neopixel.c \ src-$(CONFIG_WANT_DISPLAYS) += lcd_st7920.c lcd_hd44780.c src-$(CONFIG_WANT_SOFTWARE_SPI) += spi_software.c src-$(CONFIG_WANT_SOFTWARE_I2C) += i2c_software.c -src-thermocouple-$(CONFIG_WANT_THERMOCOUPLE) := thermocouple.c -src-adxl345-$(CONFIG_WANT_SENSOR_ADXL345) := sensor_adxl345.c -src-angle-$(CONFIG_WANT_SENSOR_ANGLE) := sensor_angle.c -src-mpu9250-$(CONFIG_WANT_SENSOR_MPU9250) := sensor_mpu9250.c -src-$(CONFIG_HAVE_GPIO_SPI) += $(src-thermocouple-y) $(src-adxl345-y) \ - $(src-angle-y) -src-$(CONFIG_HAVE_GPIO_I2C) += $(src-mpu9250-y) +src-$(CONFIG_WANT_THERMOCOUPLE) += thermocouple.c +src-$(CONFIG_WANT_ADXL345) += sensor_adxl345.c src-$(CONFIG_WANT_LIS2DW) += sensor_lis2dw.c -src-$(CONFIG_WANT_LDC1612) += sensor_ldc1612.c +src-$(CONFIG_WANT_MPU9250) += sensor_mpu9250.c src-$(CONFIG_WANT_HX71X) += sensor_hx71x.c src-$(CONFIG_WANT_ADS1220) += sensor_ads1220.c +src-$(CONFIG_WANT_LDC1612) += sensor_ldc1612.c +src-$(CONFIG_WANT_SENSOR_ANGLE) += sensor_angle.c src-$(CONFIG_NEED_SENSOR_BULK) += sensor_bulk.c |