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>
This commit is contained in:
13
src/Makefile
13
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
|
||||
|
||||
Reference in New Issue
Block a user