kernel: modules: iio: create and use AddDepends

Just like for other subsystems, create a reusable AddDepends call.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2022-10-19 23:00:37 +01:00
parent 47d58afbdf
commit e57ca876cc
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA

View File

@ -25,14 +25,17 @@ endef
$(eval $(call KernelPackage,iio-core)) $(eval $(call KernelPackage,iio-core))
define AddDepends/iio
SUBMENU:=$(IIO_MENU)
DEPENDS+=+kmod-iio-core $(1)
endef
define KernelPackage/iio-kfifo-buf define KernelPackage/iio-kfifo-buf
SUBMENU:=$(IIO_MENU)
TITLE:=Industrial I/O buffering based on kfifo TITLE:=Industrial I/O buffering based on kfifo
DEPENDS:=+kmod-iio-core
KCONFIG:=CONFIG_IIO_KFIFO_BUF KCONFIG:=CONFIG_IIO_KFIFO_BUF
FILES:=$(LINUX_DIR)/drivers/iio/buffer/kfifo_buf.ko FILES:=$(LINUX_DIR)/drivers/iio/buffer/kfifo_buf.ko
AUTOLOAD:=$(call AutoLoad,55,kfifo_buf) AUTOLOAD:=$(call AutoLoad,55,kfifo_buf)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-kfifo-buf/description define KernelPackage/iio-kfifo-buf/description
@ -44,12 +47,12 @@ $(eval $(call KernelPackage,iio-kfifo-buf))
define KernelPackage/industrialio-triggered-buffer define KernelPackage/industrialio-triggered-buffer
SUBMENU:=$(IIO_MENU)
TITLE:=Provides helper functions for setting up triggered buffers. TITLE:=Provides helper functions for setting up triggered buffers.
DEPENDS:=+kmod-iio-core +kmod-iio-kfifo-buf DEPENDS:=+kmod-iio-kfifo-buf
KCONFIG:=CONFIG_IIO_TRIGGERED_BUFFER KCONFIG:=CONFIG_IIO_TRIGGERED_BUFFER
FILES:=$(LINUX_DIR)/drivers/iio/buffer/industrialio-triggered-buffer.ko FILES:=$(LINUX_DIR)/drivers/iio/buffer/industrialio-triggered-buffer.ko
AUTOLOAD:=$(call AutoLoad,55,industrialio-triggered-buffer) AUTOLOAD:=$(call AutoLoad,55,industrialio-triggered-buffer)
$(call AddDepends/iio)
endef endef
define KernelPackage/industrialio-triggered-buffer/description define KernelPackage/industrialio-triggered-buffer/description
@ -60,14 +63,14 @@ $(eval $(call KernelPackage,industrialio-triggered-buffer))
define KernelPackage/iio-ad799x define KernelPackage/iio-ad799x
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-industrialio-triggered-buffer
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer
TITLE:=Analog Devices AD799x ADC driver TITLE:=Analog Devices AD799x ADC driver
KCONFIG:= \ KCONFIG:= \
CONFIG_AD799X_RING_BUFFER=y \ CONFIG_AD799X_RING_BUFFER=y \
CONFIG_AD799X CONFIG_AD799X
FILES:=$(LINUX_DIR)/drivers/iio/adc/ad799x.ko FILES:=$(LINUX_DIR)/drivers/iio/adc/ad799x.ko
AUTOLOAD:=$(call AutoLoad,56,ad799x) AUTOLOAD:=$(call AutoLoad,56,ad799x)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-ad799x/description define KernelPackage/iio-ad799x/description
@ -79,12 +82,12 @@ endef
$(eval $(call KernelPackage,iio-ad799x)) $(eval $(call KernelPackage,iio-ad799x))
define KernelPackage/iio-ads1015 define KernelPackage/iio-ads1015
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c +kmod-industrialio-triggered-buffer
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-regmap-i2c +kmod-industrialio-triggered-buffer
TITLE:=Texas Instruments ADS1015 ADC driver TITLE:=Texas Instruments ADS1015 ADC driver
KCONFIG:= CONFIG_TI_ADS1015 KCONFIG:= CONFIG_TI_ADS1015
FILES:=$(LINUX_DIR)/drivers/iio/adc/ti-ads1015.ko FILES:=$(LINUX_DIR)/drivers/iio/adc/ti-ads1015.ko
AUTOLOAD:=$(call AutoLoad,56,ti-ads1015) AUTOLOAD:=$(call AutoLoad,56,ti-ads1015)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-ads1015/description define KernelPackage/iio-ads1015/description
@ -94,14 +97,14 @@ endef
$(eval $(call KernelPackage,iio-ads1015)) $(eval $(call KernelPackage,iio-ads1015))
define KernelPackage/iio-hmc5843 define KernelPackage/iio-hmc5843
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c +kmod-industrialio-triggered-buffer
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-regmap-i2c +kmod-industrialio-triggered-buffer
TITLE:=Honeywell HMC58x3 Magnetometer TITLE:=Honeywell HMC58x3 Magnetometer
KCONFIG:= CONFIG_SENSORS_HMC5843_I2C KCONFIG:= CONFIG_SENSORS_HMC5843_I2C
FILES:= \ FILES:= \
$(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_i2c.ko \ $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_i2c.ko \
$(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_core.ko $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_core.ko
AUTOLOAD:=$(call AutoLoad,56,hmc5843) AUTOLOAD:=$(call AutoLoad,56,hmc5843)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-hmc5843/description define KernelPackage/iio-hmc5843/description
@ -111,12 +114,12 @@ endef
$(eval $(call KernelPackage,iio-hmc5843)) $(eval $(call KernelPackage,iio-hmc5843))
define KernelPackage/iio-bh1750 define KernelPackage/iio-bh1750
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core
DEPENDS:=+kmod-i2c-core +kmod-iio-core
TITLE:=ROHM BH1750 ambient light sensor TITLE:=ROHM BH1750 ambient light sensor
KCONFIG:= CONFIG_BH1750 KCONFIG:= CONFIG_BH1750
FILES:=$(LINUX_DIR)/drivers/iio/light/bh1750.ko FILES:=$(LINUX_DIR)/drivers/iio/light/bh1750.ko
AUTOLOAD:=$(call AutoLoad,56,bh1750) AUTOLOAD:=$(call AutoLoad,56,bh1750)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bh1750/description define KernelPackage/iio-bh1750/description
ROHM BH1750 ambient light sensor (i2c bus) ROHM BH1750 ambient light sensor (i2c bus)
@ -124,12 +127,12 @@ endef
$(eval $(call KernelPackage,iio-bh1750)) $(eval $(call KernelPackage,iio-bh1750))
define KernelPackage/iio-am2315 define KernelPackage/iio-am2315
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-industrialio-triggered-buffer
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer
TITLE:=Asong AM2315 humidity/temperature sensor TITLE:=Asong AM2315 humidity/temperature sensor
KCONFIG:= CONFIG_AM2315 KCONFIG:= CONFIG_AM2315
FILES:=$(LINUX_DIR)/drivers/iio/humidity/am2315.ko FILES:=$(LINUX_DIR)/drivers/iio/humidity/am2315.ko
AUTOLOAD:=$(call AutoLoad,56,am2315) AUTOLOAD:=$(call AutoLoad,56,am2315)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-am2315/description define KernelPackage/iio-am2315/description
Aosong AM2315 humidity/temperature sensor (I2C bus) Aosong AM2315 humidity/temperature sensor (I2C bus)
@ -137,13 +140,13 @@ endef
$(eval $(call KernelPackage,iio-am2315)) $(eval $(call KernelPackage,iio-am2315))
define KernelPackage/iio-mxs-lradc define KernelPackage/iio-mxs-lradc
SUBMENU:=$(IIO_MENU) DEPENDS:=@TARGET_mxs +kmod-industrialio-triggered-buffer
DEPENDS:=@TARGET_mxs +kmod-iio-core +kmod-industrialio-triggered-buffer
TITLE:=Freescale i.MX23/i.MX28 LRADC ADC driver TITLE:=Freescale i.MX23/i.MX28 LRADC ADC driver
KCONFIG:= \ KCONFIG:= \
CONFIG_MXS_LRADC_ADC CONFIG_MXS_LRADC_ADC
FILES:=$(LINUX_DIR)/drivers/iio/adc/mxs-lradc-adc.ko FILES:=$(LINUX_DIR)/drivers/iio/adc/mxs-lradc-adc.ko
AUTOLOAD:=$(call AutoLoad,56,mxs-lradc-adc) AUTOLOAD:=$(call AutoLoad,56,mxs-lradc-adc)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-mxs-lradc/description define KernelPackage/iio-mxs-lradc/description
@ -153,13 +156,13 @@ endef
$(eval $(call KernelPackage,iio-mxs-lradc)) $(eval $(call KernelPackage,iio-mxs-lradc))
define KernelPackage/iio-dht11 define KernelPackage/iio-dht11
SUBMENU:=$(IIO_MENU) DEPENDS:=@GPIO_SUPPORT @USES_DEVICETREE
DEPENDS:=+kmod-iio-core @GPIO_SUPPORT @USES_DEVICETREE
TITLE:=DHT11 (and compatible) humidity and temperature sensors TITLE:=DHT11 (and compatible) humidity and temperature sensors
KCONFIG:= \ KCONFIG:= \
CONFIG_DHT11 CONFIG_DHT11
FILES:=$(LINUX_DIR)/drivers/iio/humidity/dht11.ko FILES:=$(LINUX_DIR)/drivers/iio/humidity/dht11.ko
AUTOLOAD:=$(call AutoLoad,56,dht11) AUTOLOAD:=$(call AutoLoad,56,dht11)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-dht11/description define KernelPackage/iio-dht11/description
@ -172,11 +175,11 @@ $(eval $(call KernelPackage,iio-dht11))
define KernelPackage/iio-bme680 define KernelPackage/iio-bme680
SUBMENU:=$(IIO_MENU)
TITLE:=BME680 gas/humidity/pressure/temperature sensor TITLE:=BME680 gas/humidity/pressure/temperature sensor
DEPENDS:=+kmod-iio-core +kmod-regmap-core DEPENDS:=+kmod-regmap-core
KCONFIG:=CONFIG_BME680 KCONFIG:=CONFIG_BME680
FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_core.ko FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_core.ko
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bme680/description define KernelPackage/iio-bme680/description
@ -187,12 +190,12 @@ endef
$(eval $(call KernelPackage,iio-bme680)) $(eval $(call KernelPackage,iio-bme680))
define KernelPackage/iio-bme680-i2c define KernelPackage/iio-bme680-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=BME680 gas/humidity/pressure/temperature sensor (I2C) TITLE:=BME680 gas/humidity/pressure/temperature sensor (I2C)
DEPENDS:=+kmod-iio-bme680 +kmod-regmap-i2c DEPENDS:=+kmod-iio-bme680 +kmod-regmap-i2c
KCONFIG:=CONFIG_BME680_I2C KCONFIG:=CONFIG_BME680_I2C
FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_i2c.ko FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_i2c.ko
AUTOLOAD:=$(call AutoProbe,bme680-i2c) AUTOLOAD:=$(call AutoProbe,bme680-i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bme680-i2c/description define KernelPackage/iio-bme680-i2c/description
This driver adds support for Bosch Sensortec's BME680 connected via I2C. This driver adds support for Bosch Sensortec's BME680 connected via I2C.
@ -201,12 +204,12 @@ endef
$(eval $(call KernelPackage,iio-bme680-i2c)) $(eval $(call KernelPackage,iio-bme680-i2c))
define KernelPackage/iio-bme680-spi define KernelPackage/iio-bme680-spi
SUBMENU:=$(IIO_MENU)
TITLE:=BME680 gas/humidity/pressure/temperature sensor (SPI) TITLE:=BME680 gas/humidity/pressure/temperature sensor (SPI)
DEPENDS:=+kmod-iio-bme680 +kmod-regmap-spi DEPENDS:=+kmod-iio-bme680 +kmod-regmap-spi
KCONFIG:=CONFIG_BME680_SPI KCONFIG:=CONFIG_BME680_SPI
FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_spi.ko FILES:=$(LINUX_DIR)/drivers/iio/chemical/bme680_spi.ko
AUTOLOAD:=$(call AutoProbe,bme680-spi) AUTOLOAD:=$(call AutoProbe,bme680-spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bme680-spi/description define KernelPackage/iio-bme680-spi/description
This driver adds support for Bosch Sensortec's BME680 connected via SPI. This driver adds support for Bosch Sensortec's BME680 connected via SPI.
@ -216,11 +219,11 @@ $(eval $(call KernelPackage,iio-bme680-spi))
define KernelPackage/iio-bmp280 define KernelPackage/iio-bmp280
SUBMENU:=$(IIO_MENU)
TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor
DEPENDS:=+kmod-iio-core +kmod-regmap-core DEPENDS:=+kmod-regmap-core
KCONFIG:=CONFIG_BMP280 KCONFIG:=CONFIG_BMP280
FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280.ko FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280.ko
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bmp280/description define KernelPackage/iio-bmp280/description
@ -233,12 +236,12 @@ $(eval $(call KernelPackage,iio-bmp280))
define KernelPackage/iio-bmp280-i2c define KernelPackage/iio-bmp280-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (I2C) TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (I2C)
DEPENDS:=+kmod-iio-bmp280 +kmod-i2c-core +kmod-regmap-i2c DEPENDS:=+kmod-iio-bmp280 +kmod-i2c-core +kmod-regmap-i2c
KCONFIG:=CONFIG_BMP280_I2C KCONFIG:=CONFIG_BMP280_I2C
FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-i2c.ko FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-i2c.ko
AUTOLOAD:=$(call AutoProbe,bmp280-i2c) AUTOLOAD:=$(call AutoProbe,bmp280-i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bmp280-i2c/description define KernelPackage/iio-bmp280-i2c/description
This driver adds support for Bosch Sensortec's digital pressure and This driver adds support for Bosch Sensortec's digital pressure and
@ -249,12 +252,12 @@ $(eval $(call KernelPackage,iio-bmp280-i2c))
define KernelPackage/iio-bmp280-spi define KernelPackage/iio-bmp280-spi
SUBMENU:=$(IIO_MENU)
TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (SPI) TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (SPI)
DEPENDS:=+kmod-iio-bmp280 +kmod-spi-bitbang DEPENDS:=+kmod-iio-bmp280 +kmod-spi-bitbang
KCONFIG:=CONFIG_BMP280_SPI KCONFIG:=CONFIG_BMP280_SPI
FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-spi.ko FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-spi.ko
AUTOLOAD:=$(call AutoProbe,bmp280-spi) AUTOLOAD:=$(call AutoProbe,bmp280-spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-bmp280-spi/description define KernelPackage/iio-bmp280-spi/description
This driver adds support for Bosch Sensortec's digital pressure and This driver adds support for Bosch Sensortec's digital pressure and
@ -264,8 +267,7 @@ endef
$(eval $(call KernelPackage,iio-bmp280-spi)) $(eval $(call KernelPackage,iio-bmp280-spi))
define KernelPackage/iio-htu21 define KernelPackage/iio-htu21
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core
DEPENDS:=+kmod-i2c-core +kmod-iio-core
TITLE:=HTU21 humidity & temperature sensor TITLE:=HTU21 humidity & temperature sensor
KCONFIG:= \ KCONFIG:= \
CONFIG_HTU21 \ CONFIG_HTU21 \
@ -274,6 +276,7 @@ define KernelPackage/iio-htu21
$(LINUX_DIR)/drivers/iio/humidity/htu21.ko \ $(LINUX_DIR)/drivers/iio/humidity/htu21.ko \
$(LINUX_DIR)/drivers/iio/common/ms_sensors/ms_sensors_i2c.ko $(LINUX_DIR)/drivers/iio/common/ms_sensors/ms_sensors_i2c.ko
AUTOLOAD:=$(call AutoLoad,56,htu21) AUTOLOAD:=$(call AutoLoad,56,htu21)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-htu21/description define KernelPackage/iio-htu21/description
@ -287,13 +290,13 @@ $(eval $(call KernelPackage,iio-htu21))
define KernelPackage/iio-ccs811 define KernelPackage/iio-ccs811
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-industrialio-triggered-buffer
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer
TITLE:=AMS CCS811 VOC sensor TITLE:=AMS CCS811 VOC sensor
KCONFIG:= \ KCONFIG:= \
CONFIG_CCS811 CONFIG_CCS811
FILES:= $(LINUX_DIR)/drivers/iio/chemical/ccs811.ko FILES:= $(LINUX_DIR)/drivers/iio/chemical/ccs811.ko
AUTOLOAD:=$(call AutoLoad,56,ccs811) AUTOLOAD:=$(call AutoLoad,56,ccs811)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-ccs811/description define KernelPackage/iio-ccs811/description
@ -304,12 +307,12 @@ $(eval $(call KernelPackage,iio-ccs811))
define KernelPackage/iio-si7020 define KernelPackage/iio-si7020
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core
DEPENDS:=+kmod-i2c-core +kmod-iio-core
TITLE:=Silicon Labs Si7020 sensor TITLE:=Silicon Labs Si7020 sensor
KCONFIG:= CONFIG_SI7020 KCONFIG:= CONFIG_SI7020
FILES:=$(LINUX_DIR)/drivers/iio/humidity/si7020.ko FILES:=$(LINUX_DIR)/drivers/iio/humidity/si7020.ko
AUTOLOAD:=$(call AutoLoad,56,si7020) AUTOLOAD:=$(call AutoLoad,56,si7020)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-si7020/description define KernelPackage/iio-si7020/description
@ -322,15 +325,15 @@ $(eval $(call KernelPackage,iio-si7020))
define KernelPackage/iio-st_accel define KernelPackage/iio-st_accel
SUBMENU:=$(IIO_MENU)
TITLE:=STMicroelectronics accelerometer 3-Axis Driver TITLE:=STMicroelectronics accelerometer 3-Axis Driver
DEPENDS:=+kmod-iio-core +kmod-regmap-core +kmod-industrialio-triggered-buffer DEPENDS:=+kmod-regmap-core +kmod-industrialio-triggered-buffer
KCONFIG:= \ KCONFIG:= \
CONFIG_IIO_ST_ACCEL_3AXIS \ CONFIG_IIO_ST_ACCEL_3AXIS \
CONFIG_IIO_ST_SENSORS_CORE CONFIG_IIO_ST_SENSORS_CORE
FILES:= \ FILES:= \
$(LINUX_DIR)/drivers/iio/accel/st_accel.ko \ $(LINUX_DIR)/drivers/iio/accel/st_accel.ko \
$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors.ko $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors.ko
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-st_accel/description define KernelPackage/iio-st_accel/description
@ -344,7 +347,6 @@ $(eval $(call KernelPackage,iio-st_accel))
define KernelPackage/iio-st_accel-i2c define KernelPackage/iio-st_accel-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=STMicroelectronics accelerometer 3-Axis Driver (I2C) TITLE:=STMicroelectronics accelerometer 3-Axis Driver (I2C)
DEPENDS:=+kmod-iio-st_accel +kmod-i2c-core +kmod-regmap-i2c DEPENDS:=+kmod-iio-st_accel +kmod-i2c-core +kmod-regmap-i2c
KCONFIG:= CONFIG_IIO_ST_ACCEL_I2C_3AXIS KCONFIG:= CONFIG_IIO_ST_ACCEL_I2C_3AXIS
@ -352,6 +354,7 @@ define KernelPackage/iio-st_accel-i2c
$(LINUX_DIR)/drivers/iio/accel/st_accel_i2c.ko \ $(LINUX_DIR)/drivers/iio/accel/st_accel_i2c.ko \
$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_i2c.ko $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_i2c.ko
AUTOLOAD:=$(call AutoLoad,56,st_accel_i2c) AUTOLOAD:=$(call AutoLoad,56,st_accel_i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-st_accel-i2c/description define KernelPackage/iio-st_accel-i2c/description
@ -362,7 +365,6 @@ $(eval $(call KernelPackage,iio-st_accel-i2c))
define KernelPackage/iio-st_accel-spi define KernelPackage/iio-st_accel-spi
SUBMENU:=$(IIO_MENU)
TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI) TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI)
DEPENDS:=+kmod-iio-st_accel +kmod-regmap-spi DEPENDS:=+kmod-iio-st_accel +kmod-regmap-spi
KCONFIG:= CONFIG_IIO_ST_ACCEL_SPI_3AXIS KCONFIG:= CONFIG_IIO_ST_ACCEL_SPI_3AXIS
@ -370,6 +372,7 @@ define KernelPackage/iio-st_accel-spi
$(LINUX_DIR)/drivers/iio/accel/st_accel_spi.ko \ $(LINUX_DIR)/drivers/iio/accel/st_accel_spi.ko \
$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_spi.ko $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_spi.ko
AUTOLOAD:=$(call AutoLoad,56,st_accel_spi) AUTOLOAD:=$(call AutoLoad,56,st_accel_spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-st_accel-spi/description define KernelPackage/iio-st_accel-spi/description
@ -380,12 +383,12 @@ $(eval $(call KernelPackage,iio-st_accel-spi))
define KernelPackage/iio-lsm6dsx define KernelPackage/iio-lsm6dsx
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-iio-kfifo-buf +kmod-regmap-core
DEPENDS:=+kmod-iio-core +kmod-iio-kfifo-buf +kmod-regmap-core
TITLE:=ST LSM6DSx driver for IMU MEMS sensors TITLE:=ST LSM6DSx driver for IMU MEMS sensors
KCONFIG:=CONFIG_IIO_ST_LSM6DSX KCONFIG:=CONFIG_IIO_ST_LSM6DSX
FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.ko
AUTOLOAD:=$(call AutoProbe,st_lsm6dsx) AUTOLOAD:=$(call AutoProbe,st_lsm6dsx)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-lsm6dsx/description define KernelPackage/iio-lsm6dsx/description
@ -396,12 +399,12 @@ $(eval $(call KernelPackage,iio-lsm6dsx))
define KernelPackage/iio-lsm6dsx-i2c define KernelPackage/iio-lsm6dsx-i2c
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-iio-lsm6dsx +kmod-i2c-core +kmod-regmap-i2c DEPENDS:=+kmod-iio-lsm6dsx +kmod-i2c-core +kmod-regmap-i2c
TITLE:=ST LSM6DSx driver for IMU MEMS sensors (I2C) TITLE:=ST LSM6DSx driver for IMU MEMS sensors (I2C)
KCONFIG:=CONFIG_IIO_ST_LSM6DSX KCONFIG:=CONFIG_IIO_ST_LSM6DSX
FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.ko
AUTOLOAD:=$(call AutoProbe,st_lsm6dsx-i2c) AUTOLOAD:=$(call AutoProbe,st_lsm6dsx-i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-lsm6dsx-i2c/description define KernelPackage/iio-lsm6dsx-i2c/description
@ -412,12 +415,12 @@ $(eval $(call KernelPackage,iio-lsm6dsx-i2c))
define KernelPackage/iio-lsm6dsx-spi define KernelPackage/iio-lsm6dsx-spi
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-iio-lsm6dsx +kmod-regmap-spi DEPENDS:=+kmod-iio-lsm6dsx +kmod-regmap-spi
TITLE:=ST LSM6DSx driver for IMU MEMS sensors (SPI) TITLE:=ST LSM6DSx driver for IMU MEMS sensors (SPI)
KCONFIG:=CONFIG_IIO_ST_LSM6DSX KCONFIG:=CONFIG_IIO_ST_LSM6DSX
FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.ko
AUTOLOAD:=$(call AutoProbe,st_lsm6dsx-spi) AUTOLOAD:=$(call AutoProbe,st_lsm6dsx-spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-lsm6dsx-spi/description define KernelPackage/iio-lsm6dsx-spi/description
@ -428,8 +431,7 @@ $(eval $(call KernelPackage,iio-lsm6dsx-spi))
define KernelPackage/iio-sps30 define KernelPackage/iio-sps30
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-industrialio-triggered-buffer +kmod-lib-crc8
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer +kmod-lib-crc8
TITLE:=Sensirion SPS30 particulate matter sensor TITLE:=Sensirion SPS30 particulate matter sensor
KCONFIG:= \ KCONFIG:= \
CONFIG_SPS30 \ CONFIG_SPS30 \
@ -438,6 +440,7 @@ define KernelPackage/iio-sps30
$(LINUX_DIR)/drivers/iio/chemical/sps30.ko \ $(LINUX_DIR)/drivers/iio/chemical/sps30.ko \
$(LINUX_DIR)/drivers/iio/chemical/sps30_i2c.ko@ge5.14 $(LINUX_DIR)/drivers/iio/chemical/sps30_i2c.ko@ge5.14
AUTOLOAD:=$(call AutoProbe,sps30 sps30_i2c) AUTOLOAD:=$(call AutoProbe,sps30 sps30_i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-sps30/description define KernelPackage/iio-sps30/description
@ -448,12 +451,12 @@ $(eval $(call KernelPackage,iio-sps30))
define KernelPackage/iio-tsl4531 define KernelPackage/iio-tsl4531
SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core
DEPENDS:=+kmod-i2c-core +kmod-iio-core
TITLE:=TAOS TSL4531 ambient light sensor TITLE:=TAOS TSL4531 ambient light sensor
KCONFIG:= CONFIG_TSL4531 KCONFIG:= CONFIG_TSL4531
FILES:=$(LINUX_DIR)/drivers/iio/light/tsl4531.ko FILES:=$(LINUX_DIR)/drivers/iio/light/tsl4531.ko
AUTOLOAD:=$(call AutoLoad,56,tsl4531) AUTOLOAD:=$(call AutoLoad,56,tsl4531)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-tsl4531/description define KernelPackage/iio-tsl4531/description
@ -466,12 +469,12 @@ $(eval $(call KernelPackage,iio-tsl4531))
define KernelPackage/iio-fxas21002c define KernelPackage/iio-fxas21002c
SUBMENU:=$(IIO_MENU)
TITLE:=Freescale FXAS21002C 3-axis gyro driver TITLE:=Freescale FXAS21002C 3-axis gyro driver
DEPENDS:=+kmod-iio-core +kmod-regmap-core +kmod-industrialio-triggered-buffer DEPENDS:=+kmod-regmap-core +kmod-industrialio-triggered-buffer
KCONFIG:= CONFIG_FXAS21002C KCONFIG:= CONFIG_FXAS21002C
FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_core.ko FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_core.ko
AUTOLOAD:=$(call AutoLoad,56,fxas21002c) AUTOLOAD:=$(call AutoLoad,56,fxas21002c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxas21002c/description define KernelPackage/iio-fxas21002c/description
@ -482,12 +485,12 @@ $(eval $(call KernelPackage,iio-fxas21002c))
define KernelPackage/iio-fxas21002c-i2c define KernelPackage/iio-fxas21002c-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=Freescale FXAS21002C 3-axis gyro driver (I2C) TITLE:=Freescale FXAS21002C 3-axis gyro driver (I2C)
DEPENDS:=+kmod-iio-fxas21002c +kmod-i2c-core +kmod-regmap-i2c DEPENDS:=+kmod-iio-fxas21002c +kmod-i2c-core +kmod-regmap-i2c
KCONFIG:= CONFIG_FXAS21002C_I2C KCONFIG:= CONFIG_FXAS21002C_I2C
FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_i2c.ko FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_i2c.ko
AUTOLOAD:=$(call AutoLoad,56,fxas21002c_i2c) AUTOLOAD:=$(call AutoLoad,56,fxas21002c_i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxas21002c-i2c/description define KernelPackage/iio-fxas21002c-i2c/description
@ -499,12 +502,12 @@ endef
$(eval $(call KernelPackage,iio-fxas21002c-i2c)) $(eval $(call KernelPackage,iio-fxas21002c-i2c))
define KernelPackage/iio-fxas21002c-spi define KernelPackage/iio-fxas21002c-spi
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-iio-fxas21002c +kmod-regmap-spi DEPENDS:=+kmod-iio-fxas21002c +kmod-regmap-spi
TITLE:=Freescale FXAS21002C 3-axis gyro driver (SPI) TITLE:=Freescale FXAS21002C 3-axis gyro driver (SPI)
KCONFIG:= CONFIG_FXAS21002C_SPI KCONFIG:= CONFIG_FXAS21002C_SPI
FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_spi.ko FILES:=$(LINUX_DIR)/drivers/iio/gyro/fxas21002c_spi.ko
AUTOLOAD:=$(call AutoLoad,56,fxas21002c_spi) AUTOLOAD:=$(call AutoLoad,56,fxas21002c_spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxas21002c-spi/description define KernelPackage/iio-fxas21002c-spi/description
@ -516,12 +519,12 @@ $(eval $(call KernelPackage,iio-fxas21002c-spi))
define KernelPackage/iio-fxos8700 define KernelPackage/iio-fxos8700
SUBMENU:=$(IIO_MENU)
TITLE:=Freescale FXOS8700 3-axis accelerometer driver TITLE:=Freescale FXOS8700 3-axis accelerometer driver
DEPENDS:=+kmod-iio-core +kmod-regmap-core DEPENDS:=+kmod-regmap-core
KCONFIG:= CONFIG_FXOS8700 KCONFIG:= CONFIG_FXOS8700
FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_core.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_core.ko
AUTOLOAD:=$(call AutoLoad,56,fxos8700) AUTOLOAD:=$(call AutoLoad,56,fxos8700)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxos8700/description define KernelPackage/iio-fxos8700/description
@ -532,12 +535,12 @@ $(eval $(call KernelPackage,iio-fxos8700))
define KernelPackage/iio-fxos8700-i2c define KernelPackage/iio-fxos8700-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=Freescale FXOS8700 3-axis acceleromter driver (I2C) TITLE:=Freescale FXOS8700 3-axis acceleromter driver (I2C)
DEPENDS:=+kmod-iio-fxos8700 +kmod-i2c-core +kmod-regmap-i2c DEPENDS:=+kmod-iio-fxos8700 +kmod-i2c-core +kmod-regmap-i2c
KCONFIG:= CONFIG_FXOS8700_I2C KCONFIG:= CONFIG_FXOS8700_I2C
FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_i2c.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_i2c.ko
AUTOLOAD:=$(call AutoLoad,56,fxos8700_i2c) AUTOLOAD:=$(call AutoLoad,56,fxos8700_i2c)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxos8700-i2c/description define KernelPackage/iio-fxos8700-i2c/description
@ -549,12 +552,12 @@ endef
$(eval $(call KernelPackage,iio-fxos8700-i2c)) $(eval $(call KernelPackage,iio-fxos8700-i2c))
define KernelPackage/iio-fxos8700-spi define KernelPackage/iio-fxos8700-spi
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-iio-fxos8700 +kmod-regmap-spi DEPENDS:=+kmod-iio-fxos8700 +kmod-regmap-spi
TITLE:=Freescale FXOS8700 3-axis accelerometer driver (SPI) TITLE:=Freescale FXOS8700 3-axis accelerometer driver (SPI)
KCONFIG:= CONFIG_FXOS8700_SPI KCONFIG:= CONFIG_FXOS8700_SPI
FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_spi.ko FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_spi.ko
AUTOLOAD:=$(call AutoLoad,56,fxos8700_spi) AUTOLOAD:=$(call AutoLoad,56,fxos8700_spi)
$(call AddDepends/iio)
endef endef
define KernelPackage/iio-fxos8700-spi/description define KernelPackage/iio-fxos8700-spi/description